Ffmpeg 为iOS 5编译x264
我正在尝试将libx264的最新版本编译到ios5arm 2010年年中,盖伯瑞尔的建筑剧本成功了 不再是了 它说没有找到工作的C编译器 有人能直接回答我吗? 现在是2012年,谷歌似乎没有人编辑过它。更新: 我已将所需文件添加到下面的github存储库中。 我把加布里埃尔的剧本改了。我一直想在网上发布完整的脚本,但这里是你需要的部分。把它放到加布里埃尔的剧本里。这适用于XCode 4.2。我还没有更新到4.3来测试路径名是否仍然有效,但是我认为您可以从下面的列表中找到更新的位置 对于armv6 CC=/Developer/Platforms/iPhoneOS.Platforms/Developer/usr/bin/llvm-gcc./configure-host=arm-apple-darwin-sysroot=/Developer/Platforms/iPhoneOS.Platforms/Developer/SDKs/iPhoneOS5.0.sdk-prefix='dist'-extra-cflags='-arch-armv6'-extra-ldflags='-L/Developer/Platforms/iPhoneOS.Platforms/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib-启用pic-禁用asm-启用静态 对于armv7 CC=/Developer/Platforms/iPhoneOS.Platforms/Developer/usr/bin/llvm-gcc./configure-host=arm-apple-darwin-sysroot=/Developer/Platforms/iPhoneOS.Platforms/Developer/SDKs/iPhoneOS5.0.sdk-prefix='dist'-extra-cflags='-arch-armv7'-extra-ldflags='-L/Developer/Platforms/iPhoneOS.platform/Developer/sdk/iPhoneOS5.0.sdk/usr/lib--启用pic-启用静态 要将这些链接到ffmpeg,请确保将库的路径和标题放入-extra cflags和-extra ldflags中。如果没有,它会抱怨找不到libx264库。下面是你需要打开这一切的地方Ffmpeg 为iOS 5编译x264,ffmpeg,x264,Ffmpeg,X264,我正在尝试将libx264的最新版本编译到ios5arm 2010年年中,盖伯瑞尔的建筑剧本成功了 不再是了 它说没有找到工作的C编译器 有人能直接回答我吗? 现在是2012年,谷歌似乎没有人编辑过它。更新: 我已将所需文件添加到下面的github存储库中。 我把加布里埃尔的剧本改了。我一直想在网上发布完整的脚本,但这里是你需要的部分。把它放到加布里埃尔的剧本里。这适用于XCode 4.2。我还没有更新到4.3来测试路径名是否仍然有效,但是我认为您可以从下面的列表中找到更新的位置 对于armv
--enable-libx264 \
--enable-encoder=libx264 \
--enable-encoder=libx264rgb \
--enable-gpl
更新:
我已将所需文件添加到下面的github存储库中。
我把加布里埃尔的剧本改了。我一直想在网上发布完整的脚本,但这里是你需要的部分。把它放到加布里埃尔的剧本里。这适用于XCode 4.2。我还没有更新到4.3来测试路径名是否仍然有效,但是我认为您可以从下面的列表中找到更新的位置
对于armv6
CC=/Developer/Platforms/iPhoneOS.Platforms/Developer/usr/bin/llvm-gcc./configure-host=arm-apple-darwin-sysroot=/Developer/Platforms/iPhoneOS.Platforms/Developer/SDKs/iPhoneOS5.0.sdk-prefix='dist'-extra-cflags='-arch-armv6'-extra-ldflags='-L/Developer/Platforms/iPhoneOS.Platforms/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib-启用pic-禁用asm-启用静态
对于armv7
CC=/Developer/Platforms/iPhoneOS.Platforms/Developer/usr/bin/llvm-gcc./configure-host=arm-apple-darwin-sysroot=/Developer/Platforms/iPhoneOS.Platforms/Developer/SDKs/iPhoneOS5.0.sdk-prefix='dist'-extra-cflags='-arch-armv7'-extra-ldflags='-L/Developer/Platforms/iPhoneOS.platform/Developer/sdk/iPhoneOS5.0.sdk/usr/lib--启用pic-启用静态
要将这些链接到ffmpeg,请确保将库的路径和标题放入-extra cflags和-extra ldflags中。如果没有,它会抱怨找不到libx264库。下面是你需要打开这一切的地方
--enable-libx264 \
--enable-encoder=libx264 \
--enable-encoder=libx264rgb \
--enable-gpl
我已经更新了Gabriel/rodisbored build_x264脚本,使其能够与Xcode 4.6和iOS SDK 6.1一起工作。我的版本还构建了库,以便它可以在模拟器中运行。看
不幸的是,我放弃了修复附带的build_ffmpeg_x264.sh脚本,而是从中更新了Rakefile。因此,要查看我构建x264和FFmpeg的脚本,请查看我已经更新了Gabriel/rodisbored build_x264脚本,以便它与Xcode 4.6和iOS SDK 6.1一起工作。我的版本还构建了库,以便它可以在模拟器中运行。看
不幸的是,我放弃了修复附带的build_ffmpeg_x264.sh脚本,而是从中更新了Rakefile。因此,要查看我构建x264和FFmpeg的脚本,请查看,您可以尝试以下几行:
# you are now outside x264 dir.
export SDKVERSION="6.1"
cd x264
make clean
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
./configure \
--host=arm-apple-darwin \
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVERSION}.sdk \
--prefix=build/armv7s \
--extra-cflags='-arch armv7s' \
--extra-ldflags="-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVERSION}.sdk/usr/lib/system -arch armv7s" \
--enable-pic --enable-static
# ok now, you get the right Makefile.
您可以简单地尝试以下几行:
# you are now outside x264 dir.
export SDKVERSION="6.1"
cd x264
make clean
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
./configure \
--host=arm-apple-darwin \
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVERSION}.sdk \
--prefix=build/armv7s \
--extra-cflags='-arch armv7s' \
--extra-ldflags="-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVERSION}.sdk/usr/lib/system -arch armv7s" \
--enable-pic --enable-static
# ok now, you get the right Makefile.
如果您没有适当的许可证,请小心向公众开放…@IgnacioVazquez Abrams您的意思是什么?如果您没有适当的许可证,请小心向公众开放…@IgnacioVazquez Abrams您的意思是什么?您的应用程序可以发布到AppStore吗?使用ffmpeg和-enable gpl选项与iTunes应用商店不兼容。您的应用是否可以发布到应用商店?使用ffmpeg和-enable gpl选项编译的应用与iTunes应用商店不兼容。