在步骤中构建失败'检索所需的工具链组件' tar包

时间:2014-03-12 18:38:03

标签: linux ffmpeg raspberry-pi cross-compiling crosstool-ng

我尝试在我的覆盆子pi中构建crosstool,我遵循的程序来自How to compile FFmpeg for Raspberry Pi (Raspbian)。当我完成ct-ng build(花费很长时间)时,发生了错误。它显示Build failed in step 'Retrieving needed toolchain components' tarballs called in step '{top-level}'

以下是我从build.log中复制的错误。

[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_kernel_get[scripts/build/kernel/linux.sh@735]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@576]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/opt/cross/share/doc/crosstool-ng/ct-ng.1.19.0/B - Known issues.txt'
[ERROR] 

我该如何解决这个问题?请帮助我,我已经浪费了2天的时间。

1 个答案:

答案 0 :(得分:2)

Raspbian 实际上是Debian。如果您在主机上安装了相同的版本(7或8),则可以通过Emdebian获得工具链。有关详细信息,请参阅此wiki。例如:

apt-get install g++-4.4-arm-linux-gnueabi

通过xapt安装缺少的交叉编译依赖项。

替代方法是使用Buildroot。一方面BR也有ct-ng后端,另一方面你可以用它创建一个完整的根文件系统。 BR还提供ffmpeg包。