Add test for Predictor
[trackerpp.git] / README.md
1 Tracker++ cpp version on Linux (arm)
2
3 ## install dependencies
4
5 - opencv - 3.4.1
6 <https://docs.opencv.org/3.4.1/d7/d9f/tutorial_linux_install.html>
7    Run the script `script/install_opencv.sh`, the prefix is `/usr/local`
8
9 - log4cpp : logger utils
10 - eigen : matrix library of C++
11 - scons
12    `apt-get install liblog4cpp5-dev libeigen3-dev scons`
13    
14 - boost-python 
15     - `apt-get install libpython-dev python-dev`
16     - build boost with python
17     - `pip install scipy numpy sklearn`
18 <https://www.boost.org/doc/libs/1_67_0/libs/python/doc/html/building/installing_boost_python_on_your_.html>
19
20 As boost has already 
21 `sudo ./b2 install link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options --with-python`
22
23
24 ## Build 
25
26 `make all`
27
28 ### Run
29
30 `./main`
31
32
33 ## Build with `scons`
34 install scons tool `apt-get install scons`
35
36 - Run `scons` to build the `src/` and `main`. It will generate a library
37 `libtracker.a` and an executable file `main` under current folder.
38
39 - Run `scons --all` to build source and `test` file. A executable file `TestMain`,
40 which is used to run the unit test, will be generated under `test`
41
42 - Run `scons --all -c` to clean.