![Mab Robotics MD80 x CANdle Скачать руководство пользователя страница 21](http://html1.mh-extra.com/html/mab-robotics/md80-x-candle/md80-x-candle_user-manual_3150547021.webp)
Quick start
The quick startup guide includes cloning the repo, building and running the examples. First, you should
clone the
candle
repo from the MAB Robotics GitHub page to your local machine. Then, make sure you're in
the main directory
candle/
and run the following commands:
mkdir build
cd build
cmake ..
make
starting from the top one these commands: create a build directory, go into the build directory, generate
makefiles using CMake and compile the source code using make. A er executing these commands you
should be able to see the compiled examples in the
candle/build/
directory. To run one of them use the
following command:
./exampleX
where X is the number of the example.
Building as a static lib
Candle C++ library can be built as a static or shared object library. In the quick startup guide, we used the
default settings, thus the library was compiled to a shared object file. In case youʼd like to build it for a static
lib you should pass additional arguments to the
cmake ..
command:
cmake .. -DCANDLE_BUILD_STATIC=TRUE
A er executing this command you should be able to see the following CMake output:
In case youʼd like to go back to shared lib just call:
cmake .. -DCANDLE_BUILD_STATIC=FALSE
www.mabrobotics.pl