I have a problem building Boost for Xcode 5 now that there is only one compiler LLVM 5.0.
I've tried with Homebrew using --c++11, using clang.... I've tried various ideas and scripts but none has worked so far.
I have a problem building Boost for Xcode 5 now that there is only one compiler LLVM 5.0.
I've tried with Homebrew using --c++11, using clang.... I've tried various ideas and scripts but none has worked so far.
To build 32/64 bit fat static binaries for boost 1.54.0 compiled with clang/llvm, the only compiler for Xcode 5:
Run:
./bootstrap.sh toolset=clang
Run:
./b2 toolset=clang --without-mpi cxxflags="-arch i386 -arch x86_64 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -stdlib=libc++ -ftemplate-depth=512" linkflags="-stdlib=libc++" link=static stage
...which puts the output libs in ./stage/lib
Then move the libraries where you want them.
These are release libraries, which should be all you need.
This is for OSX. You can change -arch and add other options in the cxxflags= for iOS.
If you need the message passing interface, remove --without-mpi from the b2 command.
==== Fun Facts:
© 2022 - 2024 — McMap. All rights reserved.
boost.sh
in this SO question? #17715135 – Scribeboost.sh
and it built the iOS version of the library without problem (Xcode 5 DP 6 on OSX 10.8). It failed to build for iphone simulator, but that is issue from the question I linked to. – Scribe