【史上最傻瓜的】mac下编译FFmpeg-Android

来源:互联网 发布:超级优化txt百度云 编辑:程序博客网 时间:2024/05/18 16:13

https://github.com/yixia/FFmpeg-Android


环境篇

1、下载FFmpeg-Android

2、安装git

3、安装Android ndk

4、安装ccache(这个不装会哭的,我编译了半小时,突然说ccache command not found,吐血)


命令篇
5、$ export ANDROID_NDK=/path/to/your/android-ndk
6、$ ./FFmpeg-Android.sh



ccache

安装参考:http://www.47ak.com/archives/tag/ccache-command-not-found

下载地址:http://ccache.samba.org/

tar -xvf ccache-3.1.9.tar.bz2
cd ccache-3.1.9
./configure
make
make install //Mac系统安装需要加上sudo,即sudo make install

默认安装路径(which ccache):
/usr/local/bin/ccache

原创粉丝点击