为什么我的BitBake自动工具配方在do_configure期间失败? [英] Why does my BitBake autotools recipe fail during do_configure?

查看:891
本文介绍了为什么我的BitBake自动工具配方在do_configure期间失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am attempting to create a fairly simple BitBake recipe that uses autotools, which you can see here:

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失败,并显示以下内容:

After starting a BitBake build with this recipe's default package included, do_configure fails with the following:

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

这似乎是矛盾的. 此处是完整日志.什么会导致这种行为?

which seems contradictory. Here's the full log. What would cause this kind of behavior?

推荐答案

配置:错误:源目录已配置;首先在此运行" make distclean"

"configure: error: source directory already configured; run "make distclean" there first"

这基本上意味着您已经更改了$ {B},但是如果您使用自动工具执行此操作,则通常需要先擦除现有版本.猜测,您已经从autotools-brokensep转到了autotools,或者您是在解压后的树中手动运行configure.

This basically means you've changed ${B}, but if you do that with autotools you'll generally need to wipe away the existing build first. At a guess, you've gone from autotools-brokensep to autotools, or you were running configure in the unpacked tree manually.

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

A quick 'bitbake -c clean geo-utilities' will delete the unpacked source tree, then bitbaking again should work fine.

这篇关于为什么我的BitBake自动工具配方在do_configure期间失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