Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] cgal 3.4 under mac os x 10.5

Subject: CGAL users discussion list

List archive

[cgal-discuss] cgal 3.4 under mac os x 10.5


Chronological Thread 
  • From: Szymon Stoma <>
  • To:
  • Subject: [cgal-discuss] cgal 3.4 under mac os x 10.5
  • Date: Mon, 16 Feb 2009 17:39:38 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=wfUGFHDYzPKc2Dk/2J83OjVqDbFFd4GwrU53kvhPXZHUPJ8rFXG2HmSDyJEj5hPPlp yKA6UBl1cV57ihV4eDmklgv/gbnRek52YQtzyU1mLB+lGPwdhQVCZSnNCvIwDAfvrV12 xIQKs4zmmgdReOLw+X9FbLiMnJ0dKde41Bvuw=

OK. so i spend all the morning.. and no effects. but in order:
1. i downloaded: CGAL-3.4

2. i used cmake:
cmake .
OR
cmake . -DCGAL_SHARED_LINKER_FLAGS="-Wl,-search_paths_first"
OR 
cmake . -DCGAL_CXX_FLAGS="-Wl,-search_paths_first"
i got the result i attached to this file (for the first line -DCGAL_SHARED_LINKER_FLAGS)

3. i compiled  with "make" but, i did get the messages i also attached.

the most important error (first one ;] ) was:
ld: warning in /usr/local/lib/libmpfr.dylib, file is not of required architecture

any ideas what is wrong? i switched from linux to mac recently so i might have some problems with understanding libs layout so please be patient ;]

