参考 https://github.com/bilibili/ijkplayer 项目的编译过程 ;
执行
cd android/contrib
命令 , 进入 android/contrib 目录 ;
root@octopus:~/ijkplayer/ijkplayer-android# ls
android COPYING.LGPLv2.1 ijkmedia init-android-libyuv.sh init-config.sh NEWS.md
compile-android-j4a.sh COPYING.LGPLv2.1.txt ijkprof init-android-openssl.sh init-ios-openssl.sh NOTICE
config COPYING.LGPLv3 init-android-exo.sh init-android-prof.sh init-ios.sh README.md
COPYING.GPLv2 doc init-android-j4a.sh init-android.sh ios tools
COPYING.GPLv3 extra init-android-libsoxr.sh init-android-soundtouch.sh MODULE_LICENSE_APACHE2 version.sh
root@octopus:~/ijkplayer/ijkplayer-android#
root@octopus:~/ijkplayer/ijkplayer-android# cd android/contrib
root@octopus:~/ijkplayer/ijkplayer-android/android/contrib#
在 ~/ijkplayer/ijkplayer-android/android/contrib
目录中 , 执行
./compile-ffmpeg.sh clean
命令 ;
root@octopus:~/ijkplayer/ijkplayer-android/android/contrib#
root@octopus:~/ijkplayer/ijkplayer-android/android/contrib# ./compile-ffmpeg.sh clean
====================
[*] check archs
====================
FF_ALL_ARCHS = armv5 armv7a arm64 x86 x86_64
FF_ACT_ARCHS = FF_ACT_ARCHS_64
/root/ijkplayer/ijkplayer-android/android/contrib
参考 【错误记录】编译 Android 版本的 ijkplayer 报错 ( You must define ANDROID_NDK before starting. | 下载指定版本 NDK ) 博客 , 下载 android-ndk-r10e 版本的 ndk , 并配置到环境变量中 ;
配置 ndk 环境变量命令 :
export ANDROID_NDK=/root/ndk/android-ndk-r10e