- CMake 2.8.9
- OpenCV 3.2
- PostgreSQL 9.6
- libpqtypes 1.5 (http://libpqtypes.esilo.com)
- SQLite 3.8
- POCO 1.61 (http://pocoproject.org)
- Boost 1.54
- Protocol Buffers 2.5
- ZeroMQ 4.0.4 (http://zeromq.org)
- Python 2.x
-
install dependencies from packages (see above)
-
install rpcz
cd 3rdparty/rpcz
mkdir build
cd build
cmake ..
make
sudo make install
cd ../python
python setup.py install
- compile interfaces
./compile_interfaces.sh
- a) compile for development (into install/)
./build_debug.sh
OR 3. b) compile for release (into /usr/local)
./build_release.sh
- optionally install python VTServer client
cd pyclient
python setup.py install
Development server:
- configure
./vtapi_debug.conf
- run vtserver:
./run_vtserver_debug.sh
Release server:
- create config file like
./vtapi_example.conf
- run vtserver:
vtserver --config=/path/to/config.conf
Testing the server:
- install python VTServer client (see above)
- create testing python script, eg.:
import vtclient.client as vtclient
cl = vtclient.VTServerClient("tcp://127.0.0.1:8719")
addDataset = cl.call('addDataset', {'name': 'test_dataset'})
print cl.call('getDatasetList', {})
cl.call('deleteDataset', {'dataset_id': addDataset['dataset_id']})