Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to statically link to cgal in Visual studio

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to statically link to cgal in Visual studio


Chronological Thread 
  • From: LTH <>
  • To:
  • Subject: Re: [cgal-discuss] How to statically link to cgal in Visual studio
  • Date: Mon, 11 Apr 2016 13:44:23 -0700 (PDT)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:kFAbIBB+828BaPtT5fm/UyQJP3N1i/DPJgcQr6AfoPdwSP74oMbcNUDSrc9gkEXOFd2CrakU26yK4uu5BDJIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/nh6buqtaKPlsArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9Kq83RLgdADU9OH0u/+XqswPCRE2B/CgySGITxz50I0CR6BzmX5r3sjb8uax5wSWyMsj/TLRyUjOnufQ4ACT0gTsKYmZquFrcjdZ92fpW

You need to install static libs for Boost first. Using the Boost installer is
much easier than compiling it from source code. Same requirement for Qt5.
When you run CMake to generate CGAL solution, don't forget to choose
"CGAL_Boost_USE_STATIC_LIBS"

Anyway, you still need libgmp.dll/libmpfr.dll. It is really hard to
statically compile GMP under VS. I successfully compiled mpir/mpfr as static
libs to replace the provided gmp/mpfr DLLs, but sadly, mpir is not fully
compatible with CGAL.




-----
Best and Regards.
LTH.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-statically-link-to-cgal-in-Visual-studio-tp4661792p4661798.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page