【问题标题】:how to cross compile zthread for ios 5.1如何为 ios 5.1 交叉编译 zthread
【发布时间】:2012-06-11 03:24:04
【问题描述】:

如何为 ios 5.1 交叉编译 zthread,任何人都可以帮助我吗?

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/Contents/ Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc CFLAGS="-arch armv7 -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-变量 -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/包括 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk" CPP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer /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 /Applications/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/Contents/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-darwin11-llvm-g++-4.2':execvp:没有这样的文件或目录 配置:2222:错误:C++ 编译器无法创建可执行文件

所有日志都是:

【问题讨论】:

    标签: ios5.1 cross-compiling


    【解决方案1】:

    我在另一个项目中也遇到了这个错误。这是因为现在 Xcode 4.3 成为安装在 /Applications 文件夹中的应用程序(不再在 /Developer 下)并且所有路径都更改了。 第一:你安装了 Xcode 命令行工具吗?您可以打开菜单“XCode-->Preferences-->Downloads”来验证它。 安装它们后,您应该在以下位置找到所有编译器命令: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/

    【讨论】:

      猜你喜欢
      • 2014-07-19
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 2012-07-27
      • 1970-01-01
      • 2021-09-14
      • 2019-05-04
      • 2013-03-09
      相关资源
      最近更新 更多