我是靠谱客的博主 执着大象,这篇文章主要介绍ubuntu14.04交叉编译ffmpeg出现unable to create an executable file. C compiler test failed.,现在分享给大家,希望可以做个参考。

昨天在最新的64位ubuntu14.04里交叉编译的时候出现错误:

arm-xxxx-gcc is unable to create an executable file.
C compiler test failed.
 

又到config.log里看了一下,发现则直接是 “arm-xxxx-gcc, No such file or directory”,看来是找不到交叉编译器。又看了一下脚本里编译器的路径,发现没有问题。

想起自己的64位ubuntu是新装的,都还没安装32位的兼容库,觉得应该是这个问题,于是:

sudo apt-get install ia32-libs

没想到居然出现了

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32z1 lib32ncurses5 lib32bz2-1.0

看提示应该是在新版本里面这个兼容库被替代了,试着安装lib32z1-dev,等待安装完成,在重新编译ffmpeg,果然OK了。

看了下软件中心,安装这个lib32z1-dev和依赖,装完之后,以下都被装上了。。。


最后

以上就是执着大象最近收集整理的关于ubuntu14.04交叉编译ffmpeg出现unable to create an executable file. C compiler test failed.的全部内容,更多相关ubuntu14.04交叉编译ffmpeg出现unable内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部