Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (27 sloc) 1.61 KB

keyvi: C++



In addition to a working gcc build environment, install the following libraries, e.g. using apt: boost (dev packages, at least version 1.54), snappy, zlib, cmake.

For example on Ubuntu (14.04 to 16.04) should install all the dependencies you need:

apt-get install cmake cython g++ libboost-all-dev libsnappy-dev libzzip-dev python-stdeb zlib1g-dev


In addition to a working build setup (Xcode) install the following libraries using Homebrew:

brew install boost
brew install snappy
brew install lzlib
brew install cmake

Now you should be able to compile as explained above.


Use cmake to build keyvi executables along with unit tests.


mkdir build_dir_<BUILD_TYPE>
cd build_dir_<BUILD_TYPE>

<BUILD_TYPE> can be release, debug, coverage or any other available by default in cmake

To run cpp unit tests just execute unit_test_all executable.

Coding Rules

The cpp part of keyvi has to pass the checks as well as (5.0.0 at the moment, defined by our travis CI configuration).

The configuration of both tools is part of the project. You can check your changes against the config using the script. For your convenience consider using a plugin for your IDE of choice (e.g. CppStyle for Eclipse).

Formatting is not done automatically for you but code neads to be cleanly pushed.

The check must pass for all changed, including new, files.

You can’t perform that action at this time.