首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >FFMPEG iOS 7库

FFMPEG iOS 7库
EN

Stack Overflow用户
提问于 2013-10-13 12:10:29
回答 2查看 13.5K关注 0票数 3

我试着读了很多教程。我花了几个小时在google上,stackoverflow尝试回答。到目前为止,我已经读到了:Trying to compile the FFMPEG libraries for iPhoneOS platform with armv6 and arv7 architectureFFMPEG integration on iphone/ ipad projecthttps://github.com/lajos/iFrameExtractor中的一小部分。

我试图构建这个兼容iOS 7/Xcode5的库,但它不起作用。我得到的一个常见错误是:

代码语言:javascript
复制
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

一旦完成,我还会得到更多。例如:

代码语言:javascript
复制
rm: illegal option -- .
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
make: *** [clean] Error 64

我主要尝试使用这个命令来启动,但它总是在"make clean“时崩溃:

代码语言:javascript
复制
./configure \
--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
--as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk \
--target-os=darwin \
--arch=arm \
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk' \
--prefix=compiled/armv7 \
--enable-cross-compile \
--enable-nonfree \
--enable-gpl \
--disable-armv5te \
--disable-swscale-alpha \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-asm \
--disable-debug
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-10-18 00:23:00

要使用mooncatventures (our) ffmpegdecoderFramework,请进入构建设置,单击拱门并删除armv7s。

您还必须将build active architechure only更改为no。

票数 5
EN

Stack Overflow用户

发布于 2013-11-19 14:12:43

米恩图斯的回答对我很有效:https://stackoverflow.com/a/19370679/661720

支持用于iOS7和XCode5通用ffmpeg库:

安装gas预处理器

单击ZIP图标下载https://github.com/mansr/gas-preprocessor。将gas-preprocessor.pl复制到/usr/bin目录。更改gas-preprocessor.pl的权限,将所有权限都设置为读写权限。

https://gist.github.com/m1entus/6983547下载我的shell脚本

运行sh build-ffmpeg.sh.

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19341770

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档