ijkplayer 二次编译

编译环境

步骤

  • 拉取代码并切换对应版本的分支
  • 修改 ijkplayer 支持的格式
  • 初始化 openSSL 和 FFMPEG
  • 开始编译
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
cd ijkplayer-android
git checkout -B k0.8.8

cd config
rm module.sh
ln -s module-default.sh module.sh

./init-android-openssl.sh
./init-android.sh

cd android/contrib
./compile-openssl.sh clean
./compile-ffmpeg.sh clean

soucre /etc/.profile

./compile-openssl.sh all
// 暂停一下,这里有坑1
./compile-ffmpeg.sh all
cd ..
// 暂停一下,这里有坑2
./compile-ijk.sh all

我遇到的坑

1、linux/perf_event.h: No such file or directory
2、yasm/nasm not found or too old. Use --disable-yasm for a crippledbuild

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容