mfontanini / cppkafka

Modern C++ Apache Kafka client library (wrapper for librdkafka)
BSD 2-Clause "Simplified" License
589 stars 207 forks source link

Problem with building #240

Open LenoCode opened 4 years ago

LenoCode commented 4 years ago

Before anything I m fresh in c++ world and not really understand how this including library works. I tried to follow the steps mkdir build cd build cmake ..

But when I do cmake .. I get error missing: Boost_INCLUDE_DIR. I tried with setting options CPPKAFKA_BUILD_SHARED and CPPKAFKA_BOOST_STATIC_LIBS,both setting them to off, but it did not work.

Also tried this

cmake ..

DBOOST_INCLUDEDIR="E:\Workspace\gym\c++\GymConsoleApplication\packages\boost.1.71.0.0\lib\native\include" -DRDKAFKA_LIBRARY="E:\Workspace\gym\c++\GymConsoleApplication\packages\librdkafka.redist.1.3.0\build\native\lib\win\x64\win-x64-Release\v120\librdkafka.lib"
-DRDKAFKA_INCLUDE_DIR="E:\Workspace\gym\c++\GymConsoleApplication\packages\librdkafka.redist.1.3.0\build\native\include\librdkafka"

but no luck, it says RdKafka_INCLUDE_DIR-NOTFOUND"

spaulaus commented 4 years ago

Could you post your system information, please? I infer from the paths that you're using windows. Did you follow the wiki instructions to install the library and boost on Windows?