【发布时间】:2012-04-16 11:21:41
【问题描述】:
当我尝试像这样运行 ./configure 时,我正在尝试在 iOS5.1 (armv7) 上构建 ffmpeg:
./configure --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver
--enable-cross-compile --arch=arm --target-os=darwin
--cc=/applications/xcode.app/contents/Developer/usr/bin/gcc
--as='gas-preprocessor/gas-preprocessor.pl /applications/xcode.app/contents/Developer/usr/bin/gcc'
--sysroot=/applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
--cpu=cortex-a8 --extra-cflags='-arch armv7'
--extra-ldflags='-arch armv7 -isysroot /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk'
--enable-pic
我收到以下错误:
/applications/xcode.app/contents/Developer/usr/bin/gcc
is unable to create an executable file.
C compiler test failed.
如果您认为配置出错,请确保您使用的是最新的 来自 SVN 的版本。如果最新版本失败,请将问题报告给 ffmpeg-user@mplayerhq.hu 邮件列表或 irc.freenode.net 上的 IRC #ffmpeg。 包括由 configure 生成的日志文件“config.err”,因为这将有所帮助 解决问题。
谁能提供iOS5.1的正确参数?
提前致谢
【问题讨论】: