CMake的不是寻找升压

CMake的不是寻找升压

本文介绍了CMake的不是寻找升压的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了相同的标题,因为这问题至少有3个问题。他们每个人有这样的OP但不是为我工作了不同的答案,所以我很抱歉地重复问题...

我试图安装CGAL。他们描述自己的安装过程中不断所谓简单的here, 6.1节。当我运行 cmake的桂,然后点击配置,我得到以下输出

  CMake的错误在D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:1192(消息):
  无法找到请求Boost库。  升压版本:1.51.0  升压包括路径:D:/ Program Files文件/ boost_1_51  下面Boost库找不到:          boost_thread
          boost_system  未发现Boost库。您可能需要BOOST_LIBRARYDIR设为
  含Boost库或BOOST_ROOT到的位置目录
  促进。
(第一最近一次调用)调用堆栈:
  cmake的/模块/ CGAL_SetupBoost.cmake:6(find_package)
  cmake的/模块/ CGAL_SetupDependencies.cmake:85(包括)
  的CMakeLists.txt:590(包括)

但我并成立了 BOOST_ROOT 中的CMake的GU​​I,为 D:/ Program Files文件/ boost_1_51 ,其中存在。和它提到的两个文件是绝对安装。这是怎么回事吗?我需要做什么呢?

修改:在运行时,连接的是输出 cmake的-DBoost_DEBUG = ON

  D:\\ Program Files文件\\ CGAL-4.1> cmake的-DBoost_DEBUG = ON
