目录
- 下载编译nasm
- 下载编译yasm
- 下载编译x264
- 参考阅读
首先需要下载汇编工具,最新的x264使用的汇编工具是nasm不再是yasm,网上很多介绍是使用yasm。
1. 下载编译nasm
下载nasm安装包
wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2
解压安装nasm
tar -xjf nasm-2.13.03.tar.bz2
cd nasm-2.13.03
./configure
make
make install
2. 下载编译yasm
yasm下载地址:http://yasm.tortall.net/Download.html
下载最新的[Source .tar.gz]源码
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make
make install
编译安装yasm完成。
3. 下载编译x264
x264源码下载地址:(http://www.videolan.org/developers/x264.html),下载最新源码。
cd x264-snapshot-20131030-2245
./configure --enable-shared
make
make install
到这里x264就已经的编译完成生成相应的库文件。