1

./configure を次のように実行しようとすると、iOS6.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 で実行可能ファイルを作成できません。C コンパイラのテストに失敗しました。

誰かが iOS6.1 で正しいパラメータを提供してくれませんか?

更新コマンド:

./configure --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver --enable-cross-compile --arch=arm --target-os=darwin --cc=/Applications/Xcode .app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2 --as='gas-preprocessor/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2' --sysroot=/applications/xcode. app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk --cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 - isysroot /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk' --enable-pic

更新コマンドのエラー:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2 は実行可能ファイルを作成できません。C コンパイラのテストに失敗しました。

configure が間違っていると思われる場合は、Git の最新バージョンを使用していることを確認してください。最新バージョンで問題が発生した場合は、ffmpeg-user@ffmpeg.org メーリング リストまたは irc.freenode.net の IRC #ffmpeg に問題を報告してください。問題の解決に役立つため、configure によって生成されたログ ファイル「config.log」を含めます。

4

1 に答える 1