==设置==路径
- 在目录自发布构建CGAL CGAL-4.1
- Packagenames:CGAL-4.1
==设置路径(DONE)====生成版本的文件==
- CGAL_MAJOR_VERSION = 4
- CGAL_MINOR_VERSION = 1
- CGAL_BUGFIX_VERSION = 0
- CGAL_SONAME_VERSION = 10
- CGAL_SOVERSION = 10.0.0
- CGAL_REFERENCE_CACHE_DIR =
- 建立共享库
- 打靶的Visual Studio 10 Win64平台
- 目标构建环境支持自动链接
- 使用VC10编译器。
- 发电机采用中间配置目录:$(配置)
- 使用cmake版本:2.8.10
- 操作系统:Windows
==生成版本的文件(DONE)====设置标志==
- 构建类型:发行
- 使用CXXFLAGS ='/ DWIN32 / D_WINDOWS / W3 / Zm1000 / GR / EHSC -D_CRT_SECURE_NO_
DE preCATE -D_SCL_SECURE_NO_DE preCATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_
警告/ FP:严/ FP:除非─/ MD / O2 / OB2 / D NDEBUG
- 使用LDFLAGS ='/ STACK:千万/机:64 /增量:NO
==设置标志(DONE)====检测外部库==
- 支持外部库:GMP,MPFR; ZLIB; OpenGL的; LEDA; MPFI; RS,RS3; OpenNL; TA
UCS; Eigen3; BLAS,LAPACK,QGLViewer; ESBTL; Coin3D; NTL; IPE
- preconfiguring库:GMP ...
- GMP已经preconfigured:
- CGAL_UseGMP文件:
- GMP包括:D:/ Program Files文件/ CGAL-4.1 /辅助/ GMP /包括
- GMP库:D:/ Program Files文件/ CGAL-4.1 /辅助/ GMP / lib目录/ libgmp-10.lib - GMP的定义:
- 使用GMP_VERSION =5.0.1
- preconfiguring库:MPFR ...
- MPFR已经preconfigured:
- CGAL_UseMPFR文件:
- MPFR包括:D:/ Program Files文件/ CGAL-4.1 /辅助/ GMP /包括
- MPFR库:​​D:/ Program Files文件/ CGAL-4.1 /辅助/ GMP / lib中/ libmpfr-4.li
b
- MPFR定义:
- 使用MPFR_VERSION =3.0.0
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:566] _B
oost_TEST_VERSIONS = 1.56.1,1.56.0; 1.56; 1.55.1,1.55.0; 1.55; 1.54.1,1.54.0; 1.54; 1。
53.1; 1.53.0; 1.53; 1.52.1,1.52.0; 1.52; 1.51.1,1.51.0; 1.51; 1.50.1,1.50.0; 1.50; 1.49.1
; 1.49.0; 1.49; 1.48.1,1.48.0; 1.48; 1.47.1,1.47.0; 1.47; 1.46.1,1.46.0; 1.46; 1.45.1 1.4
5.0; 1.45; 1.44.1,1.44.0; 1.44; 1.43.1,1.43.0; 1.43; 1.42.1,1.42.0; 1.42; 1.41.1,1.41.0;
1.41; 1.40.1,1.40.0; 1.40; 1.39.1,1.39.0; 1.39; 1.38.1,1.38.0; 1.38; 1.37.1,1.37.0; 1.37
; 1.56.0; 1.56; 1.55.0; 1.55; 1.54.0; 1.54; 1.53.0; 1.53; 1.52.0; 1.52; 1.51.0; 1.51; 1.50.0;
1.50; 1.49.0; 1.49; 1.48.0; 1.48; 1.47.0; 1.47; 1.46.1,1.46.0; 1.46; 1.45.0; 1.45; 1.44.0; 1
0.44; 1.43.0; 1.43; 1.42.0; 1.42; 1.41.0; 1.41; 1.40.0; 1.40; 1.39.0; 1.39; 1.38.0; 1.38; 1.37
0.0; 1.37; 1.36.1,1.36.0; 1.36; 1.35.1,1.35.0; 1.35; 1.34.1,1.34.0; 1.34; 1.33.1; 1.33
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:568]博
ost_USE_MULTITHREADED = TRUE
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:570]博
ost_USE_STATIC_LIBS = OFF
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:572]博
ost_USE_STATIC_RUNTIME =
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:574]博
ost_ADDITIONAL_VERSIONS = 1.56.1,1.56.0; 1.56; 1.55.1,1.55.0; 1.55; 1.54.1,1.54.0; 1。
54; 1.53.1,1.53.0; 1.53; 1.52.1,1.52.0; 1.52; 1.51.1,1.51.0; 1.51; 1.50.1,1.50.0; 1.50; 1
.49.1; 1.49.0; 1.49; 1.48.1,1.48.0; 1.48; 1.47.1,1.47.0; 1.47; 1.46.1,1.46.0; 1.46; 1.45。
1; 1.45.0; 1.45; 1.44.1,1.44.0; 1.44; 1.43.1,1.43.0; 1.43; 1.42.1,1.42.0; 1.42; 1.41.1; 1。
41.0; 1.41; 1.40.1,1.40.0; 1.40; 1.39.1,1.39.0; 1.39; 1.38.1,1.38.0; 1.38; 1.37.1; 1.37.0
; 1.37
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:576]博
ost_NO_SYSTEM_PATHS =
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:644]德
声明为CMake的或环境变量:
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:646]
BOOST_ROOT = D:/ Program Files文件/ boost_1_51 /箱
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:648]
BOOST_INCLUDEDIR =
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:650]
BOOST_LIBRARYDIR =
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:652] _B
oost_TEST_VERSIONS = 1.56.1,1.56.0; 1.56; 1.55.1,1.55.0; 1.55; 1.54.1,1.54.0; 1.54; 1。
53.1; 1.53.0; 1.53; 1.52.1,1.52.0; 1.52; 1.51.1,1.51.0; 1.51; 1.50.1,1.50.0; 1.50; 1.49.1
; 1.49.0; 1.49; 1.48.1,1.48.0; 1.48; 1.47.1,1.47.0; 1.47; 1.46.1,1.46.0; 1.46; 1.45.1 1.4
5.0; 1.45; 1.44.1,1.44.0; 1.44; 1.43.1,1.43.0; 1.43; 1.42.1,1.42.0; 1.42; 1.41.1,1.41.0;
1.41; 1.40.1,1.40.0; 1.40; 1.39.1,1.39.0; 1.39; 1.38.1,1.38.0; 1.38; 1.37.1,1.37.0; 1.37
; 1.56.0; 1.56; 1.55.0; 1.55; 1.54.0; 1.54; 1.53.0; 1.53; 1.52.0; 1.52; 1.51.0; 1.51; 1.50.0;
1.50; 1.49.0; 1.49; 1.48.0; 1.48; 1.47.0; 1.47; 1.46.1,1.46.0; 1.46; 1.45.0; 1.45; 1.44.0; 1
0.44; 1.43.0; 1.43; 1.42.0; 1.42; 1.41.0; 1.41; 1.40.0; 1.40; 1.39.0; 1.39; 1.38.0; 1.38; 1.37
0.0; 1.37; 1.36.1,1.36.0; 1.36; 1.35.1,1.35.0; 1.35; 1.34.1,1.34.0; 1.34; 1.33.1; 1.33
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:734] LO
D::/ Program Files文件/ boost_1_51 /升压/ version.hpp version.hpp的阳离子
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:754]已经
rsion.hpp揭示升压1.51.0
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:786]顾
essed _boost_COMPILER = -vc100
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:796] _B
oost_MULTITHREADED = -mt
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:839] _B
oost_RELEASE_ABI_TAG = -
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:841] _B
oost_DEBUG_ABI_TAG = -gd
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:884] _B
oost_LIBRARY_SEARCH_DIRS = D:/ Program Files文件/ boost_1_51 /斌/ lib中; D:/ Program Files文件/
boost_1_51 /斌/台/ lib中; D:/ Program Files文件/ boost_1_51 / lib中; D:/ Program Files文件/ BOOST_
1_51 /../ lib中; D:/ Program Files文件/ boost_1_51 /台/ lib中; C:/升压/ lib目录; C:/升压; C:\\ PROGR
早上文件(x86)/升压/ boost_1_51_0 / lib中; C:\\ Program Files文件(86)/升压/ boost_1_51 /李
B:C:\\ Program Files文件(86)/升压/ lib中; C:\\ Program Files文件(86)/升压; / SW / local / lib目录
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:962]硒
拱为THREAD_LIBRARY_RELEASE:boost_thread-VC100-MT-1_51; boost_thread-VC10
0-MT; boost_thread-MT-1_51; boost_thread-MT; boost_thread
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:994]硒
拱为THREAD_LIBRARY_DEBUG:boost_thread-VC100-MT-GD-1_51; boost_thread,VC1
00-MT-GD; boost_thread-MT-GD-1_51; boost_thread-MT-GD; boost_thread-MT; boost_thread - [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:962]硒
拱为SYSTEM_LIBRARY_RELEASE:boost_system-VC100-MT-1_51; boost_system-VC10
0-MT; boost_system-MT-1_51; boost_system-MT; boost_system
- [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:994]硒
拱为SYSTEM_LIBRARY_DEBUG:boost_system-VC100-MT-GD-1_51; boost_system,VC1
00-MT-GD; boost_system-MT-GD-1_51; boost_system-MT-GD; boost_system-MT; boost_system - [D:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmake:1108]乙
oost_FOUND = FALSE
为D CMake的错误:/ Program Files文件/ CMake的2.8 /共享/ cmake的-2.8 /模块/ FindBoost.cmak
E:1192(消息):
  无法找到请求Boost库。  升压版本:1.51.0  升压包括路径:D:/ Program Files文件/ boost_1_51  下面Boost库找不到:          boost_thread
          boost_system  未发现Boost库。您可能需要BOOST_LIBRARYDIR设为
  含Boost库或BOOST_ROOT到的位置目录
  促进。
