Build boost 1.43 for iPhone SDK 4.0

less than 1 minute read

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

1
2
3
4
5
6
7
8
9
10
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

1
2
./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

Categories:

Updated: