进入x264路径:cd x264
./configure (可能需要加上 --enable-shared --enable-static --enable-yasm)
make
make install
(可能会缺少nasm,yasm,直接搜索下载+三部曲【./configure+make+make install】就好了 ref:linux环境下ffmpeg加入libx264编译方法 · 大专栏)
(nasm可能会make不过:解决nasm-2.13在新版ubuntu编译make不过的办法 ref:解决nasm-2.13在新版ubuntu编译make不过的办法_weixin_43328157的博客-CSDN博客)
安装好了还是not found:寻找x264.pc在哪
然后在mnys命令行中配置这个路径:使用命令
export PKG_CONFIG_PATH=usr/local/lib/pkgconfig
再cd ffmpeg 进入ffmpeg路径 ./configure --enable-gpl --enable-libx264
make
make install
希望对大家有用❤!!



