Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX Snow Leopard: Build boost 1.47.0 for 32 and 64 bit

I am going crazy...I am currently trying to upgrade boost for my project from 1.44.0 to 1.47.0 on osx snow leopard.- I want to build it with the following command:

./b2 macosx-version=10.6 link=static address-model=32_64 threading=multi stage

where i'd expect that it gives me a static fat build that supports i386 aswell as x86_64 . Anyways, it obviously does not, since if i query lipo -info of the resulting libs, they are all x86_64.- What can I do to solve this? Could it be that the build script is broken?

like image 211
moka Avatar asked Aug 02 '11 14:08

moka


2 Answers

I got it to work by using this build:

./b2 link=static threading=multi toolset=darwin cxxflags="-arch i386 -arch x86_64" macosx-version=10.6 stage

like image 70
regis Avatar answered Sep 27 '22 16:09

regis


This is what worked for me.

./b2 link=static threading=multi toolset=darwin cxxflags="-arch i386 -arch x86_64" target-os=darwin address-model=32_64 stage
like image 41
Rahul Jiresal Avatar answered Sep 27 '22 17:09

Rahul Jiresal