ubuntu14.04交叉编译ffmpeg出现unable to create an executable file. C compiler test failed.

来源:互联网 发布:ehviewer老是网络错误 编辑:程序博客网 时间:2024/05/16 08:38

昨天在最新的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, oris only available from another sourceHowever the following packages replace it:  lib32z1 lib32ncurses5 lib32bz2-1.0

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

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


0 0
原创粉丝点击