Skip to content

Compiling

Matias Fontanini edited this page Mar 21, 2018 · 2 revisions

GNU/Linux

In order to build the library on GNU/Linux, do the following:

mkdir build
cd build
cmake ..
make

If rdkafka is not installed globally and it's instead on some non default directory, use the RDKAFKA_ROOT_DIR parameter when invoking CMake.

Windows

In order to install on Windows, you can follow these instructions:

mkdir build
cd build
cmake .. -DBOOST_INCLUDEDIR="<path_to_nuget>\nuget-3.5.0\boost.1.64.0.0\lib\native\include" \
-DRDKAFKA_LIBRARY="<path_to_nuget>\nuget-3.5.0\librdkafka.redist.0.9.5\runtimes\win7-x64\native\rdkafka.lib" \
-DRDKAFKA_INCLUDE_DIR="<path_to_nuget>\nuget3.5.0\librdkafka.redist.0.9.5\build\native\include"
make
Clone this wiki locally