Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Remark/Comment: Static compiling from precompiled CGAL package

Subject: CGAL users discussion list

List archive

[cgal-discuss] Remark/Comment: Static compiling from precompiled CGAL package


Chronological Thread 
  • From: Julie Bernauer <>
  • To:
  • Subject: [cgal-discuss] Remark/Comment: Static compiling from precompiled CGAL package
  • Date: Thu, 19 Nov 2009 13:48:03 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=I+0dm84RlYimW6qcT3NH3xxrWxSF1scDLbOF0EkTxqhBOIObcePGRMfUhqbe58Zfrq OjI+5dktxAYc0eanya74KJPLZgPvXen4Wu2IrlB05SkXpY6GnARWMfxtzbfSJwCx2d68 7xSO3xKbAWBPMqxLR/YHleqx7YOdoN/eVgVFs=

Hello,

I just had a comment about static compiling from precompiled CGAL package (.deb files in my case). As a basic user, I only use deb packages for libraries (boost, ...).

It took me some time to manage to compile static because actually, I first used:
cmake -DBUILD_SHARED_LIBS=FALSE -DCMAKE_CXX_FLAGS='-static -g' .
stupidly and it did not work as I did not know that the libboost_thread-mt.a needed the lpthread flag to be compatible with the libstdc++ static lib. Thus with:
cmake -DBUILD_SHARED_LIBS=FALSE -DCMAKE_CXX_FLAGS='-static -g -lpthread' .
it worked just fine.

I don't know whether it is the right way to do it but as it seems to work fine, it is fine to me.

I was just wondering whether it would have been possible to toggle the -lpthread flag by default somewhere, so that getting static compiling with CGAL get as easy as dynamic compiling.
Providing two CMakeList.txt or this kind of solution example files could also be a plus.

Having this type of thing mentioned in the documentation would also be helpful to end users. I could not find it and it would have saved me some time.


Julie


  • [cgal-discuss] Remark/Comment: Static compiling from precompiled CGAL package, Julie Bernauer, 11/19/2009

Archive powered by MHonArc 2.6.16.

Top of Page