Build boost 1.43 for iPhone SDK 4.0

1. modify user.config.jam in tools/build/v2 directory

using darwin : 4.2.1~iphone
: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++ -arch armv7
: <striper>
: <architecture>arm <target-os>iphone
;

using darwin : 4.2.1~iphonesim
: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
: <striper>
: <architecture>x86 <target-os>iphone
;

2. compile

./bootstrap.sh
./bjam --prefix=${HOME}/usr/boost-1.43/iphone toolset=darwin architecture=arm target-os=iphone macosx-version=iphone-4.0 define=_LITTLE_ENDIAN link=static install
./bjam --prefix=${HOME}/usr/boost-1.43/iphoneSimulator toolset=darwin architecture=x86 target-os=iphone macosx-version=iphonesim-4.0 link=static install</pre>
Advertisements
This entry was posted in iPhone. Bookmark the permalink.

One Response to Build boost 1.43 for iPhone SDK 4.0

  1. acrocontext says:

    You can find detail information about building boost 1.42 for iPhone from below link.
    http://paulsolt.com/2010/04/c-logging-and-building-boost-for-iphoneipad-3-2-and-macosx/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s