cppkafka icon indicating copy to clipboard operation
cppkafka copied to clipboard

Unable to compile Mac OS X

Open NofelYaseen opened this issue 4 years ago • 1 comments

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

NofelYaseen avatar Jun 30 '20 14:06 NofelYaseen

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

ericvoorhis avatar Aug 28 '20 19:08 ericvoorhis