4

我正在尝试 iOS 的 Markdown 库并找到绕过 - https://github.com/Uncodin/bypass

要运行一个必须安装 Boost。我正在使用 Mountain Lion/XCode/iOS 7。我下载了版本 1_54_0 并尝试通过说明进行安装。

问题是 './b2 install' 正在寻找 'usr' 中的 'local',这在我的系统中不存在。我检查过。

我在很多地方搜索过,但找不到 Mountain Lion/XCode 5/iOS 7 的解决方案。我也尝试过使用 boost.sh 脚本,正如一些人所建议的那样,但这也没有证明是有效的。

有没有人遇到过这个问题?如何解决这个问题?请帮忙。

更新 1:

Xcode 错误 -

/Users/username/iPhone Projects/Git Hub/bypass/src/parser.h:27:10: 'boost/algorithm/string.hpp' 文件未找到

运行在此处回答中提到的 boost.sh :如何在 OS X 10.8.4 上为 iOS 模拟器 (6.1) 编译 Boost 1.54.0 (1.54)?

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

4

3 回答 3

0

在 Mac osx 10.10 Yesemite 中。在boost.sh,我只是改变

: ${IPHONE_SDKVERSION:=7.0}
: ${OSX_SDKVERSION:=10.9}

: ${IPHONE_SDKVERSION:=8.0}
: ${OSX_SDKVERSION:=10.10}

然后,问题就没有了。

参考:

  1. https://casablanca.codeplex.com/wikipage?title=Setup%20and%20Build%20on%20IOS&referringTitle=Documentation

  2. https://gitorious.org/boostoniphone/galbraithjosephs-boostoniphone/source/6ba665dee7e4ad72a32e4e085306baa81420b799

于 2014-12-26T05:35:23.330 回答
0

你可以在这里使用我的 openframeworks 插件(它是 iOS 的 1.56.0 的预编译版本): https ://github.com/danoli3/ofxiOSBoost

  • 架构(arm64、armv7、armv7s、i386、x86_64)

测试并使用 Xcode 6 和 iOS8

还包括脚本以使用 bash 脚本 make 构建提升自己。

于 2013-12-11T05:11:34.203 回答
0

如果您看到:

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

您需要安装 boost C++ 库。最简单的是使用自制软件

homebrew install boost

此外,在 Xcode 7 中,如果您使用 Swift 并且use_frameworks!不能将 Bypass 用作 cocoapod,请使用 master 分支的最新提交将其安装为 git 子模块,然后按照此处的说明进行编译。

安装 boost 后,请记住-I /usr/local/include在目标的构建设置中添加到“其他 C 链接器标志”。如果您碰巧将其安装在其他位置,请更改该位置,但这是 homebrew 默认安装的位置。

于 2015-09-25T11:42:23.720 回答