Хорошо, я понятия не имею, что происходит? Я просто следую некоторым инструкциям (видимо, для ОС ubuntu) на моем macbook.Ошибка Cmake при построении пакета
Все шло отлично до последнего шага.
Когда я make
, я вижу следующее сообщение об ошибке:
Linking CXX executable ../../bin/test-wordcount
ld: warning: path '/usr/local/lib/libprotobuf.dylib' following -L not a directory
ld: warning: path '/usr/local/lib/libzmq.dylib' following -L not a directory
Undefined symbols for architecture x86_64:
"_del_curterm", referenced from:
terminalHasColors(int) in libLLVMSupport.a(Process.o)
"_set_curterm", referenced from:
terminalHasColors(int) in libLLVMSupport.a(Process.o)
"_setupterm", referenced from:
terminalHasColors(int) in libLLVMSupport.a(Process.o)
"_tigetnum", referenced from:
terminalHasColors(int) in libLLVMSupport.a(Process.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/test-wordcount] Error 1
make[1]: *** [test/wordcount/CMakeFiles/test-wordcount.dir/all] Error 2
make: *** [all] Error 2
Что мне не хватает?
Мой CMakeLists.txt файл http://collabedit.com/8vc7s
Это ваш собственный проект? Если нет, какой проект в какой версии? Если это ваше собственное, попробуйте заменить '-L' на' -l' (нижний регистр L) в вашем CMakeLists.txt. – usr1234567
@ user2799037: Я не вижу ни одного -L в моем CMakeLists.txt :( – Fraz
Как вы добавляете свою библиотеку? Это должно быть сделано с помощью 'add_library. CMake автоматически добавит права -L/-l. – usr1234567