Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] CGAL 4.1: Cmake configuration for Boost on Windows

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] CGAL 4.1: Cmake configuration for Boost on Windows


Chronological Thread 
  • From: <>
  • To: <>
  • Subject: RE: [cgal-discuss] CGAL 4.1: Cmake configuration for Boost on Windows
  • Date: Sat, 7 Sep 2013 14:30:37 +0100

Hi Andreas,

Thanks. Can you tell me which boost library names are referenced when the
CMake process completes successfully?

If I disable CGAL build_shared_libs and explicitly set BOOST_LIBRARYDIR to
u:\pkg\boost.1.54.0 (replacement of '_' by '.' intentional) and I add

message(STATUS "BOOST location is: $ENV{BOOST_LIBRARYDIR}") to the root
CMakeLists.txt I get the following configure log:

-------------------------snip---------------------------------
BOOST location is: U:\pkg\boost.1.54.0\lib // i.e. correct location in env
and on disk
== Setting paths ==
Build CGAL from release in directory cgal
Packagenames: cgal
== 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 static libraries
Targetting Visual Studio 11
Target build enviroment supports auto-linking
Using VC11 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 = ' '
== Set up flags (DONE) ==

== Detect external libraries ==
External libraries supported:
GMP;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;TAUCS;Eigen3;BLAS;LAPACK;QGLVie
wer;ESBTL;Coin3D;NTL;IPE
Preconfiguring library: GMP ...
GMP has been preconfigured:
CGAL_UseGMP-file:
GMP include: U:/pkg/cgal/auxiliary/gmp/include
GMP libraries: U:/pkg/cgal/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: U:/pkg/cgal/auxiliary/gmp/include
MPFR libraries: U:/pkg/cgal/auxiliary/gmp/lib/libmpfr-4.lib
MPFR definitions:
USING MPFR_VERSION = '3.0.0'
CMake Error at R:/apps/cmake/share/cmake-2.8/Modules/FindBoost.cmake:1192
(message):
Unable to find the requested Boost libraries.

Boost version: 1.54.0

Boost include path: U:/pkg/boost.1.54.0

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:592 (include)


Boost include: U:/pkg/boost.1.54.0
Boost libraries:
Boost definitions:
USING BOOST_VERSION = '1.54.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
not 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.5'
OpenGL include:
OpenGL libraries: glu32;opengl32
OpenGL definitions:
Qt4 include: U:/pkg/qt-4.8.5/include
Qt4 libraries:
optimized;U:/pkg/qt-4.8.5/lib/qtmain.lib;debug;U:/pkg/qt-4.8.5/lib/qtmaind.l
ib;optimized;U:/pkg/qt-4.8.5/lib/QtOpenGL4.lib;debug;U:/pkg/qt-4.8.5/lib/QtO
penGLd4.lib;optimized;U:/pkg/qt-4.8.5/lib/QtGui4.lib;debug;U:/pkg/qt-4.8.5/l
ib/QtGuid4.lib;optimized;U:/pkg/qt-4.8.5/lib/QtCore4.lib;debug;U:/pkg/qt-4.8
.5/lib/QtCored4.lib
Qt4 definitions: -DQT_DLL
moc executable: U:/pkg/qt-4.8.5/bin/moc.exe
uic executable: U:/pkg/qt-4.8.5/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!

-----Original Message-----
From:


[mailto:]
On Behalf Of Andreas Fabri
Sent: 07 September 2013 13:59
To:

Subject: Re: [cgal-discuss] CGAL 4.1: Cmake configuration for Boost on
Windows


What you might have missed is that you can choose between the static and
dynamic boost libraries.
Maybe you have built the one, and cmake tries to find the others.

andreas

On 07/09/2013 14:42,

wrote:
> Cmake 2.8.10.2 targetting Visual Studio 2012 (VS11)
>
> CMake complains it cannot find boost_thread and boost_system. It has
> located the correct boost root and include paths (u:\pkg\boost_1_54_0).
>
> I've got a BOOST_LIBRARYDIR set in the environment pointing at
> u:\pkg\boost_1_54_0\stage\lib which is where the B2 build process
> placed them.
>
> The full pathnames of the relevant libraries are:
>
> U:\pkg\boost_1_54_0\stage\lib\libboost_thread-vc110-mt-1_54.lib
>
> U:\pkg\boost_1_54_0\stage\lib\libboost_system-vc110-mt-1_54.lib
>
> U:\pkg\boost_1_54_0\stage\lib\libboost_signals-vc110-mt-gd-1_54.lib
>
> U:\pkg\boost_1_54_0\stage\lib\libboost_system-vc110-mt-gd-1_54.lib
>
> CMake is correctly finding the QT4 components etc.
>
> What am I missing?
>
> Thanks++
>
> Jerry.
>


--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912 skype: andreas.fabri

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss







Archive powered by MHonArc 2.6.18.

Top of Page