Subject: CGAL users discussion list
List archive
- From: Yang Liu <>
- To:
- Subject: Re: [cgal-discuss] Building static runtime library for linking
- Date: Tue, 9 Feb 2010 19:38:43 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=HV49IOZjMfwELn9k8aalGMtplZ6lNkPwFMiHotjzXCazZXyyJQoZ+D3IzDjBxQIIpH Nr7D4BAv65STsyebaZs4f2CSLn65hWUUFWMoR9pMwysGCedvzFI56UnI7Wb1JbzQu69W Nu/H9pTSoJqaarb0+Y8sro0c7BRcZYDFSKWB4=
I had some experiences on CGAL 3.3/3.4 two years ago.
It should work on 3.5.1 also.
If I remember correctly, I did the following things without changing
cmakefile.
1. generate the Visual studio solution as usual;
change /MD to /MT, /MDd to /MTd for all vc projects or edit all the
*.vcproj files directly.
2. recompile GMP and MPFR under static runtime mode, you need to
download vc proj from
http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php and
original gmp and mpfr sources code.
then put the result into CGAL-3.5.1\auxiliary\gmp\lib. You may skip
this step since CGAL-3.5.1 provides static gmp/mpfr libraries.
3. make sure that you have static boost libraries.
4. read autolink/autolink.h if some libraries are not linked correctly
when you compile CGAL. The names of cgal/boost/gmp/mpfr libraries
should follow the rules defined in autolink.h.
Maybe someone can provide a better solution for you.
Good luck !
Yang Liu
On Tue, Feb 9, 2010 at 4:57 PM,
<>
wrote:
> Recently, I have tried to compile CGAL 3.5.1 project to generate static
> runtime
> library for linking in msvc-2005 compiler
>
> So, I changed all /MD to /MT and /MDd to /MTd in CMAKE List..
> But, I could not succeed the compiling..
>
> if there is anyone who experienced like that, please give me any
> comments...
>
> And, I'll be helpful if anyone who had ever generated the static runtime
> library offer the "CMakeCache.txt" file..
>
> Thanks~
>
> Best wishes,
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>
- [cgal-discuss] Building static runtime library for linking, inyeop, 02/09/2010
- Re: [cgal-discuss] Building static runtime library for linking, Yang Liu, 02/09/2010
Archive powered by MHonArc 2.6.16.