log4cxx/logger.h 或 libcql/cql.hpp 执行 make -j4 时发生致命错误

log4cxx/logger.h 或 libcql/cql.hpp 执行 make -j4 时发生致命错误

我正在跑步make -j4,但遇到异常...

userName@phx5qa01c-4e23:~/build$ make -j4
[  1%] [  2%] Building CXX object nda/common/loadtest/CMakeFiles/loadtester.dir/LoadTester.cc.o
make[2]: *** No rule to make target `/usr/include/libcql/lib/libcql.so', needed by `nda/common/client/client'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object nda/unittest/common/CMakeFiles/TestRunner.dir/TestRunner.cc.o
[  3%] Building CXX object nda/common/client/CMakeFiles/client.dir/main.cc.o
[  4%] Building CXX object nda/common/CMakeFiles/ndacommon.dir/category_map/CategoryMap.cc.o
In file included from /home/userName/MPL/nda/common/client/main.cc:1:
/home/userName/MPL/nda/common/client/be_cassandra_util.hh:5: fatal error: libcql/cql.hpp: No such file or directory
compilation terminated.
make[2]: *** [nda/common/client/CMakeFiles/client.dir/main.cc.o] Error 1
make[1]: *** [nda/common/client/CMakeFiles/client.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  5%] Building CXX object nda/common/CMakeFiles/ndacommon.dir/curl_handler/CurlHandler.cc.o
/home/userName/MPL/nda/common/curl_handler/CurlHandler.cc:12: fatal error: log4cxx/logger.h: No such file or directory
compilation terminated.
make[2]: *** [nda/common/CMakeFiles/ndacommon.dir/curl_handler/CurlHandler.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/userName/MPL/nda/unittest/common/TestRunner.cc:8: fatal error: log4cxx/logger.h: No such file or directory
compilation terminated.
make[2]: *** [nda/unittest/common/CMakeFiles/TestRunner.dir/TestRunner.cc.o] Error 1
make[1]: *** [nda/unittest/common/CMakeFiles/TestRunner.dir/all] Error 2
/home/userName/MPL/nda/common/category_map/CategoryMap.cc:11: fatal error: log4cxx/logger.h: No such file or directory
compilation terminated.
make[2]: *** [nda/common/CMakeFiles/ndacommon.dir/category_map/CategoryMap.cc.o] Error 1
make[1]: *** [nda/common/CMakeFiles/ndacommon.dir/all] Error 2
Linking CXX executable loadtester
[  5%] Built target loadtester
make: *** [all] Error 2

下面是例外情况,我总是得到 -

fatal error: libcql/cql.hpp: No such file or directory

fatal error: log4cxx/logger.h: No such file or directory

我不确定我应该做什么来解决这些异常?

我想,我可能需要为这些添加库......但我不确定应该如何添加这些库以及将其放在哪里,以便在编译时它可以正常工作......

相关内容