-
Notifications
You must be signed in to change notification settings - Fork 207
Compiling
Matias Fontanini edited this page Mar 21, 2018
·
2 revisions
In order to build the library on GNU/Linux, do the following:
- Install rdkafka >= 0.9.5
- Build cppkafka:
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.
In order to install on Windows, you can follow these instructions:
- Install nuget
- Install librdkafka and boost with following links: https://www.nuget.org/packages/librdkafka.redist/ https://www.nuget.org/packages/boost
- Compile cppkafka by running the following commands (replace versions in the paths as needed):
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