Boost libraries built for iPhone
I'm a heavy user of the Boost C++ Libraries, and spent a while earlier this year figuring out how to build Boost for iPhone OS so I could port my existing game engine and libraries. When I got it working, I planned to write a detailed guide, but as I still haven't got around to that, I figured I'd just make some binaries available instead. I gather less hacking is required now than used to be, but this still might save someone some time.
The archives linked below include both debug and release versions, built from Boost 1.41.0 sources against iPhone OS 3.1 on GCC 4.2, with threading=multi. All libraries are static versions only, because (afaik) you're not supposed to do your own dynamic libraries on the iPhone.
The 'release' builds are built with optimization=space, because I had a runtime crash (in Boost.Signals, IIRC) when using the default optimization=speed. The iPhone (not Simulator) versions are built with -mno-thumb because of a code generation failure when Thumb instructions were enabled. I suggest you modify your Xcode project settings to match — set Optimization Level on your release build to 'Fastest, Smallest' (-Os) and turn off 'Compile for Thumb'.
Boost Iostreams have been built with support for gzip but not bzip2.
Finally, the Program Options library is omitted altogether, as it failed to build for iPhone, and doesn't really make sense on the platform anyway.
Distributed under the Boost Software License.
Post a comment
I never got back to you, but I figured out how to get Boost working. Here's a post I wrote on using Boost 1.42 and the iPhone/iPad
I would greatly appreciate any information you have on how you build boost for iPhone.
Hey thanks, you have really saved my bacon. Needed to build boost to meet a deadline porting an application for work, so your binaries were mega helpful. Would it be possible for you to email me the build options / edits you made to generate these binaries? Ideally I would like to build 1_42_0 myself. Cheers :-)
Wow! This was insanely helpful :).
I've had serious problems building boost for iPhone and the deadline is looming.
Keep up the good work!
Powered by clunkyblog release 3.10. Generated in 24ms.