(第一最近一次调用)调用堆栈:
  cmake的/模块/ CGAL_SetupBoost.cmake:6(find_package)
  cmake的/模块/ CGAL_SetupDependencies.cmake:85(包括)
  的CMakeLists.txt:590(包括)
- 升压包括:D:/ Program Files文件/ boost_1_51
- Boost库:
- 升压定义:
- 使用BOOST_VERSION =1.51.0
==检测外部库(DONE)====写compiler_config.h ==
==写compiler_config.h(DONE)====生成构建文件==
配置libCGAL
- 请求的组件:MPFR
- 请求的组件:GMP
libCGAL配置
- 对CGAL组件库核心资源检测
配置libCGAL_Core
- 请求的组件:MPFR
- 请求的组件:GMP
libCGAL_Core配置
- 来源为CGAL组件库的ImageIO检测
配置libCGAL_ImageIO
- 找不到ZLIB(丢失:ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
- OpenGL的包括:
- OpenGL库:glu32; opengl32
- 请求的组件:MPFR
- 请求的组件:GMP
libCGAL_ImageIO配置
- 注意:CGAL_ImageIO需要的ZLib读取COM pressed文件。这一功能将ñ
催产素被激活。
- QT3检测到CGAL组件库源
配置libCGAL_Qt3
- CGAL_Qt3需要QT3,无法配置。
- Qt4的检测到CGAL组件库源
配置libCGAL_Qt4
- 使用OPENGL_VERSION =1.1
- 使用QT4_VERSION =4.8.3
- OpenGL的包括:
- OpenGL库:glu32; opengl32
- OpenGL的定义:
- Qt4的包括:D:/ QT /包括
- Qt4的库:优化; D:/QT/lib/qtmain.lib;调试; D:/QT/lib/qtmaind.li
B:优化; D:/QT/lib/QtOpenGL4.lib;调试; D:/QT/lib/QtOpenGLd4.lib;优化; D:/
QT / lib中/ QtGui4.lib;调试; D:/QT/lib/QtGuid4.lib;优化; D:/QT/lib/QtCore4.lib;德
错误; D:/QT/lib/QtCored4.lib
- Qt4的定义:-DQT_DLL
- MOC可执行文件:D:/QT/bin/moc.exe
- UIC可执行文件:D:/QT/bin/uic.exe
- 请求的组件:MPFR
- 请求的组件:GMP
libCGAL_Qt4配置
- 对CGAL组件库'CGAL;核心; ImageIO的; QT3; Qt4的源检测
==生成构建文件(DONE)== - 不完整的配置,错误发生!


解决方案

您的输出显示的CMake在以下地方寻找库:

  D:/ Program Files文件/ boost_1_51 /斌/ lib目录
D:/ Program Files文件/ boost_1_51 /斌/台/ lib目录
D:/ Program Files文件/ boost_1_51 / lib目录
D:/ Program Files文件/ boost_1_51 /../ lib目录
D:/ Program Files文件/ boost_1_51 /台/ lib目录
C:/升​​压/ lib目录
C:/升​​压
C:\\ Program Files文件(86)/升压/ boost_1_51_0 / lib目录
C:\\ Program Files文件(86)/升压/ boost_1_51 / lib目录
C:\\ Program Files文件(86)/升压/ lib目录
C:\\ Program Files文件(86)/升压
/ SW / local / lib目录

它也表明,它期待以某种方式被命名的库。例如,Boost.Thread的发行版本:

  boost_thread-VC100-MT-1_51
boost_thread-VC100-MT
boost_thread-MT-1_51
boost_thread-MT
boost_thread

如果在搜查的地点之一是存在的Boost库,那么它可能这就是问题所在库的名称。你可以通过设置相关的的

例如,如果您使用内置升压的bjam与链接=静态线程=多然后在 find_package(提高你的CMakeLists.txt .. 。)你想做的事。

 集(Boost_USE_STATIC_LIBS ON)
集(Boost_USE_MULTITHREADED ON)

或调用与 -DBoost_USE_STATIC_LIBS = ON的CMake = -DBoost_USE_MULTITHREADED ON

修改

如@noam在下面的评论所指出的,在这种特定的情况下,似乎CGAL需要升压库的共享(DLL)版本;通过 -DBoost_USE_STATIC_LIBS = ON 在命令行上没有任何效果。

I saw at least 3 questions with the same title as this question. Each of them had a different answer that worked for the OP but not for me, so I am sorry to repeat the question...

I am trying to install CGAL. They describe their installation process as ever-so-simple here, section 6.1. When I run cmake-gui and then click configure, I get the following output

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)

