Build and install

KAPP Arnaud edited this page Feb 2, 2018 · 23 revisions

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 gcc/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
cd leosac
git submodule init
git submodule update

libzmq and 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

The 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 -DCMAKE_BUILD_TYPE=Debug


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 and are the recommended way to install Leosac if you don't plan on modifying it.

Other distros

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:

make install

If you have insufficient rights on the install directory, try installing as root:

sudo make install
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.