X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;ds=sidebyside;f=README.md;h=a279d66fdcab8b5a2159e1c8dc67e0950fd0ffe1;hb=97b147e9106cb549dd7dd62829b9d29b326738c7;hp=36d75421373138565237f5d630f0264fe5c6da3c;hpb=79009fa0674d90e03b7a7bd958f7ee1e20d9b194;p=trackerpp.git diff --git a/README.md b/README.md index 36d7542..a279d66 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,54 @@ Tracker++ cpp version on Linux (arm) -## install dependencies -`apt-get install liblog4cpp5-dev libopencv-dev` +## Install dependencies -## Build +- opencv - 3.4.1 -`make all` + Run `script/install_opencv.sh` to build and install opencv into /usr/local + + Refer this page -### Run +- log4cpp : logger utils -`./main` +- eigen : matrix library of C++ + +- scons + + `apt-get install liblog4cpp5-dev libeigen3-dev scons` + +- boost-python + + - `apt-get install libpython-dev python-dev` + - build boost with python + - `pip install scipy numpy sklearn` + +Boost has been already installed when build ArmNN, but not enable python module, +so need to re-install boost 1.64 by following command. add `--with-python` +`sudo ./b2 install link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options --with-python` + ## Build with `scons` -install scons tool `apt-get install scons` -- Run `scons` to build the `src/` and `main`. It will generate a library -`libtracker.a` and an executable file `main` under current folder. +- Run `scons` + + To build folder `src/` and `main.cpp`. `libtracker.a` and `main` will be generated + +- Run `scons --all` + + To build folder `src/` and `test/` and `main.cpp`. `libtracker.a` , `main`, + and `test/TestMain` will be generated. Run `TestMain` to run all the unit + test + +- Run `scons -c` or `scons --all -c` + + To clean + +### Run + +`./main` -- Run `scons --all` to build source and `test` file. A executable file `TestMain`, -which is used to run the unit test, will be generated under `test` +### Log -- Run `scons --all -c` to clean. +Logger config file is located at `config/log4cpp.properties`. By default, log +file is `/tmp/trackerpp.log`