But I DID set up BOOST_ROOT, in cmake's gui, to D:/program files/boost_1_51, which exists. And the two libraries it mentions are definitely installed. What is happening here? What do I need to do?

EDIT: Attached is the output when running cmake -DBoost_DEBUG=ON

D:\program files\CGAL-4.1>cmake -DBoost_DEBUG=ON
== Setting paths ==
-- Build CGAL from release in directory CGAL-4.1
-- Packagenames: CGAL-4.1
== Setting paths (DONE) ==

== Generate version files ==
-- CGAL_MAJOR_VERSION=4
-- CGAL_MINOR_VERSION=1
-- CGAL_BUGFIX_VERSION=0
-- CGAL_SONAME_VERSION=10
-- CGAL_SOVERSION     =10.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Visual Studio 10 Win64
-- Target build enviroment supports auto-linking
-- Using VC10 compiler.
-- Generator uses intermediate configuration directory: $(Configuration)
-- USING CMake version: 2.8.10
-- System: Windows
== Generate version files (DONE) ==

== Set up flags ==
-- Build type: Release
-- USING CXXFLAGS = ' /DWIN32 /D_WINDOWS /W3 /Zm1000 /GR /EHsc -D_CRT_SECURE_NO_
DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_
WARNINGS /fp:strict /fp:except- /MD /O2 /Ob2 /D NDEBUG'
-- USING LDFLAGS = ' /STACK:10000000 /machine:x64  /INCREMENTAL:NO'
== Set up flags (DONE) ==

