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._第1张图片

你可能感兴趣的:(ubuntu14.04交叉编译ffmpeg出现unable to create an executable file. C compiler test failed.)