2014-01-09 83 views
1

我试图编译FFMpeg来添加到我在Xcode5中的iOS应用程序项目,但是因为GCC不再包含在FFMpeg中的./configure脚本不起作用。 Unix/Linux不是我的强项,所以我几乎不知道下一步该做什么。我知道我可以手动安装GCC,但是如果FFMpeg使用GCC编译,并且我的其余项目使用LLVC/Clang编译/不管它会不会导致问题。我还是设法与酿造安装FFmpeg的,但我不知道是什么,即使实现,因为它没有使用选项的标志象下面这样做:为没有GCC的Xcode 5编译FFMpeg?

./configure --prefix=armv7 --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --enable-avresample --enable-cross-compile --sysroot="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk" --target-os=darwin --cc="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc" --extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.1" --extra-ldflags="-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=6.1" --arch=arm --cpu=cortex-a9 --enable-pic

无脚本的/修复我已经试过工作,即使他们被宣称为在IOS7/Xcode 5中工作,因为他们都使用GCC。我该怎么办?

回答

3

尝试用铿锵

--cc="/usr/bin/clang" 

llvm-gcc编译它是另一种选择。

你见过建议herethere

+0

工作。谢谢。 –

+0

虽然我无法编译i386。在config.log文件的结尾处,我得到:'无法在/usr/bin/gas-preprocessor.pl第82行识别目标架构。 未找到GNU汇编器,请安装gas-preprocessor.'我肯定有气体预处理器在/ usr/bin中。另外当我在arm7上做'make'时,我得到了很多。 '警告:值大小与约束和修饰符指定的寄存器大小不匹配[-Wasm-operand-widths]'这是否值得关注? –