下载源码
I x86配置编译
1.配置
./configure --disable-x86asm --prefix=/home/ubuntu/Music/FFmpeg-master/x86_install
--enable-shared
一般X86不指定安装路径,默认安装,自己指定,需要配置系统环境变量
2.编译安装
make -j8
make insatll
II 龙芯派配置编译
1.配置
./configure --cross-prefix=mips64el-linux- --enable-cross-compile --target-os=linux --cc=mips64el-linux-gcc --arch=mips --prefix=/home/ubuntu/Music/FFmpeg-master/mips_install --disable-x86asm
Enabled outdevs:
fbdev oss v4l2
License: LGPL version 2.1 or later
WARNING: mips64el-linux-pkg-config not found, library detection may fail.
WARNING: generic cpu selected
libavfilter/filter_list.c is unchanged
libavcodec/parser_list.c is unchanged
libavcodec/bsf_list.c is unchanged
libavformat/demuxer_list.c is unchanged
libavformat/muxer_list.c is unchanged
libavformat/protocol_list.c is unchanged
2.编译
make -j8
注意:清理X86编译文件make clean
3.安装
sudo make install