1.安装openssl
下载地址
tar -zxvf openssl-fips-2.0.2.tar.gz
cd openssl-fips-2.0.2
./config
sudo make
sudo make install
2.安装yasm
下载地址
tar -xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0/
./configure
make
make install
3.缺少pkg-config
Linux上,到pkg-config官网https://www.freedesktop.org/wiki/Software/pkg-config/,下载最新安装包
下载地址
命令wget https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz,下载完成后解压
./configure
make
make check
sudo make install
如果第一步遇到如下错误:
configure: error: Either a previously installed pkg-config or "glib-2.0 >= 2.16" could not be found. Please set GLIB_CFLAGS and GLIB_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy.
只需要:
./configure --with-internal-glib
4.ffmpeg安装
cd ffmpeg
./configure --prefix=/usr/local/ffmpeg --enable-debug=3 --disable-static --enable-shared