Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] compile an example code on win32 to produce

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] compile an example code on win32 to produce


Chronological Thread 
  • From: Qianqian Fang <>
  • To:
  • Subject: Re: [cgal-discuss] compile an example code on win32 to produce
  • Date: Wed, 4 Feb 2009 12:03:09 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oSU9nHwh59u17ssJl6LnaDEN0dwB3Rw+Df29OgPGns9M/WqSyFvdLhW580xTuK6+bB xpABD6GtC8Fbkk2YwMKlawqFQNJ0RdAStElCIpQYefgUkhZSqdmF9F9LOVmxCIJxFtSF KQZiznsPzY790d6Lv/Ckwo0c0mwQIwSaHLD/Y=

I am using "Microsoft Visual C++ 2005 Express Edition", and things are almost fine for 3.3 (not the static linking bit), but I am trying to compile my code against 3.4 beta, which I can not even set up the makefiles.

I am still hoping that someone who had set up 3.4 on a windows machine can help me compile a binary; but if I have to set up my own copy, the following is my "cmake ." output, all default installation, seems a bunch of libraries are missing and I don't know how to do with them (I don't know where to find boost_thread; GMP and MPFR are underCGAL-3.4-beta1\auxiliary, but cmake could not find them; where can I download zlib and what should I do to let cmake know where to find?)


C:\Program Files\CGAL-3.4-beta1>cmake .
-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=4
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=3
-- CGAL_SOVERSION     =3.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building static libraries
-- Targetting Visual Studio 8 2005
-- Target build enviroment supports auto-linking
-- Using VC80 compiler.
-- Generator uses intermediate configuration directory: $(OutDir)
-- USING CMake version: 2.6.2
-- System: Windows
-- Build type: Release
-- USING CXXFLAGS = ' /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR -D_CRT_SECURE_NO_
DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_
WARNINGS /MD /O2 /Ob2 /D NDEBUG -D_SECURE_SCL=0'
-- USING LDFLAGS = ' '
-- Could NOT find GMP
-- Could NOT find MPFR
CMake Error at cmake/modules/FindBoost.cmake:613 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.37.0

  Boost include path: D:/Download/boost/boost_1_37_0

  The following Boost libraries could not be found:

          boost_thread

  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:12 (find_package)
  cmake/modules/CGAL_SetupDependencies.cmake:17 (include)
  CMakeLists.txt:201 (include)


-- Boost include:     D:/Download/boost/boost_1_37_0
-- Boost libraries:
-- Boost definitions:
-- USING BOOST_VERSION = '1.37.0'
-- CMAKE_INSTALL_PREFIX=C:/Program Files/CGAL
-- CGAL_Core needs GMP, cannot be configured.
-- Could NOT find ZLIB  (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- OpenGL include:
-- OpenGL libraries:   glu32;opengl32
-- NOTICE: CGAL_ImageIO needs ZLib to read compressed files. That feature will n
ot be activated.
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- CGAL_Qt4 needs Qt4, cannot be configured.
-- Configuring incomplete, errors occurred!



On Tue, Feb 3, 2009 at 12:44 PM, Laurent Rineau (GeometryFactory) <> wrote:
On Tuesday 03 February 2009 18:29:49 Qianqian Fang wrote:
> Indeed, I was able to compile CGAL 3.3.1 on windows. Your question is
> related to
> compilation configurations. If you open CGAL80.sln with VC2005, you can
> find 4 configurations from the "Configuration Manager", each of them maps
> to a string in the compiled library file. If your code complains about a
> missing CGAL
> lib, make sure you compile for that configuration first.
>
> However, for 3.4beta, I was not even able to create the sln files. Cmake
> complained
> that GMP and MPFR are missing, even they do exist in the auxilary
> directory.

If your first mail of the current thread, you forgot to tell us an interesting
information: your compiler name and version¹. You say your are using VC2005.
Have you tried both Debug and Release configurations? Have you installed the
service pack 1 of VC2005?

¹) See http://www.cgal.org/bug_report.html


Actually maybe there is a problem using CGAL libraries with a static runtime.
That setup has not been really tested on Windows, as far as I know.

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/

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




Archive powered by MHonArc 2.6.16.

Top of Page