码迷,mamicode.com
首页 > 其他好文 > 详细

armv8 aarch64 交叉编译 ffmpeg

时间:2017-11-07 14:34:42      阅读:1227      评论:0      收藏:0      [点我收藏+]

标签:程序   播放器   -shared   交叉编译   pre   nis   format   inpu   prefix   

   ffmpeg 支持各种压缩格式的视频解码库,经常出现在各种播放器中,交叉编译也是一项麻烦的事情。

1. 下载ffmpeg 源码包   http://ffmpeg.org/releases/ffmpeg-3.4.tar.bz2

 

2.  进入源码目录 ,配置configure 文件  

  ./configure --sysroot=/opt/poky/2.0.1/sysroots/aarch64-poky-linux/ --cc=aarch64-poky-linux-gcc --ar=aarch64-poky-linux-ar --enable-cross-compile --target-os=linux --arch=aarch64  --prefix=./aarch64/ --enable-shared

  

  配置过程比较关键  ,由于没有加  --ar = 。。。 会导致 Error: no such instruction: `rev16 %r。。。。 表示无法调用汇编代码

3. make make过程中会出现 

  strip: Unable to recognise the format of the input file问题 

  原因是 交叉工具编译环境和本地环境 中的 strip 程序冲突   可以 用  type  strip 看看

  解决办法是 在source 的 交叉编译脚本中  PATH 一行 ,最前面PATH = /你交叉编译环境下的 strip 程序/ : ....

4. make install 

  完成交叉编译。

armv8 aarch64 交叉编译 ffmpeg

标签:程序   播放器   -shared   交叉编译   pre   nis   format   inpu   prefix   

原文地址:http://www.cnblogs.com/hutiann/p/7798633.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!