加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

Bambuser ffmpeg – “arm-linux-androideabi-gcc无法创建可执行

发布时间:2020-12-13 19:14:14 所属栏目:Linux 来源:网络整理
导读:我知道这可能是一些问题的重复.但这些线程的答案并没有帮助我. 我正在尝试使用Bambuser的ffmpeg为android编译ffmpeg库. 我从bambuser下载了Archive for client versions 1.3.7 to 1.6.0. . 我按照REAME中的指示进行操作. 在运行./build.sh时遇到以下错误 arm
我知道这可能是一些问题的重复.但这些线程的答案并没有帮助我.

我正在尝试使用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)

这可能是什么解决方案?

解决方法

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

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

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

我的道路实际上是:
… /工具链/臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的

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

希望这有助于某人!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读