Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build Boost-Libraries for iPhone

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

like image 894
Nobik Avatar asked Oct 16 '09 12:10

Nobik


2 Answers

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

like image 178
Jasarien Avatar answered Oct 01 '22 16:10

Jasarien


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.

like image 21
mousebird Avatar answered Oct 01 '22 17:10

mousebird