移植方法分为两种:第一种手工移植,第二种buildroot移植。
第一种手工移植:
优点:灵活性高
缺点:重复工作多
一、配置
./configure --enable-memalign-hack --disable-debug --prefix=/随便创建的安装目录 --arch=arm --cross-prefix=arm-linux- --enable-shared --target-os=linux
二、编译
make
三、安装
make install
第二种buildroot移植:
优点:一键自动下载、补丁、配置、编译、安装
缺点:环境搭建复杂
一、前提
buildroot的板级配置
交叉编译工具链配置
二、配置
1.make menuconfig
2. Target packages --->
Audio and video applications --->
[*] ffmpeg --->
及其里面的选项依据需求选择
三、下载、补丁、配置、编译、安装
make ffmpeg
四、输出文件夹
可用的动静态库与头文件,就在
libavcodec/ libavfilter/ libavresample/ libpostproc/ libswresample/
libavdevice/ libavformat/ libavutil/ libswscale/
这些文件夹中