== Detect external libraries ==
-- External libraries supported: GMP;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;TA
UCS;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- GMP has been preconfigured:
--   CGAL_UseGMP-file:
--   GMP include:      D:/program files/CGAL-4.1/auxiliary/gmp/include
--   GMP libraries:    D:/program files/CGAL-4.1/auxiliary/gmp/lib/libgmp-10.lib

--   GMP definitions:
-- USING GMP_VERSION = '5.0.1'
-- Preconfiguring library: MPFR ...
-- MPFR has been preconfigured:
--   CGAL_UseMPFR-file:
--   MPFR include:      D:/program files/CGAL-4.1/auxiliary/gmp/include
--   MPFR libraries:    D:/program files/CGAL-4.1/auxiliary/gmp/lib/libmpfr-4.li
b
--   MPFR definitions:
-- USING MPFR_VERSION = '3.0.0'
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:566 ] _b
oost_TEST_VERSIONS = 1.56.1;1.56.0;1.56;1.55.1;1.55.0;1.55;1.54.1;1.54.0;1.54;1.
53.1;1.53.0;1.53;1.52.1;1.52.0;1.52;1.51.1;1.51.0;1.51;1.50.1;1.50.0;1.50;1.49.1
;1.49.0;1.49;1.48.1;1.48.0;1.48;1.47.1;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.1;1.4
5.0;1.45;1.44.1;1.44.0;1.44;1.43.1;1.43.0;1.43;1.42.1;1.42.0;1.42;1.41.1;1.41.0;
1.41;1.40.1;1.40.0;1.40;1.39.1;1.39.0;1.39;1.38.1;1.38.0;1.38;1.37.1;1.37.0;1.37
;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;
1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1
.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37
.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:568 ] Bo
ost_USE_MULTITHREADED = TRUE
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:570 ] Bo
ost_USE_STATIC_LIBS = OFF
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:572 ] Bo
ost_USE_STATIC_RUNTIME =
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:574 ] Bo
ost_ADDITIONAL_VERSIONS = 1.56.1;1.56.0;1.56;1.55.1;1.55.0;1.55;1.54.1;1.54.0;1.
54;1.53.1;1.53.0;1.53;1.52.1;1.52.0;1.52;1.51.1;1.51.0;1.51;1.50.1;1.50.0;1.50;1
.49.1;1.49.0;1.49;1.48.1;1.48.0;1.48;1.47.1;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.
1;1.45.0;1.45;1.44.1;1.44.0;1.44;1.43.1;1.43.0;1.43;1.42.1;1.42.0;1.42;1.41.1;1.
41.0;1.41;1.40.1;1.40.0;1.40;1.39.1;1.39.0;1.39;1.38.1;1.38.0;1.38;1.37.1;1.37.0
;1.37
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:576 ] Bo
ost_NO_SYSTEM_PATHS =
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:644 ] De
clared as CMake or Environmental Variables:
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:646 ]
BOOST_ROOT = D:/program files/boost_1_51/bin
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:648 ]
BOOST_INCLUDEDIR =
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:650 ]
BOOST_LIBRARYDIR =
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:652 ] _b
oost_TEST_VERSIONS = 1.56.1;1.56.0;1.56;1.55.1;1.55.0;1.55;1.54.1;1.54.0;1.54;1.
53.1;1.53.0;1.53;1.52.1;1.52.0;1.52;1.51.1;1.51.0;1.51;1.50.1;1.50.0;1.50;1.49.1
;1.49.0;1.49;1.48.1;1.48.0;1.48;1.47.1;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.1;1.4
5.0;1.45;1.44.1;1.44.0;1.44;1.43.1;1.43.0;1.43;1.42.1;1.42.0;1.42;1.41.1;1.41.0;
1.41;1.40.1;1.40.0;1.40;1.39.1;1.39.0;1.39;1.38.1;1.38.0;1.38;1.37.1;1.37.0;1.37
;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;
1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1
.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37
.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:734 ] lo
cation of version.hpp: D:/program files/boost_1_51/boost/version.hpp
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:754 ] ve
rsion.hpp reveals boost 1.51.0
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:786 ] gu
essed _boost_COMPILER = -vc100
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:796 ] _b
oost_MULTITHREADED = -mt
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:839 ] _b
oost_RELEASE_ABI_TAG = -
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:841 ] _b
oost_DEBUG_ABI_TAG = -gd
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:884 ] _b
oost_LIBRARY_SEARCH_DIRS = D:/program files/boost_1_51/bin/lib;D:/program files/
boost_1_51/bin/stage/lib;D:/program files/boost_1_51/lib;D:/program files/boost_
1_51/../lib;D:/program files/boost_1_51/stage/lib;C:/boost/lib;C:/boost;C:\Progr
am Files (x86)/boost/boost_1_51_0/lib;C:\Program Files (x86)/boost/boost_1_51/li
b;C:\Program Files (x86)/boost/lib;C:\Program Files (x86)/boost;/sw/local/lib
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:962 ] Se
arching for THREAD_LIBRARY_RELEASE: boost_thread-vc100-mt-1_51;boost_thread-vc10
0-mt;boost_thread-mt-1_51;boost_thread-mt;boost_thread
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:994 ] Se
arching for THREAD_LIBRARY_DEBUG: boost_thread-vc100-mt-gd-1_51;boost_thread-vc1
00-mt-gd;boost_thread-mt-gd-1_51;boost_thread-mt-gd;boost_thread-mt;boost_thread

