当前位置: 首页 > 工具软件 > cmake-conan > 使用案例 >

CMake时,boost报错

东门俊民
2023-12-01
CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.65.1

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_regex
          boost_thread
          boost_system
          boost_filesystem

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)

解决办法:

sudo apt install libboost-all-dev
 类似资料: