Yocto botan-2.4.0-r0 do_编译:oe_runmake失败

Yocto botan-2.4.0-r0 do_编译:oe_runmake失败,yocto,bitbake,Yocto,Bitbake,我尝试在yocto中实现botan库,我有以下内容的配方 LICENSE = "MIT" LIC_FILES_CHKSUM = "file://license.txt;md5=bf361fc63df3fa25652ee82c43b7601a" SRC_URI = "https://cdn-aws.deb.debian.org/debian/pool/main/b/botan/botan_${PV}.orig.tar.gz" SRC_U

我尝试在yocto中实现botan库,我有以下内容的配方

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://license.txt;md5=bf361fc63df3fa25652ee82c43b7601a"

SRC_URI = "https://cdn-aws.deb.debian.org/debian/pool/main/b/botan/botan_${PV}.orig.tar.gz"
SRC_URI[md5sum] = "e52c6e15c0017eb2d61838f56f051ded"
SRC_URI[sha256sum] = "2d5696c75b89e3c2e888867907764ab063daca9a1a42ea35649792dace4eff83"

S = "${WORKDIR}/${BPN}-2.4.0"
B = "${WORKDIR}/build"

#DEPENDS = "pkgconfig"
inherit autotools pkgconfig

do_install () {
install -d ${D}${libdir}
install -d ${D}${libdir}/.debug/
install -d ${D}${includedir}/botan
install -m 0755 ${B}/libbotan-2.so ${D}${libdir}
install -m 0755 ${B}/libbotan-2.a  ${D}${libdir}
install -m 0755 ${WORKDIR}/botan-2.4.0/src/botan/*.hpp ${D}${includedir}/botan
        rm ${WORKDIR}/botan-2.4.0/src/botan/*.cpp
        rm ${WORKDIR}/botan-2.4.0/src/botan/*.hpp
}

FILES_${PN} += " \
        ${libdir}/libbotan-2.so \
"
FILES_${PN}-dev += " \
        ${includedir}/botan/*.hpp \
"
FILES_${PN}-staticdev += " \
        ${libdir}//libbotan-2.a \
"
FILES_${PN}-dbg += " \
        ${libdir}/.debug/* \
"
尝试bitbake botan时,遇到错误:

Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4
| make: *** No targets specified and no makefile found.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile 
我做错了或误解了什么? 我使用recipetool create创建此配方
我再次尝试了bitbake-c botan和bitbake,它仍然是一样的。

错误告诉它在源目录中找不到
Makefile
。从
botan-2.4.0.tar.gz
中的
readme.rst
文件中可以看出,在开始编译之前运行./configure.py,它将生成
Makefile
。所以,试着在你的食谱中添加如下内容

    do_configure_prepend() {
        ${PYTHON} ${S}/configure.py
    }

/run.do_configure.6733:python:notfound比我尝试使用pytho3n时得到的错误错误:botan-2.4.0-r0 do_configure:执行“/home/kj/BBB_yocto/poky/BeagleBone_minimal/tmp/work/cortexa8hf neon poky linux gnueabi/botan/2.4.0-r0/temp/run.6847”失败,退出代码2:python3:无法打开文件“configure.py”:[Errno 2]没有这样的文件或目录警告:从shell命令中退出代码2。有什么建议吗?谢谢你的食谱叫什么?尝试设置源目录,如
S=“${WORKDIR}/Botan-${PV}”
并在do_Patchi Praveen之后检查源目录(${S})中的configure.py文件,感谢您的输入。我的配方是botan_2.4.0.bb,我根据您的建议重新加工。我可以知道如何检查bb收据中的configure.py吗?你有什么推荐信吗?很高兴来看看。返工后出现错误,我的bitake似乎导航到/usr/bin/python3以检查configure.py。|调试:执行shell函数do|u configure |/usr/bin/python3:无法打开文件'configure.py':[Errno 2]没有这样的文件或目录|警告:从shell命令中退出代码2。我是否可以先生成Makefile,然后手动复制到配方目录?