Unsupported 'GCC 4.2' compiler selected for 'i386' architecture

I downloaded this sample project (http://tunein.com/mobile/ios/tunein_radio_source.zip), but when compiling I get this error in the ffmpeg library:

Unsupported 'GCC 4.2' compiler selected for armv7 architecture

Even when changing LLVM I get the same error.

Any suggestion?

Meir

+8
iphone ffmpeg streaming
source share
2 answers

Xcode build errors:

Unsupported compiler 'GCC 4.2′ selected for architecture 'i386′ 

Decision:

This may be caused by importing the project for the pre-iOS 5 SDK into an xcode copy only with the iOS 5 SDK.

To fix it,

Click Project → Build Settings. Then in the "Build Options" section, this is a compiler entry for C / C ++ / Objective-C. Select Apple LLVM Compiler 3.0.

There is a possibility that this may affect other aspects of your binaries, since you are using a new compiler, therefore YMMV. That being said, until now it has not caused me any problems.

+22
source share

select the LLVM compiler in the "Compiler Version" section of the "Build Options" project

+4
source share

All Articles