X264在linux下的编译过程

1.下载x264源码

地址:http://www.videolan.org/developers/x264.html

在终端上

 git clone http://git.videolan.org/git/x264.git

2.解压源码 sudo tar -xjf last_x264.tar.bz2

cd x264-snapshot-20180705-2245

三部曲:

./configure

make

make install 

运行./configure出现 错误:

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

这是因为需要安装2.13版本的nasm 

 不能简单的运行sudo apt-get install nasm 要安装的rpm文件包tall nasm 这个版本比较低。应该通过源码编译的方式进行安装。

链接地址:https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/

下载:nasm-2.13.03.tar.gz

解压:

sudo tar -zxvf nasm-2.13.03.tar.gz

三部曲安装即可。

安装完成nasm之后再重新进入x264目录下./configure 之后就可以。


猜你喜欢

转载自blog.csdn.net/qq_39759656/article/details/80776550