thanks a lot!
szymon-stomas-macbook-pro:CGAL-3.4 stymek$ cmake .
-DCGAL_EXE_LINKER_FLAGS=-search_paths_first
-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=4
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=3
-- CGAL_SOVERSION =3.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=9
-- Mac Leopard detected
-- USING CMake version: 2.4.6
-- System: Darwin
-- USING GCC_VERSION = '4.0.1 (Apple Inc. build 5465)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -O3 -DNDEBUG'
-- USING LDFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- GMP include: /usr/local/include
-- GMP libraries: /usr/local/lib/libgmp.dylib
-- GMP definitions:
-- USING GMP_VERSION = '4.2.4'
-- MPFR include: /usr/local/include
-- MPFR libraries: /usr/local/lib/libmpfr.dylib
-- MPFR definitions:
-- USING MPFR_VERSION = '2.4.0'
-- Boost include: /sw/include
-- Boost libraries:
optimized;/sw/lib/libboost_thread.dylib;debug;/sw/lib/libboost_thread-d.dylib
-- Boost definitions:
-- USING BOOST_VERSION = '1.33.1'
-- CMAKE_INSTALL_PREFIX=/usr/local
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:
/System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.3'
-- ZLib include: /usr/include
-- ZLib libraries: /usr/lib/libz.dylib
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- USING QT4_VERSION = '4.4.3'
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:
/System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- OpenGL definitions:
-- Qt4 include: /usr/include
-- Qt4 libraries:
optimized;/Library/Frameworks/QtOpenGL.framework;debug;/Library/Frameworks/QtOpenGL.framework;optimized;/Library/Frameworks/QtGui.framework;debug;/Library/Frameworks/QtGui.framework;optimized;/Library/Frameworks/QtCore.framework;debug;/Library/Frameworks/QtCore.framework
-- Qt4 definitions: -DQT_DLL
-- moc executable: /Developer/Tools/Qt/moc
-- uic executable: /Developer/Tools/Qt/uic
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stymek/src/CGAL-3.4
szymon-stomas-macbook-pro:CGAL-3.4 stymek$ make
/sw/bin/cmake -H/Users/stymek/src/CGAL-3.4 -B/Users/stymek/src/CGAL-3.4
--check-build-system CMakeFiles/Makefile.cmake 0
/sw/bin/cmake -E cmake_progress_start /Users/stymek/src/CGAL-3.4/CMakeFiles 25
make -f CMakeFiles/Makefile2 all
make -f src/CGAL/CMakeFiles/CGAL.dir/build.make
src/CGAL/CMakeFiles/CGAL.dir/depend
Scanning dependencies of target CGAL
cd /Users/stymek/src/CGAL-3.4 && /sw/bin/cmake -E cmake_depends "Unix
Makefiles" /Users/stymek/src/CGAL-3.4 /Users/stymek/src/CGAL-3.4/src/CGAL
/Users/stymek/src/CGAL-3.4 /Users/stymek/src/CGAL-3.4/src/CGAL
/Users/stymek/src/CGAL-3.4/src/CGAL/CMakeFiles/CGAL.dir/DependInfo.cmake
make -f src/CGAL/CMakeFiles/CGAL.dir/build.make
src/CGAL/CMakeFiles/CGAL.dir/build
/sw/bin/cmake -E cmake_progress_report /Users/stymek/src/CGAL-3.4/CMakeFiles 1
[ 4%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.o
/usr/bin/c++ -DCGAL_EXPORTS -frounding-math -O3 -DNDEBUG -fPIC
-I/Users/stymek/src/CGAL-3.4/include -I/sw/include -o
src/CGAL/CMakeFiles/CGAL.dir/all_files.o -c
/Users/stymek/src/CGAL-3.4/src/CGAL/all_files.cpp
Linking CXX shared library ../../lib/libCGAL.dylib
cd /Users/stymek/src/CGAL-3.4/src/CGAL && /sw/bin/cmake -P
CMakeFiles/CGAL.dir/cmake_clean_target.cmake
cd /Users/stymek/src/CGAL-3.4/src/CGAL && /sw/bin/cmake -E cmake_link_script
CMakeFiles/CGAL.dir/link.txt --verbose=1
/usr/bin/c++ -frounding-math -O3 -DNDEBUG -dynamiclib
-headerpad_max_install_names
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-o ../../lib/libCGAL.3.0.0.dylib -install_name
/Users/stymek/src/CGAL-3.4/lib/libCGAL.3.dylib
"CMakeFiles/CGAL.dir/all_files.o" -L/usr/local/lib -L/sw/lib -lmpfr -lgmp
-lboost_thread
ld: warning in /usr/local/lib/libmpfr.dylib, file is not of required
architecture
ld: warning in /usr/local/lib/libgmp.dylib, file is not of required
architecture
cd /Users/stymek/src/CGAL-3.4/src/CGAL && /sw/bin/cmake -E
cmake_symlink_library ../../lib/libCGAL.3.0.0.dylib ../../lib/libCGAL.3.dylib
../../lib/libCGAL.dylib
/sw/bin/cmake -E cmake_progress_report /Users/stymek/src/CGAL-3.4/CMakeFiles
1
[ 4%] Built target CGAL
make -f src/CGALCore/CMakeFiles/CGAL_Core.dir/build.make
src/CGALCore/CMakeFiles/CGAL_Core.dir/depend
Scanning dependencies of target CGAL_Core
cd /Users/stymek/src/CGAL-3.4 && /sw/bin/cmake -E cmake_depends "Unix
Makefiles" /Users/stymek/src/CGAL-3.4 /Users/stymek/src/CGAL-3.4/src/CGALCore
/Users/stymek/src/CGAL-3.4 /Users/stymek/src/CGAL-3.4/src/CGALCore
/Users/stymek/src/CGAL-3.4/src/CGALCore/CMakeFiles/CGAL_Core.dir/DependInfo.cmake
make -f src/CGALCore/CMakeFiles/CGAL_Core.dir/build.make
src/CGALCore/CMakeFiles/CGAL_Core.dir/build
/sw/bin/cmake -E cmake_progress_report /Users/stymek/src/CGAL-3.4/CMakeFiles 2
[ 8%] Building CXX object src/CGALCore/CMakeFiles/CGAL_Core.dir/all_files.o
/usr/bin/c++ -DCGAL_Core_EXPORTS -frounding-math -O3 -DNDEBUG -fPIC
-I/Users/stymek/src/CGAL-3.4/include
-I/Users/stymek/src/CGAL-3.4/src/CGALCore -I/sw/include -o
src/CGALCore/CMakeFiles/CGAL_Core.dir/all_files.o -c
/Users/stymek/src/CGAL-3.4/src/CGALCore/all_files.cpp
Linking CXX shared library ../../lib/libCGAL_Core.dylib
cd /Users/stymek/src/CGAL-3.4/src/CGALCore && /sw/bin/cmake -P
CMakeFiles/CGAL_Core.dir/cmake_clean_target.cmake
cd /Users/stymek/src/CGAL-3.4/src/CGALCore && /sw/bin/cmake -E
cmake_link_script CMakeFiles/CGAL_Core.dir/link.txt --verbose=1
/usr/bin/c++ -frounding-math -O3 -DNDEBUG -dynamiclib
-headerpad_max_install_names
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-o ../../lib/libCGAL_Core.3.0.0.dylib -install_name
/Users/stymek/src/CGAL-3.4/lib/libCGAL_Core.3.dylib
"CMakeFiles/CGAL_Core.dir/all_files.o" -L/Users/stymek/src/CGAL-3.4/lib
-L/usr/local/lib -L/sw/lib -lCGAL -lmpfr -lgmp -lboost_thread -lCGAL -lmpfr
-lgmp -lboost_thread -lmpfr -lgmp -lboost_thread
ld: warning in /usr/local/lib/libmpfr.dylib, file is not of required
architecture
ld: warning in /usr/local/lib/libgmp.dylib, file is not of required
architecture
Undefined symbols:
"___gmpz_get_d", referenced from:
CORE::BigFloatRep::toDouble() constin all_files.o
CORE::Realbase_for<CORE::BigInt>::doubleValue() constin all_files.o
"___gmpz_init_set_d", referenced from:



Archive powered by MHonArc 2.6.16.

Top of Page