Subject: CGAL users discussion list
List archive
- From: pascal8361 <>
- To:
- Subject: [cgal-discuss] Re: link static
- Date: Sun, 1 May 2011 00:53:40 -0700 (PDT)
I tried the things both of you mentioned: But with no success ...
I am still with the following link command:
/usr/bin/c++ -static-libgcc -frounding-math -g -Wl
CMakeFiles/Pseudo_triangulation_2.dir/src/Pseudo_triangulation_2.o
CMakeFiles/Pseudo_triangulation_2.dir/qrc_Pseudo_triangulation_2.o -o
Pseudo_triangulation_2 -Bstatic -L/usr/local/lib
/usr/local/lib/libCGAL_Qt4.a /usr/local/lib/libCGAL.a -Wl,-Bstatic
-lboost_thread-mt -Wl,-Bstatic
/usr/local/Trolltech/Qt-4.7.0/lib/libQtOpenGL.a -Wl,-Bstatic -lGLU
-Wl,-Bdynamic -lGL -Bstatic /usr/local/Trolltech/Qt-4.7.0/lib/libQtGui.a
-Wl,-Bstatic -lpng -lSM -lICE -lXrender -lfreetype -Wl,-Bdynamic
-lfontconfig -Wl,-Bstatic -lXext -lX11 -Wl,-Bstatic
/usr/local/Trolltech/Qt-4.7.0/lib/libQtCore.a -Wl,-Bstatic
/usr/local/Trolltech/Qt-4.7.0/lib/libQtCore.a -Wl,-Bdynamic
As far as I tried, I can not remove any of the libraries.
I think the dynamic dependencies are:
lfontconfig - if I use Bstatic - I get quite a list of errors
(libfontconfig.a - is installed)
lGL - this is OpenGL (am I right?) - Using Bstatic I get the error:
/usr/bin/ld: cannot find -lGL ... which is quite clear as OpenGL is only
dynamically installed ... (removing something in: Image_3.cpp -> 1. I do not
know what ;-) 2. I don't think this will help as I can not build CGAL with
Qt support without OpenGL - and as soon as I do this I have the dynamic
dependencies in the built ".a files in CGAL" - please correct me if I am
wrong)
and the last thing is the: -Wl,-Bdynamic at the end ... if I remove this I
get a couple of errors - saying: Using 'gethostbyaddr' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking -> 'gethostbyaddr' ... is just one of them ... there are
more
THANKS for any further help!!!
best
Pascal
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/link-static-tp3455906p3487434.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Re: link static, pascal8361, 05/01/2011
Archive powered by MHonArc 2.6.16.