我尝试在我的树莓派中构建 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 天时间。
最佳答案
Raspbian 实际上是 Debian。如果你在你的主机上安装相同的版本(7 或 8),那么你可以通过 Emdebian 获得一个工具链。 .看这个wiki更多细节。示例:
apt-get install g++-4.4-arm-linux-gnueabi
通过 xapt
为交叉编译安装缺少的依赖项。
替代方法是使用 Buildroot .一方面 BR 也有 ct-ng 后端,另一方面你可以用它创建一个完整的根文件系统。 BR还提供了ffmpeg包。
.
关于linux - 在步骤 'Retrieving needed toolchain components' tarball 中构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22360870/