0

我尝试在我的树莓派中构建交叉工具,我遵循的过程来自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天时间。

4

1 回答 1

2

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

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

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

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

.

于 2014-03-12T20:10:18.053 回答