使用android ndk r5b编译ffmpeg。
ffmpeg版本为0.6.1。
使用的工具为android ndk r5b和cygwin 1.7。
构建参考链接:http://www.cnblogs.com/scottwong/archive/2010/12/17/1909455.html
但是,执行ffmpeg的./configure命令时出现错误!(config.err文件如下)
check_cc
BEGIN /tmp/ffconf.GlDiY1P8.c
1 int main(void){ return 0; }
END /tmp/ffconf.GlDiY1P8.c
/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/windows/bin/arm-eabi-gcc -fPIC -DANDROID -c -o /tmp/ffconf.1kQLpGaU.o /tmp/ffconf.GlDiY1P8.c
arm-eabi-gcc.exe: /tmp/ffconf.GlDiY1P8.c: No such file or directory
arm-eabi-gcc.exe: no input files
C compiler test failed.
所以,我只是在尝试测试代码。
// test.c code
int main(){
return 0;
}
/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/windows/bin/arm-eabi-gcc -fPIC -DANDROID -c -o ./test.o ./test.c
好的!没问题。
但是,将./test.c复制到/tmp(拷贝到/tmp目录)。
/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/windows/bin/arm-eabi-gcc -fPIC -DANDROID -c -o ./test.o /tmp/test.c
arm-eabi-gcc.exe: /tmp/test.c: No such file or directory
arm-eabi-gcc.exe: no input files
失败了!!!只有文件路径不同。/tmp目录存在,权限也正确。/home/test.c的结果相同。
出了什么问题?