Bambuser ffmpeg - "arm-linux-androideabi-gcc无法创建可执行文件."

Cha*_*kar 7 android gcc ffmpeg android-ndk-r5 ubuntu-11.10

我知道这可能是一些问题的重复.但这些线程的答案并没有帮助我.

我正在尝试使用Bambuser的ffmpeg为android编译ffmpeg库.
为客户端版本1.3.7下载了Archive到1.6.0.来自bambuser.

我按照REAME中的说明进行操作.
在运行./build.sh时遇到以下错误

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 SVN.  If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu 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.
Run Code Online (Sandbox Code Playgroud)

这是ffmpeg 的config.log的最后几行

mktemp is /bin/mktemp
check_ld
check_cc
BEGIN /tmp/ffconf.qflVj27Q.c
    1   int main(void){ return 0; }
END /tmp/ffconf.qflVj27Q.c
arm-linux-androideabi-gcc --sysroot=/home/chaitanya/android/android-ndk-r5b/platforms/android-8/arch-arm -c -o /tmp/ffconf.gc6um0Ki.o /tmp/ffconf.qflVj27Q.c
arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
C compiler test failed.
Run Code Online (Sandbox Code Playgroud)

tmp中我找不到任何相关文件夹或文件,因为config.log中写着"ffconf.qflVj27Q.c".

我这样做
1. Ubuntu 11.10
2. OpenJDK 6
3. android-ndk-r5b

NOte:
我在Eclipse中只安装了API-10.(如果重要的话:D)

这可能是什么解决方案?

小智 11

当我遇到同样的问题时,我终于发现了我的设置问题......看看arm-build.sh脚本,我开始关注脚本.注意"TOOLCHAIN = ..."路径.

最初的路径是:TOOLCHAIN =echo $NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/*-x86

当我去验证这条路存在时,我注意到它没有.我认为原因是我有64位版本.

我的路径实际上是:.../toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64

我最终做的是复制文件夹,并将其重命名为"linux-x86",现在所有人都在编译.

希望这有助于某人!