cmake 3.0.2 在 14.04 上找不到提升

GLa*_*Laz 7 boost cmake

我有从源代码编译的最新 cmake 3.0.2,还安装了 libboost-all-dev。而 find_package(Boost) 找不到。这是 cmake 的输出:

Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root 
directory containing Boost of BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Run Code Online (Sandbox Code Playgroud)

安装 Boost 后是否需要手动设置任何变量才能使其对 cmake 可见?

谢谢。

Roh*_*van 5

libboost-all-dev你用的是什么版本?我假设您使用的是 v1.53.0。

尝试安装libboost1.54-all-dev

  • 使用`sudo apt-get install libboost-all-dev` (2认同)