-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:962 ] Se
arching for SYSTEM_LIBRARY_RELEASE: boost_system-vc100-mt-1_51;boost_system-vc10
0-mt;boost_system-mt-1_51;boost_system-mt;boost_system
-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:994 ] Se
arching for SYSTEM_LIBRARY_DEBUG: boost_system-vc100-mt-gd-1_51;boost_system-vc1
00-mt-gd;boost_system-mt-gd-1_51;boost_system-mt-gd;boost_system-mt;boost_system

-- [ D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1108 ] B
oost_FOUND = FALSE
CMake Error at D:/program files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmak
e: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)


-- Boost include:     D:/program files/boost_1_51
-- Boost libraries:
-- Boost definitions:
-- USING BOOST_VERSION = '1.51.0'
== Detect external libraries (DONE) ==

== Write compiler_config.h ==
== Write compiler_config.h (DONE) ==

== Generating build files ==
Configuring libCGAL
-- Requested component: MPFR
-- Requested component: GMP
libCGAL is configured
-- Sources for CGAL component library 'Core' detected
Configuring libCGAL_Core
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_Core is configured
-- Sources for CGAL component library 'ImageIO' detected
Configuring libCGAL_ImageIO
-- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- OpenGL include:
-- OpenGL libraries:   glu32;opengl32
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_ImageIO is configured
-- NOTICE: CGAL_ImageIO needs ZLib to read compressed files. That feature will n
ot be activated.
-- Sources for CGAL component library 'Qt3' detected
Configuring libCGAL_Qt3
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- Sources for CGAL component library 'Qt4' detected
Configuring libCGAL_Qt4
-- USING OPENGL_VERSION = '1.1'
-- USING QT4_VERSION = '4.8.3'
-- OpenGL include:
-- OpenGL libraries:   glu32;opengl32
-- OpenGL definitions:
-- Qt4 include:        D:/QT/include
-- Qt4 libraries:      optimized;D:/QT/lib/qtmain.lib;debug;D:/QT/lib/qtmaind.li
b;optimized;D:/QT/lib/QtOpenGL4.lib;debug;D:/QT/lib/QtOpenGLd4.lib;optimized;D:/
QT/lib/QtGui4.lib;debug;D:/QT/lib/QtGuid4.lib;optimized;D:/QT/lib/QtCore4.lib;de
bug;D:/QT/lib/QtCored4.lib
-- Qt4 definitions:    -DQT_DLL
-- moc executable:     D:/QT/bin/moc.exe
-- uic executable:     D:/QT/bin/uic.exe
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_Qt4 is configured
-- Sources for CGAL component libraries 'CGAL;Core;ImageIO;Qt3;Qt4' detected
== Generating build files (DONE) ==

