Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Build and install
This document is extremely outdated.
Build from source
You will need a working Linux environment and the following packages:
- GCC 4.8+ (any C++11-compatible compiler should do)
- Git (to clone the repo)
- CMake 2.8.8 (and above)
- Boost 1.41 (and above)
- GoogleTest is required if you plan to build the test suite.
sudo apt-get install g++-4.8 git cmake libboost-all-dev libtclap-dev
Note: Make sure
g++ --version shows at least 4.8. You can use the
update-alternative command on Debian to set the default version of
g++. See this blog post.
Note: There is no binary package for libgtest on Debian, you have to install
libgtest-dev and build binary yourself.
Note: All of these are only required for building.
First clone the repo:
sudo apt-get install git git clone -b master https://github.com/islog/leosac.git cd leosac git submodule init git submodule update
zmqpp are bundled with the project (using git submodules).
CMake takes care of the build process, here's a minimal procedure to compile Leosac:
mkdir -p build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DZMQPP_BUILD_STATIC=0 -DZEROMQ_LIB_DIR=`pwd`/libzmq/.libs/ -DZEROMQ_INCLUDE_DIR=`pwd`/../libzmq/include -DZMQPP_LIBZMQ_CMAKE=1 make
LEOSAC_PLATFORM var is set to 'Unknown' by default, you can safely ignore it for now, or see Advanced CMake flags section for more info.
CMake will add GNU Gprof compilation/linking flags. This flag is for debugging purpose only and should be coupled with
Unset this flag if you don't want CMake to build Leosac modules.
We are providing packages for Debian armhf (Raspbian). Those are available at https://github.com/islog/leosac/releases and are the recommended way to install Leosac if you don't plan on modifying it.
You will have to follow instructions from the Build from source section first.
You can change the install path specified in
-DCMAKE_INSTALL_PREFIX=/usr/local, and then execute:
If you have insufficient rights on the install directory, try installing as root:
sudo make install