Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Need help setting CGAL on MacOSX

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Need help setting CGAL on MacOSX


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Need help setting CGAL on MacOSX
  • Date: Sat, 09 Jun 2007 12:27:16 +0200

Gamal Akabani a écrit :
Dear All,

I am installing CGAL on MacOS 10.4.9 using i386_Darwin-8.9 gcc compiler GNU 4.0.1.
I installed boost and all is well. However, I compiled the libraries and I got a small problem at the end of the creation of the last library as follows where libCGALCore shared failed to build as shared library. I thank anyone that can help me understand this problem.

...

/usr/bin/g++ -fno-common -O2 -Wall -frounding-math '-I/Volumes/Uranium/Codes/CGAL-3.3/include/CGAL/config/i386_Darwin-8.9_g++-4.0.1' '-I/Volumes/Uranium/Codes/CGAL-3.3/include' -I/usr/local/include/boost-1_34 -I/usr/X11R6/include -DCGAL_USE_F2C -c GmpIO.cpp/usr/bin/g++ -dynamiclib -install_name '/Volumes/Uranium/Codes/CGAL-3.3/lib/i386_Darwin-8.9_g++-4.0.1'/libCGALcore++.dylib -o ''libCGALcore++.dylib \ CoreAux.o extLong.o CoreDefs.o CoreIO.o BigFloat.o Real.o Expr.o GmpIO.o \ '-L/Volumes/Uranium/Codes/CGAL-3.3/lib/i386_Darwin-8.9_g++-4.0.1' -L/usr/local/lib -lgmp -lmpfr ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option/usr/local/lib/libgmp.a(mp_bpl.o) definition of common ___gmp_junk (size 16)/usr/bin/libtool: internal link edit command failedmake: *** [libCGALcore++.dylib] Error 1make: Target `shared_lib' not remade because of errors.

As Laurent said, it's a bad GMP install (admittedly, the default GMP
install does not work well on macosx).

The recommended/simplest way is to use fink to install the packages:
gmp, mpfr, boost, qt3mac. Then install_cgal should find these
automatically.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page