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.

boost_1_41_0_iphone.tar.bz2
boost_1_41_0_iphone_simulator.tar.bz2

Distributed under the Boost Software License.

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

9 comments

Share this:

Post a comment




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


Comments

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

http://www.devilsfanstore.com/
http://www.devilsfanstore.com/2-new-jersey-devils-jersey
http://www.devilsfanstore.com/6-ilya-kovalchuk-jersey
http://www.devilsfanstore.com/7-jamie-langenbrunner-jersey
http://www.devilsfanstore.com/8-ken-daneyko-jersey
http://www.devilsfanstore.com/9-martin-brodeur-jersey
http://www.devilsfanstore.com/10-new-jersey-devils-blank-jersey
http://www.devilsfanstore.com/11-patrik-elias-jersey
http://www.devilsfanstore.com/12-scott-stevens-jersey
http://www.devilsfanstore.com/13-zach-parise-jersey
http://www.devilsfanstore.com/3-devils-youth-jersey
http://www.devilsfanstore.com/4-devils-women-jersey
http://www.devilsfanstore.com/5-devils-authentic-jersey

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

http://www.discountlouboutinsstore.com/

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

http://www.discountairjordans13.com/

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

http://www.salecheaplouboutins.com/

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

xfthdf

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

http://paulsolt.com/2010/04/c-logging-and-building-boost-for-iphoneipad-3-2-and-macosx/

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 11ms.