x264及ffmpeg交叉编译

系统:ubuntu14.04 32位
编译器:arm-linux-gcc(版本 gcc version 4.8.3)
目标板:gec6818

x264交叉编译:
1.解压源码包到指定目录
tar xvf last_x264.tar.bz2 -C /home/csgec/tools/
cd /home/csgec/tools/x264-snapshot-20180307-2245/
2.配置选项
./configure –enable-static –enable-shared –disable-asm –prefix=/home/csgec/tools/arm-x264 –host=arm-linux –cross-prefix=arm-linux-
3.编译
make
4.安装
make install


ffmpeg交叉编译:
1.解压源码包到指定目录
tar xvf ffmpeg-3.4.2.tar.bz2 -C /home/csgec/tools/
2.配置选项
./configure –enable-shared –disable-asm –enable-libx264 –enable-gpl –prefix=/home/csgec/tools/arm-ffmpeg –enable-cross-compile –arch=arm –target-os=linux –cross-prefix=arm-linux- –cc=arm-linux-gcc –extra-cflags=-I/home/csgec/tools/arm-x264/include –extra-ldflags=-L/home/csgec/tools/arm-x264/lib –extra-libs=-ldl
3.编译
time make -j 4
4.安装
make install

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值