iOS FFmpeg +H264

问题解决

1.DIED: Out of tree builds are impossible with config.h/x264_config.h in source dir.
解决:

进入 `X264` 文件夹,执行,`./configure`,再执行`./build-x264.sh`

2.Found no assembler Minimum version is nasm-2.13 If you really want to compile without asm, configure with --disable-asm.
解决:

这是因为需要安装`nasm` 
终端输入:
1. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
2.brew install nasm
3.nasm -v 安装成功可查看版本号

3.ERROR:libx264 not found

找不到 X264编译出来的包

解决:

把编译出来的 `x264` 改名放到编译 `ffmpeg_x264`所在脚本的同级目录下
脚本:X264=`pwd`/fat-x264 意思是取同级目录下的 `fat-x264 `文件夹,所以改名为 fat-x264

4.编译 i386 版本出错:building i386... No working C compiler found

编译 i386 版本出错

解决:

指定`gcc`编译器位置:
`sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/`

参考文章:iOS手动编译并搭建FFmpeg

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容