FFMPEG iOS 7图书馆 [英] FFMPEG iOS 7 Library

查看:169
本文介绍了FFMPEG iOS 7图书馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试阅读了很多教程。
我在google上花了几个小时,stackoverflow尝试回答。
到目前为止,我已经阅读:尝试使用armv6和arv7架构为iPhoneOS平台编译FFMPEG库 在iphone / ipad项目上的FFMPEG集成 https://github.com / lajos / iFrameExtractor 几个。



我正在为iOS 7 / Xcode 5兼容性构建此库,但它不起作用。
我会得到的一个常见错误是:

 配置为:--prefix = / Applications / Xcode.app / contents / Developer / usr --with-gxx-include-dir = / usr / include / c ++ / 4.2.1 
yasm / nasm未找到或太旧。使用--disable-yasm作为一个瘫痪的构建。

如果您认为配置错误,请确保您使用Git中最新的
版本。如果最新版本失败,请将问题报告给irc.freenode.net上的
ffmpeg-user@ffmpeg.org邮件列表或IRC #ffmpeg。
包含由configure生成的日志文件config.log,因为这将帮助
解决问题。

我还会得到更多的一次完成。例如:

  rm:非法选项 - 。 
用法:rm [-f | -i] [-dPRrvW]文件...
取消链接文件
make:*** [clean]错误64

我大部分尝试使用这个命令来启动,但它总是在make clean上崩溃:

  ./ 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-编译\
--enabl e-nonfree \
--enable-gpl \
--disable-armv5te \
--disable-swscale-alpha \
--disable-doc \\ \\
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
- -disable-asm \
--disable-debug


解决方案

要使用mooncatventures(我们的)ffmpegdecoderFramework,进入构建设置
点击拱门并删除armv7s。



你还必须更改构建img src =https://i.stack.imgur.com/mFowQ.pngalt =enter image description here>


I've tried reading many tutorials. I've spent hours on google, and stackoverflow trying answer. So far I've read: Trying to compile the FFMPEG libraries for iPhoneOS platform with armv6 and arv7 architecture FFMPEG integration on iphone/ ipad project and https://github.com/lajos/iFrameExtractor few of the many.

I'm trying to build this library for iOS 7/Xcode 5 compatibility but it's not working. A common error I'd get is:

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.

I'd also get many more once that is finished. Such as:

rm: illegal option -- .
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
make: *** [clean] Error 64

I've mostly tried using this command to start, but it always crashes on "make clean":

./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

解决方案

To use the mooncatventures (our) ffmpegdecoderFramework, go into build settings click on the arch and remove the armv7s.

you must also change build active architechure only to no.

这篇关于FFMPEG iOS 7图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