【问题标题】:Bambuser ffmpeg - "arm-linux-androideabi-gcc is unable to create an executable file."Bambuser ffmpeg - “arm-linux-androideabi-gcc 无法创建可执行文件。”
【发布时间】:2012-09-13 14:00:56
【问题描述】:

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

我正在尝试使用 Bambuser 的 ffmpeg 为 android 编译 ffmpeg 库。
我从 bambuser 下载了Archive for client versions 1.3.7 to 1.6.0.

我按照 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.

这是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.

tmp 中我没有找到任何相关文件夹或文件,因为 config.log 显示“ffconf.qflVj27Q.c”。

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

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

有什么办法可以解决这个问题?

【问题讨论】:

  • 找到解决方案了吗?
  • 在 Windows 中面临同样的问题
  • @AZone 你在 windows 中找到解决方案了吗?

标签: android gcc ffmpeg ubuntu-11.10 android-ndk-r5


【解决方案1】:

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

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

当我去验证这条路径是否存在时,我注意到它不存在。 我认为原因是我有一个 64 位 版本。

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

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

希望这对某人有所帮助!

【讨论】:

  • 帮帮我)谢谢!
  • 是否可以改为编辑 build.sh 文件(将 *-x86 更改为 *-x86_64)?
【解决方案2】:

我今天早上也遇到了这个问题,并尝试了针对类似问题提出的解决方案。但是没有一个解决方案对我有用。

但最后我解决了。就我而言,这是 Android NDK 包的问题。我的系统是 64 位的 ubuntu,我的 ndk pkg 也是 linux-64 位的。但是当我使用 ndk-linux-x86 时,这个问题就解决了。我希望这可能对其他人有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-23
    • 2016-03-02
    • 1970-01-01
    • 2014-10-31
    • 1970-01-01
    • 2017-05-11
    • 1970-01-01
    相关资源
    最近更新 更多