Ubuntu16.04 cmake找不到boost库的解决办法
程序员文章站
2022-06-06 14:09:01
...
在使用cmake时遇到了如下错误:
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:22 (FIND_PACKAGE)
解决方案:
sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev