Makefile:2: config.mak: No such file or directory Makefile:67: /common.mak: No such file or directory Makefile:114: /libavutil/Makefile: No such file or directory
......
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solve the problem. sed: config.h: No such file or directory sed: config.h: No such file or directory
......
Makefile:2: config.mak: No such file or directory
......
make: *** No rule to make target `/tests/Makefile'. Stop.
报了一堆 No such file or directory 错误,第一行的 config.mak 也可能是 ffbuild/config.mak,带着错误去搜也搜不到什么头绪,根据报错信息去 FFmpeg 的根目录下或者 ffbuild/ 下也确实找不到所谓的 config.mak,一个解决方案是:
先不要修改 configure 文件,直接执行:./configure,但是大概率会报这个错误:
1
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
只要按照提示加上 --disable-x86asm 参数即可,重新执行完会自动生成缺失的文件。
再重新执行脚本:sudo ./build_android.sh。
但是这么做,如果是最新的 NDK 或者最新的 FFmpeg,执行完倒是不报错,但是并不会编译输出 SO 文件,所以还是老老实实用已有方案的版本吧!