相关疑难解决方法(0)

CMake没有找到Boost

我看到至少3个与此问题具有相同标题的问题.他们每个人都有一个不同的答案,适用于OP但不适合我,所以我很抱歉重复这个问题......

我正在尝试安装CGAL.他们形容为以往那么简单的安装过程在这里,第6.1节.当我运行cmake-gui然后单击时configure,我得到以下输出

CMake Error at D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1192 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.51.0

  Boost include path: D:/program files/boost_1_51

  The following Boost libraries could not be found:

          boost_thread
          boost_system

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  cmake/modules/CGAL_SetupBoost.cmake:6 (find_package)
  cmake/modules/CGAL_SetupDependencies.cmake:85 (include)
  CMakeLists.txt:590 (include)
Run Code Online (Sandbox Code Playgroud)

但我BOOST_ROOT在cmake的gui中建立起来,D:/program …

c++ boost cmake cgal

33
推荐指数
2
解决办法
7万
查看次数

Cmake找不到Boost库

我是Cmake的新手,用C++推动库.我正在开发一个需要提升和Cmake的项目.我使用的是Cmake版本2.8.11,MS Visual Studio 2013和Boost 1.54.0.当我尝试从Cmake配置时,它给出以下错误:

CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1106     (message):
Unable to find the requested Boost libraries.

Boost version: 1.54.0

Boost include path: D:/boost_1_54_0

The following Boost libraries could not be found:

      boost_thread
      boost_system
      boost_log
      boost_log_setup
      boost_program_options

No Boost libraries were found.  You may need to 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:20 (find_package)
Run Code Online (Sandbox Code Playgroud)

我已经看到了很多与我有关的问题并尝试过,但一切都是徒劳的.我的Cmakelists.txt文件如下所示:

################################
# Boost
################################
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
ADD_DEFINITIONS(-DBoost_USE_STATIC_LIBS=ON)
set_property(GLOBAL PROPERTY …
Run Code Online (Sandbox Code Playgroud)

c++ boost cmake

8
推荐指数
1
解决办法
5万
查看次数

让cmake和家酿一起工作

当我用自制软件安装库时,cmake似乎无法找到它们.是否有一种简单的方法可以解决使用brew安装的任意库.

macos homebrew cmake

7
推荐指数
1
解决办法
5386
查看次数

标签 统计

cmake ×3

boost ×2

c++ ×2

cgal ×1

homebrew ×1

macos ×1