Yocto:oe_runmake 失败,来自 bitbake 图像的 do_compile 错误

Yocto: oe_runmake failed, error in do_compile from bitbake image

我正在为此构建 yocto 图像和新手。 当我输入 bitbake piflo 命令时出现错误(piflo 是我的图像名称),如下图所示:

它说 ERROR: batctl-2017.1-r0 do_compile: oe_runmake failed 并且还说来自 makefile 的 pkg-config not found.

我从网上找到了一些解决方案并尝试了,但它给了我与上图相同的错误。 它构建正常,但在获得新的 batctl 和 batman-adv 后构建失败。

有人对此有想法吗? 请帮帮我。

如果需要更多信息或代码,我会编辑。

提前致谢。

听起来像是破损的包裹。首先,尝试清理并重建

bitbake -c cleanall batctl  
bitbake -c cleanall batman-adv  
bitbake batman-adv  
bitbake batctl

另外,你真的需要那些包吗?如果不只是通过添加到您的 local.conf

来删除它们
IMAGE_INSTALL_remove = " batctl batman-adv "

是的,就像您刚刚发现的那样,您需要将 pkg-config 添加到食谱的 DEPENDS 中。

在早期的 OpenEmbedded (Yocto) 中,它通常会成功,因为其他一些食谱在其 DEPENDS 中有 pkg-config。但是,从 Pyro 版本开始,每个配方都有自己的 sysroot;因此,您必须显式添加配方需要的所有内容到它的 DEPENDS。这样做是为了提高构建中的确定性。