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.

Posted by pwr (site) at December 6, 2009, 8:28pm. Category: blog. semipermalink Tags: blog, programming, c++, iphone


Share this:

Post a comment

All three fields are optional. Your email address will only be made available to the site owner.


Displaying comments 0-9 of 9 (most recent first)

Posted by devils-authentic-jersey (site) at November 23, 2012, 2:03am. Category: blog.

Posted by cheap louboutins store (site) at May 17, 2012, 8:53am. Category: blog.

Posted by Jordan Shoes (site) at May 17, 2012, 8:49am. Category: blog.

Posted by Cheap Christians (site) at May 17, 2012, 8:45am. Category: blog.


Posted by xdfh (site) at January 2, 2012, 6:01am. Category: blog.

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

Posted by Paul Solt (site) at November 9, 2010, 10:49pm. Category: blog.

I would greatly appreciate any information you have on how you build boost for iPhone.

Posted by Paul Solt (site) at April 6, 2010, 1:58pm. Category: blog.

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 :-)

Posted by Steven Jones at March 30, 2010, 10:17pm. Category: blog.

Wow! This was insanely helpful :).

I've had serious problems building boost for iPhone and the deadline is looming.

Keep up the good work!

Posted by anonymous at January 29, 2010, 11:19am. Category: blog.

Site Copyright © 1996-2009 Paul Roberts. Opinions expressed are mine and don't represent the view of my employer.
Powered by clunkyblog release 3.10. Generated in 20ms.