Development¶
Quick Start¶
To quickly get, compile, unit test and start running libdeco-ostc code use the following commands:
$ hg clone https://bitbucket.org/wrobell/libdeco-ostc/
$ cd libdeco-ostc/libdeco
$ autoreconf -i
$ ./configure --prefix=$(pwd)/opt
$ make
$ make install
$ export LD_LIBRARY_PATH=$(pwd)/opt/lib
$ export PYTHONPATH=.
$ ./libdeco/tests/test_deco_all
$ nosetests-3.3 --with-doctest -sv tests/ decomecha/
$ bin/decolint 45 25
$ bin/decolint -gl 20 -gh 90 45 25
$ bin/decolint -gl 20 -gh 90 -s 6 -l '27,0@0 100,0@6' 45 25
Requirements¶
Development requirements are as follows
- automake
- libtool
- Python
- nose or other tool to run unit tests
- Sphinx and Breathe 0.8.0 to create documentation
Debugging¶
The libdeco-ostc can be compiled to enable debug messages and debug library behaviour.
The following debug options can be used
- DECO_DEBUG
- print debug messages
Example of compilation command:
$ make clean
$ make CPPFLAGS="-DDECO_DEBUG"