我是靠谱客的博主 执着大象,最近开发中收集的这篇文章主要介绍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 to create an executable file. C compiler test failed.所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复