问题解决
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` 改名放到编译 `ffmpeg_x264`所在脚本的同级目录下
脚本:X264=`pwd`/fat-x264 意思是取同级目录下的 `fat-x264 `文件夹,所以改名为 fat-x264
4.编译 i386 版本出错:building i386... No working C compiler found
解决:
指定`gcc`编译器位置:
`sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/`
参考文章:iOS手动编译并搭建FFmpeg