为什么我的 BitBake autotools 配方在 do_configure 期间失败?

Why does my BitBake autotools recipe fail during do_configure?

我正在尝试创建一个使用自动工具的相当简单的 BitBake 配方,您可以在此处查看:

SUMMARY = "an example autotools recipe"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit autotools 
SRC_URI = "file://${TOPDIR}/piu/geo_utilities"
S = "${TOPDIR}/piu/geo_utilities"

使用包含此配方默认包的 BitBake 构建后,do_configure 失败并显示以下内容:

configure: exit 0
WARNING: /home/presslertj/repos/new-bb-layers/poky-jethro-build/build/tmp/work/x86-poky-linux/geo-utilities/0.1-r0/temp/run.do_configure.48030:1 exit 1 from
  exit 1

这似乎是矛盾的。 Here's 完整日志。什么会导致这种行为?

"configure: error: source directory already configured; run "先在那里进行 distclean"

这基本上意味着您已经更改了 ${B},但是如果您使用 autotools 进行更改,您通常需要先清除现有构建。据推测,您已经从 autotools-brokensep 转到 autotools,或者您 运行 在解压树中手动配置。

快速 'bitbake -c clean geo-utilities' 将删除解压的源代码树,然后再次进行 bitbaking 应该可以正常工作。