【问题标题】:Compile FFMpeg for Xcode 5 without GCC?为没有 GCC 的 Xcode 5 编译 FFMpeg?
【发布时间】:2014-01-27 11:03:25
【问题描述】:

我正在尝试编译 FFMpeg 以添加到我在 Xcode5 中的 iOS 应用程序项目中,但是由于不再包含 GCC,FFMpeg 中包含的 ./configure 脚本不起作用。 Unix/Linux 不是我的强项,所以我不知道下一步该做什么。我知道我可以手动安装 GCC,但是如果 FFMpeg 是用 GCC 编译的,而我的项目的其余部分是用 LLVC/Clang/不管它不会引起问题的。我确实设法用 Brew 安装了 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。我该怎么办?

【问题讨论】:

    标签: ios xcode gcc ffmpeg clang


    【解决方案1】:

    尝试用clang编译它

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

    llvm-gcc 是另一种选择。

    你看到建议herethere了吗?

    【讨论】:

    • 我无法为 i386 编译它。在 config.log 文件的末尾,我得到:Unable to identify target architecture at /usr/bin/gas-preprocessor.pl line 82. GNU assembler not found, install gas-preprocessor. 我肯定在 /usr/bin 中有气体预处理器。此外,当我在 arm7 版本上进行“制作”时,我得到了很多。 warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]这有什么要注意的吗?
    猜你喜欢
    • 1970-01-01
    • 2011-11-23
    • 1970-01-01
    • 1970-01-01
    • 2013-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多