I downloaded this sample project (http://tunein.com/mobile/ios/tunein_radio_source.zip), but when compiling, I am getting in the ffmpeg library this error:
我下载了这个示例项目(http://tunein.com/mobile/ios/tunein_radio_source.zip),但是在编译时,我在ffmpeg库中遇到了这个错误:
Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'
为架构'armv7'选择了不支持的编译器'GCC 4.2'
Even when changing to LLVM, I am getting the exact same error.
即使更改为LLVM,我也会得到完全相同的错误。
Any suggestion?
Meir
2 个解决方案
#1
22
xcode build errors:
xcode构建错误:
Unsupported compiler ‘GCC 4.2′ selected for architecture ‘i386′
Solution:
This can be caused by importing a project for a pre- iOS 5 SDK into a copy of xcode with iOS 5 SDK only.
这可能是因为将iOS 5之前的SDK项目导入到仅使用iOS 5 SDK的xcode副本中。
To fix,
Click your Project -> Build Settings. Then under Build Options, there is an entry for Compiler for C/C++/Objective-C. Choose Apple LLVM compiler 3.0.
单击您的项目 - >构建设置。然后在Build Options下,有一个Compiler for C / C ++ / Objective-C的条目。选择Apple LLVM编译器3.0。
There is a chance this could effect other aspects of your binaries as you are using a new compiler, so YMMV. That being said, it’s so far caused no issues for me.
当您使用新的编译器时,这可能会影响二进制文件的其他方面,因此YMMV。话虽如此,到目前为止,对我来说没有任何问题。
#2
4
select the LLVM compiler under "Compiler Version" in the "Build settings" of project
在项目的“构建设置”中的“编译器版本”下选择LLVM编译器
#1
22
xcode build errors:
xcode构建错误:
Unsupported compiler ‘GCC 4.2′ selected for architecture ‘i386′
Solution:
This can be caused by importing a project for a pre- iOS 5 SDK into a copy of xcode with iOS 5 SDK only.
这可能是因为将iOS 5之前的SDK项目导入到仅使用iOS 5 SDK的xcode副本中。
To fix,
Click your Project -> Build Settings. Then under Build Options, there is an entry for Compiler for C/C++/Objective-C. Choose Apple LLVM compiler 3.0.
单击您的项目 - >构建设置。然后在Build Options下,有一个Compiler for C / C ++ / Objective-C的条目。选择Apple LLVM编译器3.0。
There is a chance this could effect other aspects of your binaries as you are using a new compiler, so YMMV. That being said, it’s so far caused no issues for me.
当您使用新的编译器时,这可能会影响二进制文件的其他方面,因此YMMV。话虽如此,到目前为止,对我来说没有任何问题。
#2
4
select the LLVM compiler under "Compiler Version" in the "Build settings" of project
在项目的“构建设置”中的“编译器版本”下选择LLVM编译器