ijkplayer编译(mac)

来源:互联网 发布:护肤品越贵越好吗知乎 编辑:程序博客网 时间:2024/05/11 03:14

编译环境 Mac OS X 10.10.5。

第一步:

打开终端,输入一下命令安装homebrew, git, yasm。
 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install git brew install yasm

第二步:

配置ndk
# add these lines to your ~/.bash_profile or ~/.profile# export ANDROID_SDK=<your sdk path># export ANDROID_NDK=<your ndk path>
配置后如下图:

第三步:

colone项目
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android

第四步:

编译ffmpeg
cd ijkplayer-android ./init-android.sh cd configrm module.shln -s module-default.sh module.shcd android/contrib./compile-ffmpeg.sh clean./compile-ffmpeg.sh all

第五步:

编译 ijkplayer
cd .../compile-ijk.sh all

编译完成会在android目录下生成ijkplayer文件,为studio工程。导入android studio即可。
参考文章:
http://blog.qiji.tech/archives/7908
https://github.com/Bilibili/ijkplayer



1 0
原创粉丝点击