How to install Boost library on Mountain Lion with Xcode 5 and iOS7

I tested Markdown libraries for iOS and discovered Bypass - https://github.com/Uncodin/bypass

To start, you need to install Boost. I am using Mountain Lion / Xcode / iOS 7. I downloaded version 1_54_0 and tried to install using the instructions.

Problem: "./b2 install" is looking for a "local" inside "usr" that is not on my system. I checked.

I searched in many places, but could not find a solution for Mountain Lion / XCode 5 / iOS 7. I also tried using the boost.sh script, as some spoke, but this also did not prove to be fruitful.

Has anyone encountered this issue? How to solve this? Please, help.

Update 1:

Xcode Error -

/ Users / username / Projects iPhone / Git Hub / bypass / src / parser.h: 27: 10: file "boost / algorithm / string.hpp" not found

running boost.sh mentioned in the answer here: How to compile Boost 1.54.0 (1.54) for iOS simulator (6.1) on OS X 10.8.4?

Cleaning everything before we start to build...

=================================================== ================ Done

cp: /Users/ajeetkumar/Downloads/src/boost_1_54_0/tools/build/v2/user-config.jam-bk: No such file or directory BOOST_VERSION: 1.54.0 BOOST_LIBS: random regex graph random chrono thread signals filesystem system date_time BOOST_SRC: /Users/ajeetkumar/Downloads/src/boost_1_54_0 IOSBUILDDIR: /Users/ajeetkumar/Downloads/ios/build OSXBUILDDIR: /Users/ajeetkumar/Downloads/osx/build PREFIXDIR: /Users/ajeetkumar/Downloads/ios/prefix IOSFRAMEWORKDIR: /Users/ajeetkumar/Downloads/ios/framework OSXFRAMEWORKDIR: /Users/ajeetkumar/Downloads/osx/framework IPHONE_SDKVERSION: 7.0 XCODE_ROOT: /Applications/Xcode.app/Contents/Developer COMPILER: clang++

================================================================= Done

Unpacking boost into /Users/ajeetkumar/Downloads/src... tar: Unrecognized archive format tar: Error exit delayed from previous errors.

================================================================= Done

./boost.sh: line 171: cd: /Users/ajeetkumar/Downloads/src/boost_1_54_0: No such file or directory Bootstrapping (with libs random,regex,graph,random,chrono,thread,signals,filesystem,system,date_time) ./boost.sh: line 175: ./bootstrap.sh: No such file or directory

================================================================= Done

Updating boost into /Users/ajeetkumar/Downloads/src/boost_1_54_0... cp: /Users/ajeetkumar/Downloads/src/boost_1_54_0/tools/build/v2/user-config.jam: No such file or directory ./boost.sh: line 139: /Users/ajeetkumar/Downloads/src/boost_1_54_0/tools/build/v2/user-config.jam: No such file or directory

================================================================= Done

./boost.sh: line 184: cd: /Users/ajeetkumar/Downloads/src/boost_1_54_0: No such file or directory ./boost.sh: line 187: ./bjam: No such file or directory ./boost.sh: line 188: ./bjam: No such file or directory

================================================================= Done

./boost.sh: line 191: ./bjam: No such file or directory

================================================================= Done

./boost.sh: line 194: ./b2: No such file or directory

================================================================= Done

