mfontanini / cppkafka

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

Unable to compile Mac OS X #254

Open NofelYaseen opened 4 years ago

NofelYaseen commented 4 years ago

I am on Mac OS Catalina. version 10.15.5 and master branch of the repository

I installed librdkafka using brew install librdkafka and the location is: /usr/local/Cellar/librdkafka

Compiling cppkafka using:

mkdir build
cd build
cmake  ..
make

Compilation error:

[100%] Linking CXX shared library lib/libcppkafka.dylib
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/lib/libcppkafka.0.3.1.dylib] Error 1
make[1]: *** [src/CMakeFiles/cppkafka.dir/all] Error 2
make: *** [all] Error 2
ericvoorhis commented 4 years ago

Hey if you're on Mac, this might help: https://github.com/mfontanini/cppkafka/issues/224#issuecomment-540454399