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: Kye Wong <>
  • To:
  • Subject: Re: [cgal-discuss] compile an example code on win32 to produce
  • Date: Wed, 4 Feb 2009 13:12:55 +0800
  • 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=SzUGpD5iE7Ufw1bnSZ0dWLMnSaMrZy0HUNMsoB+/oEeU3dX0h3s3aNxj9vI8ZFbgSE G+5okrERlursI8oWJgOOlbfVeDOLmKIqbEk6H78AyWlKNWaFPEnA+6ZB1qudvchKp9Uu j1ab0nEyVcUP4cE2mwQ8pZ6/oEVkrHVW1Pf4c=

Hi!
I tried your method but still could not find the CGAL-vc80-mt-sgd.lib file.
Instead, I found the following words in the installation manual of CGAL 3.3
////////////////////////////////////////////////////
Each configuration specifies an output name which encodes the properties of the variant
as follows:

BASENAME-COMPIER(-MT)(-CRT).lib

where

BASENAME is one of 'cgal','cgalqt' or 'core++'

COMPILER is 'vc71' or 'vc80'

(-MT) is '-mt' if the library was built with multi-threading support, empty otherwise.
  (In VC80, the only choice is MT enabled, so all libs have -mt in the name)

(-CRT) encodes the runtime library (CRT) used, as follows:
   '-s'   : a static version of the CRT is used.
   '-sgd' : a static and debug version of the CRT is used. Also, the lib is built with debug information enabled.
   '-gd'  : a dynamic and debug version of the CRT is used (a DLL). Also, the lib is built with debug information enabled.
   '' (empty) : a dynamic version of the CRT is used (a DLL). There is no debug information (neither in the lib nor the CRT used).

There isn't any configuration mixing a debug CRT with a release library or viceversa.
//////////////////////////////////////////////////////////////////
 
I tried to sest -CRT in CMake but the output files were still incorrect.
 
So anyone has idea on how to built the CGAL-vc80-mt-sgd.lib file in windows+vs2005?
IOW,if my application using MFC+CGAL needs to use static link, how to build the corresponding CGAL lib files?
 
Thanks very much!
 
 
 
 
 
 

 
On Wed, Feb 4, 2009 at 1:29 AM, 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.
Then I figured if someone had already set up this environment, compiling my
example is just a matter of a few minutes, far shorter than I spent another
day or so to set up everything.


On Tue, Feb 3, 2009 at 7:01 AM, <> wrote:
Hi!
I'm not sure whether your problem is the same with mine, view this topic I post
on the mailing list last week if you like.

https://lists-sop.inria.fr/sympa/arc/cgal-discuss/2009-01/msg00308.html

I'm also curious on the question that if an application  using CGAL could use
static link in Windows.

I've tried building CGAL using static link and then used the compiled static
library,however,errors occur when I compiled my application using static link.

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




--
Kye Wong



Archive powered by MHonArc 2.6.16.

Top of Page