下载官方安装包官方,我使用的是boost_1_86_0.zip版本
1、解压安装包
2、进入boost_1_86_0
3、./bootstrap.sh --prefix=/path/
4、./b2
5、sudo ./b2 install
6、~/.bashrc配置环境
配置x264与FFMPEG
bash
./configure --enable-shared --prefix=/opt/x264
cmake -DCMAKE_INSTALL_PREFIX=/opt/x265 -DENBLE_SHARED=off ..
cmake -DCMAKE_INSTALL_PREFIX=/opt/fdk-aac ..
./configure --prefix=/opt/FFmpeg-6.1 --enable-shared --enable-libx264 --enable-gpl --enable-libfdk-aac --enable-nonfree --enable-libx265
./configure --prefix=/opt/FFmpeg-6.1 --enable-shared --enable-libx264 --enable-gpl --enable-nonfree --enable-libx265
./configure --prefix=/opt/FFMPEG --enable-shared