Cinder Forum ARCHIVE
Note: the path needed by -isysroot may be different in your configuration. To find out the correct path, you can build an iOS app (best to first enable libc++ / C++) in Xcode and look at the build log for any compiled .cpp file. Within the details you will find the actual command used, which contains an '-isysroot /path/to/iphone/sdk..'.
Then run the usual bootstrap so you don't build the entire library (unless you want to..):
./bootstrap.sh -–with-libraries=filesystem,thread,system,date_time,regex
Finally, for OS X do:
./b2 -a -j4 toolset=clang-osx link=static stage
cp stage/lib/*.a ../lib/macosx
and for iOS:./b2 -a -j4 toolset=clang-ios link=static stage
cp stage/lib/*.a ../lib/ios
For iOS Simulator, just copy the same binaries from lib/macosx to lib/ios-sim, since they are i386 compatible.
If all went well, you should be able to create a project with libc++ enabled and make something completely useless like:
#include <atomic>
void TestApp::setup()
{
std::atomic<int> its_here(11);
auto useless_func = [&its_here]()
{
std::cout << "C++" << its_here << std::endl;
};
useless_func();
}
Also, there's just a typo in your --with-libraries=list,of,libraries. Two hyphens at the beginning will make it work.