Bambuser ffmpeg - “arm-linux-androideabi-gcc 无法创建可执行文件。”

2024-01-01

我知道这可能与某些问题重复。但这些线程的答案对我没有帮助。

我正在尝试使用 Bambuser 的 ffmpeg 为 Android 编译 ffmpeg 库。
我下载了客户端版本 1.3.7 至 1.6.0 的存档。 http://bambuser.com/r/opensource/ffmpeg-4f7d2fe-android-2011-03-07.tar.gz来自竹木用户。

我遵循了 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
[email protected] /cdn-cgi/l/email-protection 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.

这是最后几行配置日志ffmpeg 的

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.

in tmp我没有找到任何相关文件夹或文件,如 config.log 所示“ffconf.qflVj27Q.c”。

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

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

解决这个问题的办法是什么?


当面对同样的问题时,我终于发现了我的设置问题......查看arm-build.sh脚本,我开始遵循该脚本。注意“TOOLCHAIN=...”路径。

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

当我去验证这条路径是否存在时,我发现它不存在。 我认为原因是我有一个64-bit build.

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

我最终做的是复制该文件夹,并将其重命名为“linux-x86”,现在一切都在编译。

希望这对某人有帮助!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Bambuser ffmpeg - “arm-linux-androideabi-gcc 无法创建可执行文件。” 的相关文章

随机推荐