2013-10-10 76 views
4

我嘗試了降價庫iOS和發現繞道 - https://github.com/Uncodin/bypass如何在山獅安裝Boost庫在Xcode 5和iOS7

要運行一個具有安裝升壓。我正在使用Mountain Lion/XCode/iOS 7.我下載了版本1_54_0並嘗試通過說明進行安裝。

問題是'./b2 install'正在'usr'內尋找'local',這在我的系統中不存在。我檢查過。

我已經在很多地方搜索過,但找不到Mountain Lion/XCode 5/iOS 7的解決方案。我也嘗試過使用boost.sh腳本,因爲有些問題已經得到解決,但也沒有證明有效果。

有沒有人遇到過這個問題?如何解決這個問題?請幫忙。

更新1:

Xcode的錯誤 -

/用戶/用戶名/ iPhone項目/ Git的集線器/旁路/ src目錄/ parser.h:27:10:「升壓/算法/串。 HPP」找不到文件

運行boost.sh在回答這裏所說的:How can I compile Boost 1.54.0 (1.54) for the 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's .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

+0

你能複製和粘貼你從Boost.Build得到的錯誤嗎? –

+0

@IgorR。我粘貼了錯誤日誌。請看一看。 – Ajeet

+0

否/ usr/local?該目錄不應該出現在你的系統上? – sudo

回答

0

你可以使用我的插件了openFrameworks(這是1.56.0爲iOS預編譯的版本)在這裏: https://github.com/danoli3/ofxiOSBoost

  • 架構(arm64,ARMv7的,armv7s,I386,x86_64的)

測試並使用Xcode 6和iOS8

還包含使用bash腳本make自己構建提升的腳本。

+0

謝謝!對不起,我遲到了..我沒有時間來測試它,但只要我有時間,我會測試它。再次感謝! :) – Ajeet

0

如果你看到:

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

您需要安裝boost C++庫。最簡單的就是使用homebrew

homebrew install boost

另外,如果你使用的斯威夫特和use_frameworks!不能使用旁路作爲cocoapod,而是採用了最新的安裝它作爲一個git子模塊在Xcode 7從提交主分支,然後按照說明here來讓它編譯。

一旦你安裝了boost,記得在目標的構建設置中添加-I /usr/local/include到'Other C Linker Flags'。如果您恰好在其他地方安裝了該位置,請更改該位置,但這是默認情況下自制軟件將安裝它的位置。