[Boost-users] How to build boost for iPhone?

46 views
Skip to first unread message

Manfred Schwind

unread,
Apr 17, 2009, 7:54:15 AM4/17/09
to Boost Users Mailing List
Hi,

I tried to build boost for iPhone on Mac OS X. If I try the
following ...

bjam --prefix=/somePath toolset=darwin target-os=iphone macosx-
version=iphone-2.0 define=_LITTLE_ENDIAN link=static install

... the libraries will build fine, but they are i386 code, not arm, so
there're unusable.
But if I add architecture=arm ...

bjam --prefix=/somePath toolset=darwin architecture=arm target-
os=iphone macosx-version=iphone-2.0 define=_LITTLE_ENDIAN link=static
install

... the whole thing just does not build. It fails very early with the
following error:

g++-4.0: installation problem, cannot exec '/usr/bin/arm-apple-darwin9-
g++-4.0.1': No such file or directory

Any ideas/hints how to build the boost libraries for the iPhone?
(By the way, /usr/bin/arm-apple-darwin9-g++-4.0.1 is existing on my
Mac.)

Thanks in advance,
Mani
--
http://mani.de - friendly software
iVolume - listen to music freehand
Sahara - sand in your pocket
Watchdog - baffle the curious
LittleSecrets - the encrypted notepad

_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

gtsml owevwr

unread,
Apr 21, 2009, 5:26:39 PM4/21/09
to boost...@lists.boost.org
you need to add your own config file.

On Fri, Apr 17, 2009 at 12:54 PM, Manfred Schwind <li...@mani.de> wrote:
Hi,

I tried to build boost for iPhone on Mac OS X. If I try the following ...

bjam --prefix=/somePath toolset=darwin target-os=iphone macosx-version=iphone-2.0 define=_LITTLE_ENDIAN link=static install


... the libraries will build fine, but they are i386 code, not arm, so there're unusable.
But if I add architecture=arm ...

bjam --prefix=/somePath toolset=darwin architecture=arm target-os=iphone macosx-version=iphone-2.0 define=_LITTLE_ENDIAN link=static install


... the whole thing just does not build. It fails very early with the following error:

g++-4.0: installation problem, cannot exec '/usr/bin/arm-apple-darwin9-g++-4.0.1': No such file or directory
Reply all
Reply to author
Forward
0 new messages