Boost logo

Boost-Build :

Subject: [Boost-build] building boost for iphone
From: Mateusz Berezecki (mateuszb_at_[hidden])
Date: 2009-02-15 07:31:28


Hi,

I've been searching through boost build archives and found outdated
solutions only,
so I am wondering if it's possible to build boost for iphone 2.2 ?
I've tried editing darwin.jam file, so that the search path for
frameworks is corrected
but it did not help much.

I'm seeing the following error:

darwin.compile.c++
bin.v2/libs/math/build/darwin-4.0.1~iphone/release/architecture-arm/macosx-version-iphone-2.2/target-os-iphone/threading-multi/fmin.o
In file included from ./boost/math/special_functions/detail/fp_traits.hpp:27,
                 from ./boost/math/special_functions/fpclassify.hpp:20,
                 from libs/math/build/../src/tr1/fmin.cpp:8:
./boost/detail/endian.hpp:69:3: error: #error The file
boost/detail/endian.hpp needs to be set up for your CPU type.

I've edited darwin.jam file to reflect new SDKs paths for iphoneos

199 local rule init-available-sdk-versions ( condition * : root ? )
200 {
201 root ?= /Developer/Platforms/iPhoneOS.platform/Developer ;
202 local sdks-root = $(root)/SDKs ;

and got the following user-config.jam file in my ~ dir.

using darwin : 4.0.1~iphone
   : /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-g++-4.0.1
-arch arm
   : <striper>
   : <architecture>arm <target-os>iphone <macosx-version>iphone-2.2
   ;

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

Removing user-config.jam results in bjam not being able to find arm g++.

Did anyone succeed building boost for iphone at all?

Mateusz


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk