2012-06-07 61 views
0

如何交叉編譯zthread for ios 5.1,任何人都可以幫到我嗎?如何交叉編譯zthread for ios 5.1

http://www.cnblogs.com/maadiah/archive/2012/04/06/2434591.htmlhttp://www.haogongju.net/art/1382733

我嘗試的聯繫方式,但失敗,此錯誤。

./configure --prefix =/usr/local/iphone --build = arm-apple-darwin10 --enable-static = yes --enable-shared = no CC =/Applications/Xcode.app /目錄/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc CFLAGS =「 - arch armv7 -pipe -mdynamic-no-pic -std = c99 -Wno-trigraphs -fascal-strings -O2 -Wreturn-type -Wunused -variable -fmessage-length = 0 -fvisibility = hidden -miphoneos-version -min = 3.2 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk「CPP =/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform /開發人員/ usr/bin/arm-apple-darwin10-llvm-g ++ - 4.2 AR =/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS =「 - arch armv7 - isysroot /應用程序ns/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -miphoneos-version-min = 3.2「

得到錯誤日誌: 配置爲:/ private/var /tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix =/Applications/Xcode.app /目錄/ Developer/usr/llvm-gcc-4.2 --mandir =/share/man --enable-languages = c,objc,C++,obj-C++ --program-prefix = llvm- --program-transform-name =/^ [cg] [^ .-] * $/s/$/- 4.2/--with-slibdir =/usr/lib --build = i686-apple-darwin11 --enable-llvm =/private/var/tmp/llvmgcc42/llvmgcc42-2336.9〜22/dst-llvmCore/Developer/usr/local --program-prefix = i686-apple-darwin11- --host = x86_64-apple-darwin11 --target = i686-apple-darwin11 --with-gxx-include-dir =/usr/include/C++ /4.2.1 llvm-g ++ - 4.2:嘗試執行錯誤'/usr/bin/../llvm-gcc-4.2/bin/arm-apple-d arwin11-LLVM-G ++ - 4.2' :execvp:沒有這樣的文件或目錄 配置:2222:錯誤:C++編譯器不能創建可執行文件

所有日誌:

回答

1

我也經歷過這種錯誤另一個項目。這是因爲現在Xcode 4.3成爲安裝在/ Applications文件夾中的應用程序(並且不再在/ Developer下)並且所有路徑都改變了。 第一:你安裝了Xcode命令行工具嗎?您可以驗證它打開菜單「XCode - >首選項 - >下載」。 安裝完畢後,您應該找到所有編譯器命令: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/