I need to use the boost serialization code. I am in the process of testing it on Android (using the NDK, obviously). Before i decide if i really want to use boost serialization code in my projects, i would like to know if boost can be compiled and used in iPhone applications. I ask this because compiling boost on Android is not an immediate thing to do, so there is the possibility that boost on iPhone will be as hard to compile as Android (sigh). Thx.
Asked
Active
Viewed 9,051 times
2 Answers
6
Hey I have updated Pete Goodliffes script in my openFrameworks addon:
- It currently has arm64, armv7, i386, x86_64
- Boost 1.59.0 or previous
- libc++ / std=c++11 -- Now optional release for libstdc++
- Precompiled and Script to build yourself (so if you need libstdc++ quite easy to change)
- Supports Xcode 7

Danoli3
- 3,203
- 3
- 24
- 35
4
This blog will probably help you.
It says that Pete Goodliffe wrote a script that builds the boost libraries into an iOS framework. There is also an XCode project compiling the whole thing.
If people tell you that you can't use custom frameworks in iOS applications this is not true. So long as the framework is properly built (architectures for i386,armv6 and armv7 all lipo
ed together) this will work.
I haven't tried that particular framework but if it's correctly setup I am sure this will do the trick.
Keep us posted.

apouche
- 9,703
- 6
- 40
- 45
-
3Goodliffe's script is great. However, it breaks with Xcode 4.3, because everything's in a different place. I tried adjusting it, but was not successful so far. Does anyone know how to fix it? – Arne Mar 14 '12 at 15:46
-
2http://www.danielsefton.com/2012/03/building-boost-1-49-with-clang-ios-5-1-and-xcode-4-3/ – seriakillaz Sep 22 '12 at 10:07