./boost.sh: line 202: cd: /Users/ajeetkumar/Downloads/src/boost_1_54_0: No such file or directory Splitting all existing fat binaries... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_random.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_random.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_regex.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_regex.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_regex.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_regex.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_regex.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_regex.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_graph.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_graph.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_graph.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_graph.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_graph.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_graph.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_random.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_random.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_random.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_chrono.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_chrono.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_chrono.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_chrono.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_chrono.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_chrono.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_thread.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_thread.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_thread.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_thread.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_thread.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_thread.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_signals.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_signals.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_signals.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_signals.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_signals.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_signals.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_filesystem.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_filesystem.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_filesystem.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_filesystem.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_filesystem.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_filesystem.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_system.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_system.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_system.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_system.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_system.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_system.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_date_time.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_date_time.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: iphone-build/stage/lib/libboost_date_time.a (No such file or directory) cp: iphonesim-build/stage/lib/libboost_date_time.a: No such file or directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_date_time.a (No such file or directory) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: can't open input file: osx-build/stage/lib/libboost_date_time.a (No such file or directory) Decomposing each architecture .a files Decomposing libboost_random.a... ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory Decomposing libboost_regex.a... ar: ../libboost_regex.a: No such file or directory ar: ../libboost_regex.a: No such file or directory ar: ../libboost_regex.a: No such file or directory ar: ../libboost_regex.a: No such file or directory ar: ../libboost_regex.a: No such file or directory ar: ../libboost_regex.a: No such file or directory Decomposing libboost_graph.a... ar: ../libboost_graph.a: No such file or directory ar: ../libboost_graph.a: No such file or directory ar: ../libboost_graph.a: No such file or directory ar: ../libboost_graph.a: No such file or directory ar: ../libboost_graph.a: No such file or directory ar: ../libboost_graph.a: No such file or directory Decomposing libboost_random.a... ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory ar: ../libboost_random.a: No such file or directory Decomposing libboost_chrono.a... ar: ../libboost_chrono.a: No such file or directory ar: ../libboost_chrono.a: No such file or directory ar: ../libboost_chrono.a: No such file or directory ar: ../libboost_chrono.a: No such file or directory ar: ../libboost_chrono.a: No such file or directory ar: ../libboost_chrono.a: No such file or directory Decomposing libboost_thread.a... ar: ../libboost_thread.a: No such file or directory ar: ../libboost_thread.a: No such file or directory ar: ../libboost_thread.a: No such file or directory ar: ../libboost_thread.a: No such file or directory ar: ../libboost_thread.a: No such file or directory ar: ../libboost_thread.a: No such file or directory Decomposing libboost_signals.a... ar: ../libboost_signals.a: No such file or directory ar: ../libboost_signals.a: No such file or directory ar: ../libboost_signals.a: No such file or directory ar: ../libboost_signals.a: No such file or directory ar: ../libboost_signals.a: No such file or directory ar: ../libboost_signals.a: No such file or directory Decomposing libboost_filesystem.a... ar: ../libboost_filesystem.a: No such file or directory ar: ../libboost_filesystem.a: No such file or directory ar: ../libboost_filesystem.a: No such file or directory ar: ../libboost_filesystem.a: No such file or directory ar: ../libboost_filesystem.a: No such file or directory ar: ../libboost_filesystem.a: No such file or directory Decomposing libboost_system.a... ar: ../libboost_system.a: No such file or directory ar: ../libboost_system.a: No such file or directory ar: ../libboost_system.a: No such file or directory ar: ../libboost_system.a: No such file or directory ar: ../libboost_system.a: No such file or directory ar: ../libboost_system.a: No such file or directory Decomposing libboost_date_time.a... ar: ../libboost_date_time.a: No such file or directory ar: ../libboost_date_time.a: No such file or directory ar: ../libboost_date_time.a: No such file or directory ar: ../libboost_date_time.a: No such file or directory ar: ../libboost_date_time.a: No such file or directory ar: ../libboost_date_time.a: No such file or directory Linking each architecture into an uberlib ( libboost_random.a libboost_regex.a libboost_graph.a libboost_random.a libboost_chrono.a libboost_thread.a libboost_signals.a libboost_filesystem.a libboost_system.a libboost_date_time.a = > libboost.a ) rm: /Users/ajeetkumar/Downloads/ios/build//libboost.a: No such file or directory ...armv6 ar: obj/.o: No such file or directory ...armv7 ar: obj/.o: No such file or directory ...armv7s ar: obj/.o: No such file or directory ...i386 ./boost.sh: line 252: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin//ar: No such file or directory rm: /Users/ajeetkumar/Downloads/osx/build/*/libboost.a: No such file or directory ...osx-i386 ./boost.sh: line 256: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin//ar: No such file or directory ...x86_64 ./boost.sh: line 259: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin//ar: No such file or directory Framework: Building /Users/ajeetkumar/Downloads/ios/framework/boost.framework from /Users/ajeetkumar/Downloads/ios/build... Framework: Setting up directories... Framework: Creating symlinks... Lipoing library into /Users/ajeetkumar/Downloads/ios/framework/boost.framework/Versions/A/boost... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//lipo: empty archive with no architecture specification: /Users/ajeetkumar/Downloads/ios/build/armv6/libboost.a (can't determine architecture for it)

Aborted: Lipo /Users/ajeetkumar/Downloads/ios/framework failed

+4
3

openframeworks addon ( 1.56.0 iOS) : https://github.com/danoli3/ofxiOSBoost

  • (arm64, armv7, armv7s, i386, x86_64)

Xcode 6 iOS8

, script , bash script make.

0

:

'boost/algorithm/string.hpp' file not found

++ . - homebrew:

homebrew install boost

, Xcode 7, Swift use_frameworks!, Bypass cocoapod, git, , , .

Once you have installed boost, add -I /usr/local/includeto the 'Other C Linker Flags' in your target build settings. Change this location if you can install it elsewhere, but that is where homebrew will install it by default.

0
source

All Articles