deepin V20编译ffmpeg

源代码下载

ffmpeg源代码官方下载地址
使用git签出代码

# 国内加速镜像
git clone https://gitee.com/mirrors/ffmpeg.git
# 官方站点
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
# github
git clone https://github.com/FFmpeg/FFmpeg.git

编译x86_64版ffmpeg

编译环境说明

系统:deepin V20
平台: x86_64
gcc版本:gcc version 8.3.0

编译

release/4.3版示例编译x86_64ffmpeg

cd ffmpeg
git checkout release/4.3
./configure  --prefix=/opt/App/ffmpeg --disable-x86asm
make 
make install

交叉编译龙芯MIPS64版ffmpeg(交叉编译失败,后续再研究)

交叉编译失败,ffmpeg的configure中没有cc参数,以下操作依然调用x86编译器,后续再研究交叉编译

编译环境说明

系统:deepin V20
平台: x86_64
交叉编译器:mips-loongson-gcc7.3-linux-gnu

交叉编译环境搭建

本次编译使用gcc7.3,搭建交叉编译环境可参考在x86_64平台上搭建龙芯MIPS64交叉编译环境

编译

release/4.3版示例编译x86_64ffmpeg

cd ffmpeg
git checkout release/4.3
export LD_LIBRARY_PATH=~/App/mips-loongson-gcc7.3-linux-gnu/2019.06-29/lib:$LD_LIBRARY_PATH
CC="~/App/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/mips-linux-gnu-gcc" ./configure  --prefix=/opt/mips/ffmpeg --disable-x86asm
make CROSS_COMPILE=mips-linux-gnu- -j4
make install

猜你喜欢

转载自blog.csdn.net/macaiyun0629/article/details/106881220