首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何交叉编译iOS5.1的zthread

如何交叉编译iOS5.1的zthread
EN

Stack Overflow用户
提问于 2012-06-07 12:19:48
回答 1查看 856关注 0票数 0

如何交叉编译iOS5.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-string -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/SDK/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/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-版本-最小=3.2“

获取错误日志:配置为: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --禁用-检查--启用-werror mandir --mandir=/share/man --启用- --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 =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++编译器无法创建可执行文件

所有日志为:

EN

回答 1

Stack Overflow用户

发布于 2012-07-05 04:04:07

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10925615

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档