botan-2.4.0-r0 do_compile:oe_runmake失败

时间:2020-07-02 10:22:57

标签: 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_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 

我做错了什么或误解了吗? 我使用配方工具create https://cdn-aws.deb.debian.org/debian/pool/main/b/botan/botan_2.4.0.orig.tar.gz创建了此食谱 我再次尝试了bitbake -c botan和bitbake,它仍然相同。

1 个答案:

答案 0 :(得分:1)

该错误表明它在源目录中找不到Makefile。从readme.rst中存在的botan-2.4.0.tar.gz文件可以说,run ./configure.py在开始编译之前会生成Makefile。因此,尝试在食谱中添加以下内容

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