readme file
[trackerpp.git] / README.md
1 Tracker++ cpp version on Linux (arm)
2
3 ## Install dependencies
4
5 - opencv - 3.4.1
6
7     Run  `script/install_opencv.sh` to build and install opencv into /usr/local
8 Refer this page <https://docs.opencv.org/3.4.1/d7/d9f/tutorial_linux_install.html>
9
10 - log4cpp : logger utils
11 - eigen : matrix library of C++
12 - scons
13    `apt-get install liblog4cpp5-dev libeigen3-dev scons`
14    
15 - boost-python 
16     - `apt-get install libpython-dev python-dev`
17     - build boost with python
18     - `pip install scipy numpy sklearn`
19
20 Boost has been already installed when build ArmNN, but not enable python module,
21 so need to re-install boost 1.64 by following command. add `--with-python`
22 `sudo ./b2 install link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options --with-python`
23 <https://www.boost.org/doc/libs/1_67_0/libs/python/doc/html/building/installing_boost_python_on_your_.html>
24
25
26 ## Build with `scons`
27
28 - Run `scons` 
29     To build folder `src/` and `main.cpp`. `libtracker.a` and `main` will be generated
30
31 - Run `scons --all` 
32     To build folder `src/` and `test/` and `main.cpp`. `libtracker.a` , `main`,
33     and `test/TestMain` will be generated. Run `TestMain` to run all the unit
34     test 
35     
36 - Run `scons -c` or  `scons --all -c` 
37     To clean 
38
39 ### Run 
40
41 `./main`
42
43 ### Log
44 Logger config file is located at `config/log4cpp.properties`. By default, log
45 file is `/tmp/trackerpp.log`