ffmpeg NDK编译问题

按照如下链接的内容,编译FFMPEG,

http://blog.csdn.net/gobitan/article/details/22750719


会产生如下问题:

android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file.
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
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.


我的解决办法:

1.在build_script.sh里面添加export TMPDIR="/home/xxx/xx/" , 最终是ffmpeg当前路径

2.在configure文件中修改

#!/bin/bash
NDK=/home/dennis/android-ndk-r9d
SYSROOT=$NDK/platforms/android-9/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64  ->改为linux-x86


所以要检查NDK, SYSROOT, TOOLCHAIN全部路径是否正确!


你可能感兴趣的:(Android,ffmpeg)