|
Boost-Build : |
Subject: [Boost-build] Help building 64-bit boost libs on Mac OS X!
From: fischerandom (andreas.thyrhaug_at_[hidden])
Date: 2008-10-10 12:01:39
Hi,
I want to build boost 1.36 under Mac OS X 10.5, using the GNU g++ compiler
(4.01).
I am not using Xcode for this, but Xcode 3.0 is also installed on the
system.
I have already built boost 1.36 like this on my Mac:
# ./configure
--with-libraries=date_time,filesystem,iostreams,program_options,serialization,system,thread
# make install
./tools/jam/src/bin.macosxx86/bjam --user-config=user-config.jam
--prefix=/usr/local --exec-prefix=/usr/local --libdir=/usr/local/lib
--includedir=/usr/local/include --with-date_time --with-filesystem
--with-iostreams --with-program_options --with-serialization --with-system
--with-thread install
(a few thousand lines more was output - no errors reported)
So now I have the libraries:
/usr/local/lib/libboost_date_time-xgcc40-mt-1_36.dylib
/usr/local/lib/libboost_filesystem-xgcc40-mt-1_36.dylib
/usr/local/lib/libboost_iostreams-xgcc40-mt-1_36.dylib
/usr/local/lib/libboost_program_options-xgcc40-mt-1_36.dylib
/usr/local/lib/libboost_serialization-xgcc40-mt-1_36.dylib
/usr/local/lib/libboost_system-xgcc40-mt-1_36.dylib
/usr/local/lib/libboost_thread-xgcc40-mt-1_36.dylib
It worked fine! However, the result was 32-bit builds of the boost
libraries,
and what I need is 64-bit builds of the boost libraries!
Note: The Mac I use has a 64-bit processor, a MacBook Pro with an Intel Core
2 processor.
I have successfully built applications that compile and link an 64-bit
executable on the system
with thease flags in my Makefile:
CXXFLAGS = -arch x86_64
LDFLAGS = -arch x86_64
I guess that those compiler and linker flags need to be passed to g++
somehow
by bjam when building the boost libraries.
Any help is very much appreciated!
-- View this message in context: http://www.nabble.com/Help-building-64-bit-boost-libs-on-Mac-OS-X%21-tp19921132p19921132.html Sent from the Boost - Build mailing list archive at Nabble.com.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk