Subject: CGAL users discussion list
List archive
- From: Qianqian Fang <>
- To:
- Subject: Re: [cgal-discuss] compile an example code on win32 to produce
- Date: Thu, 5 Feb 2009 19:50:00 -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=SXGEiBB7GcqJvyqSseYYqBwC0brXpGyCml5j+PvCyA3bhtJfgsiR2zKyifRwL+c3OM tjbMfWNMCZooYUKDCwbFsIIPJIavm+uVrtOTzSIjh7wTfGZe16vLXL9FAPDXZqUpI1WQ wUyhRsSf4hcMfr/7VKxnDSdgFPTCnbuDZXaV4=
ok, I give up making a self-contained (statically linked) version of the program, instead, I compiled the library and example with release mode (/MT), and it turned out only two dll's are needed: gmp-vc80-mt.dll and mpfr-vc80-mt.dll. Fortunately, they are not big, and I am happy with that.
thanks for all the feedback. Although it is not terribly important to me now, if someone figure out how to get all the -s.lib files, I would be glad to learn :)
On Thu, Feb 5, 2009 at 6:42 PM, Qianqian Fang <> wrote:
hi Mahmood
thank you, just sending me the compiled binary will be fine. Have you tested the binary on another windows machine? if you did not set it linking to static libraries, the code will not run on a machine where no CGAL is installed.
Also on my side, after struggling a long time to set up boost (it could have been easier if somewhere in the INSTALL mentioned that one have to define BOOST_LIBRARYDIR, even setting BOOSTROOT is not helpful), I finally able to compile the CGAL, but just not the static versions. Setting /MT or /MTd will not create -s.lib files; renaming them to -s.lib files created tons of "unresolved external symbol" linking errors.
Have anyone ever succeeded in compiling the static libraries?On Thu, Feb 5, 2009 at 2:12 AM, Mahmood Naderan <> wrote:
>Anyway, let me make it easier for people to find my original question, attached is the code I am trying to compile, you can simply save it to >CGAL-3.4-beta1\examples\Surface_mesher\, and I appreciate if anyone can send me the compiled binary (with cgal 3.4beta) for windows.hi,
I buit it in windows with CGAL-3.4 beta and visual studio 9. It needs 11 arguments.
If you want, please give me those so that I will send you the results. All settings are
set to default and Release and Debug modes compiled with no problem.I will give you more detail when I test it with VS 2005. First of all, why don't you use
VS 2008 express?-------------------
Mahmood Naderan
From: Qianqian Fang <>
To:
Sent: Wednesday, February 4, 2009 9:12:08 PM
Subject: Re: [cgal-discuss] compile an example code on win32 to produce
just realized that the my original thread was hijacked by this new thread.
Anyway, let me make it easier for people to find my original question, attached is the code I am trying to compile, you can simply save it to CGAL-3.4-beta1\examples\Surface_mesher\, and I appreciate if anyone can send me the compiled binary (with cgal 3.4beta) for windows.
On Wed, Feb 4, 2009 at 12:03 PM, Qianqian Fang <> wrote:
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:If your first mail of the current thread, you forgot to tell us an interesting
> 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.
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
- Re: [cgal-discuss] compile an example code on win32 to produce, (continued)
- Re: [cgal-discuss] compile an example code on win32 to produce, Kye Wong, 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Andreas Fabri, 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Laurent Rineau (GeometryFactory), 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Kye Wong, 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Laurent Rineau (GeometryFactory), 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Kye Wong, 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Qianqian Fang, 02/04/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Mahmood Naderan, 02/05/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Qianqian Fang, 02/06/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Qianqian Fang, 02/06/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Kye Wong, 02/07/2009
- Re: [cgal-discuss] compile an example code on win32 to produce, Mahmood Naderan, 02/05/2009
Archive powered by MHonArc 2.6.16.