tags:

views:

215

answers:

3

I am trying to build MacOSX universal binaries (I need at least i386/ppc for >=macosx10.3) of Boost.

I tried a lot of different methods and options and versions and it all fails in the end with this crash:

http://stackoverflow.com/questions/1823605/boost-what-could-be-the-reasons-for-a-crash-in-boostslotslot

I guess this crash is because of a bad Boost build.

With Boost-1.41.0, I think the most correct options I tried were this:

./bootstrap.sh && sudo ./bjam architecture=combined macosx-version=10.4 install
+1  A: 

I suggest you use MacPorts to install Boost. That will build it automatically for you.

http://www.macports.org/ports.php?by=library&substr=boost

shrike
A: 

It was already the correct command. I found out about the problem with my crash:

You must use exactly the same STL preprocessor definitions when you compiled Boost in your project. I.e. you cannot enable _GLIBCXX_DEBUG or _GLIBCXX_DEBUG_PEDANTIC in your project when Boost was compiled without those.

Albert
Are those two extra defines added by yourself? Or are they used by default in XCode for debug builds? In the latter case, we might change Boost to use them by default, too -- if you point to a relevant documentation saying they are set.
Vladimir Prus
They are used by default in Debug build but not in Release build. Also, this may depend on the Xcode version and on the project template you use. So you cannot really rely on that.
Albert
A: 

Just installed from macports and hopefully this is good enough for you. Command below:

sudo port install boost +universal
MeThinks