cppkafka
cppkafka copied to clipboard
Unable to compile Mac OS X
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
Hey if you're on Mac, this might help: https://github.com/mfontanini/cppkafka/issues/224#issuecomment-540454399