Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Install trouble with boost libraries

Subject: CGAL users discussion list

List archive

[cgal-discuss] Install trouble with boost libraries


Chronological Thread 
  • From: bmcwhort <>
  • To:
  • Subject: [cgal-discuss] Install trouble with boost libraries
  • Date: Wed, 9 Feb 2011 14:45:30 -0800 (PST)


Hello,

I'm new to CGAL and trying to finish up my first installation, but have
run into the following problem. I am getting errors about my boost thread
library not being the one needed for the x86_64 architecture. I have built
boost with the architecture desired to a few different options, none of
which work. When I build for bost with the architecture=x86_64 flag set, I
get all my libraries in a sub folder, but no libboost_thread.dylib library
is made, just a libboost_thread_mt.dylib. It seems that CGAL is only
interested in the libboost_thread.dylib library, which is what is confusing
me. I am using CGAL 3.7, boost 1.45 on a 64 bit Mac running OS 10.6.6. I
have attached my output from cmake and make for CGAL. Thanks in advance for
any help.

Thor:CGAL-3.7 bmcwhort$ cmake .
-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=7
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=6
-- CGAL_SOVERSION =6.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=10
-- Mac Leopard detected
-- USING CMake version: 2.8.3
-- System: Darwin
-- USING GCC_VERSION = '4.2.1 (Apple Inc. build 5664)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Using gcc version 4.2. Adding -fno-strict-aliasing
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -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
'
-- GMPXX include: /opt/local/include
-- GMPXX libraries: /opt/local/lib/libgmpxx.dylib
-- GMP include: /opt/local/include
-- GMP libraries: /opt/local/lib/libgmp.dylib
-- GMP definitions:
-- USING GMP_VERSION = '5.0.1'
-- MPFR include: /usr/local/include
-- MPFR libraries: /usr/local/lib/libmpfr.dylib
-- MPFR definitions:
-- USING MPFR_VERSION = '3.0.0'
-- Boost include: /usr/local/include
-- Boost libraries: /usr/local/lib/libboost_thread.dylib
-- Boost definitions:
-- USING BOOST_VERSION = '1.45.0'
-- 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.7.1'
-- 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;/Library/Frameworks/QtCore.framework
-- Qt4 libraries:
/Library/Frameworks/QtOpenGL.framework;/Library/Frameworks/QtGui.framework;/Library/Frameworks/QtCore.framework
-- Qt4 definitions:
-- moc executable: /Developer/Tools/Qt/moc
-- uic executable: /Developer/Tools/Qt/uic
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/bmcwhort/Desktop/CGAL/CGAL-3.7
Thor:CGAL-3.7 bmcwhort$ make
Scanning dependencies of target CGAL
[ 4%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
Linking CXX shared library ../../lib/libCGAL.dylib
ld: warning: in /usr/local/lib/libboost_thread.dylib, file was built for
i386 which is not the architecture being linked (x86_64)
Undefined symbols:
"boost::detail::set_tss_data(void const*,
boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)",
referenced from:
___tcf_4 in all_files.cpp.o
___tcf_3 in all_files.cpp.o
___tcf_5 in all_files.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [lib/libCGAL.6.0.0.dylib] Error 1
make[1]: *** [src/CGAL/CMakeFiles/CGAL.dir/all] Error 2
make: *** [all] Error 2
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Install-trouble-with-boost-libraries-tp3298282p3298282.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page