当前位置: 技术问答>linux和unix
ubuntu 10.04下用Android-NDK-R7编译FFMPEG问题
来源: 互联网 发布时间:2017-04-08
本文导语: 在ubuntu10.04 下用Android-NDK-R7编译FFMPEG0.8.6,在config。sh后出现如下编译错误: /home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc is unable to create an executable file. C comp...
在ubuntu10.04 下用Android-NDK-R7编译FFMPEG0.8.6,在config。sh后出现如下编译错误:
/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.
结果导致无法生成“config.h“
config.log信息中:
WARNING: Unknown C compiler /home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc, unable to select optimal CFLAGS
check_ld
check_cc
BEGIN /tmp/ffconf.AByrNhAB.c
1 int main(void){ return 0; }
END /tmp/ffconf.AByrNhAB.c
/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -I/home/ScottWong/android-ndk-r7/platforms/android-8/arch-arm/usr/include -c -o /tmp/ffconf.a9gPQAxu.o /tmp/ffconf.AByrNhAB.c
./configure: 2357: /home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: not found
C compiler test failed.
但是我在我config.sh规定的路径下看到有arm-linux-androideabi-gcc,但是运行到这里就出错,不知道各位大家于没有遇到这个问题 望帮助解答。
/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.
结果导致无法生成“config.h“
config.log信息中:
WARNING: Unknown C compiler /home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc, unable to select optimal CFLAGS
check_ld
check_cc
BEGIN /tmp/ffconf.AByrNhAB.c
1 int main(void){ return 0; }
END /tmp/ffconf.AByrNhAB.c
/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -I/home/ScottWong/android-ndk-r7/platforms/android-8/arch-arm/usr/include -c -o /tmp/ffconf.a9gPQAxu.o /tmp/ffconf.AByrNhAB.c
./configure: 2357: /home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: not found
C compiler test failed.
但是我在我config.sh规定的路径下看到有arm-linux-androideabi-gcc,但是运行到这里就出错,不知道各位大家于没有遇到这个问题 望帮助解答。
|
你的路径写错了,注意第一行/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc,应该是/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideabi-4.43/prebuilt/windows/bin/arm-linux-androideabi-gcc,你上面的那个路劲是不存在的
在你的config.sh 文件中prebuild的路径应该是/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideab-4.4.3/prebuilt/windows,我下载的ndk r7 包中,linux-x86是和arm-linux-androideabi-4.4.3是在平行的目录中
在你的config.sh 文件中prebuild的路径应该是/home/ScottWong/android-ndk-r7/toolchains/arm-linux-androideab-4.4.3/prebuilt/windows,我下载的ndk r7 包中,linux-x86是和arm-linux-androideabi-4.4.3是在平行的目录中