按照项目的编译手顺
Make
- boost is required //按照此条,安装了boost库
- mkdir build && cd build //创建build目录并进入
- cmake … //执行此命令后报错
- make
-
结果报以下错误,目前在排错摸索中,待解决后记录
– The C compiler identification is GNU 7.3.0 – The CXX compiler identification is GNU 7.3.0 – Check for working C compiler: /usr/bin/cc – Check for working C compiler: /usr/bin/cc – works – Detecting C compiler ABI info – Detecting C compiler ABI info - done – Detecting C compile features – Detecting C compile features - done – Check for working CXX compiler: /usr/bin/c++ – Check for working CXX compiler: /usr/bin/c++ – works – Detecting CXX compiler ABI info – Detecting CXX compiler ABI info - done – Detecting CXX compile features – Detecting CXX compile features - done CMake Warning at CMakeLists.txt:19 (FIND_PACKAGE): By not providing “Findboost.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “boost”, but CMake did not find one.
Could not find a package configuration file provided by “boost” with any of the following names: boostConfig.cmake boost-config.cmake
Add the installation prefix of “boost” to CMAKE_PREFIX_PATH or set “boost_DIR” to a directory containing one of the above files. If “boost” provides a separate development package or SDK, be sure it has been installed.
– Configuring incomplete, errors occurred!
|