-- Configuring incomplete, errors occurred!
解决方案

Your output shows that CMake is searching for the libraries in the following places:

D:/program files/boost_1_51/bin/lib
D:/program files/boost_1_51/bin/stage/lib
D:/program files/boost_1_51/lib
D:/program files/boost_1_51/../lib
D:/program files/boost_1_51/stage/lib
C:/boost/lib
C:/boost
C:\Program Files (x86)/boost/boost_1_51_0/lib
C:\Program Files (x86)/boost/boost_1_51/lib
C:\Program Files (x86)/boost/lib
C:\Program Files (x86)/boost
/sw/local/lib

It also shows that it's expecting the libraries to be named in a certain way. For example, the release version of Boost.Thread:

boost_thread-vc100-mt-1_51
boost_thread-vc100-mt
boost_thread-mt-1_51
boost_thread-mt
boost_thread

If your boost libraries do exist in one of the searched locations, then it's probably the name of the library that's the problem. You can adjust the expected name of the boost libs by setting the appropriate CMake variables relevant to the FindBoost module

For example, if you built boost using bjam with link=static threading=multi then in your CMakeLists.txt before find_package(Boost ...) you'll want to do

set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)

or invoke cmake with -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON

Edit

As @noam has pointed out in the comments below, in this particular case, it appears that CGAL requires the shared (dll) versions of the boost libs; passing -DBoost_USE_STATIC_LIBS=ON on the command line has no effect.

这篇关于CMake的不是寻找升压的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 04:22