Mac android
第一步:准备工作 install homebrew, git, yasm
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install yasm
第二步:配置ANDROID_SDK、ANDROID_NDK环境变量;
这里要注意ndk版本不能大于16
旧版ndk下载地址,应该要翻墙才能打开
ANDROID_HOME
export ANDROID_HOME=/Users/ribory/dev/android/sdk
export PATH={ANDROID_HOME}/tools
export PATH={ANDROID_HOME}/platform-tools
ANDROID_NDK
export ANDROID_NDK=/Users/ribory/dev/android/android-ndk-r14b
export PATH=ANDROID_NDK
第三步:下面就是执行命令了
https://github.com/Bilibili/ijkplayer
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
cd ijkplayer-android
git checkout -B latest k0.8.8
cd android/contrib
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all
cd ..
./compile-ijk.sh all
网友评论