views:

640

answers:

3

Hello

Can someone tell me, where to find a detailed guide, how to build the Boost-Libraries for using it on the iPhone-Device.

I've allready build the libs for Mac and can use them in my project (only on iPhone-Simulator). While building the project for iPhone-Device, XCode haunts me a warning: "file is not of required architecture" ond some other errors.

Please Help

+2  A: 

Start a new project in Xcode using the iPhone Static Library project template. Then import the source and headers, and compile it that way. The result should be an iPhone compatible static library

Jasarien
Thanks, that works fine and so easy it can be :)Now, the lib I build for the simulator don't works on simulator.e.g. error-message: "typeinfo for boost::regex_error", referenced from: ..."
Nobik
Depending on the library (I've never used Boost before), you may need to make some small code changes to make it work... Also, make sure that you have set the correct linker and compiler flags.
Jasarien
A: 

I started here: http://lists.boost.org/boost-build/2009/02/21326.php

With most of Boost you probably don't need to actually compile it, just include the useful headers. In my case, I just did the compiler define in my own Xcode project.

mousebird
+1  A: 

Found answer here but haven't tried yet.

Dmytro