我需要写一个uftpd的食谱。uftpd本身需要构建两个库:libitelibuev
我为Libite写了两个食谱:

SUMMARY = "libite_1.9.3.bb"
SECTION = "ftpserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "http://github.com/troglobit/libite/releases/download/v${PV}/libite-${PV}.tar.xz"
SRC_URI[md5sum] = "67a00e1e1c7aa11207cf77f10c6580a3"

inherit autotools

do_install_append() {
    ldconfig -N
}

利布耶夫:
SUMMARY = "libuev_1.6.0.bb"
SECTION = "ftpserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "http://github.com/troglobit/libuev/releases/download/v${PV}/libuev-${PV}.tar.xz"
SRC_URI[md5sum] = "d0b12548d888cc30e41a921fe0f33641"

inherit autotools

do_install_append() {
    ldconfig -N
}

现在我需要为uftpd写一个配方,这就是我一直试图实现的目标:
SUMMARY = "uftpd_2.4.bb"
SECTION = "ftpserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "http://github.com/troglobit/uftpd/releases/download/v${PV}/uftpd-${PV}.tar.xz"
SRC_URI[md5sum] = "652e6cb8a059be3f8a3779b7182ce385"

DEPENDS += "libuev"
DEPENDS += "libite"

S = "${WORKDIR}/uftpd-${PV}"

do_configure[depends] += "libuev:do_populate_sysroot"
do_configure[depends] += "libite:do_populate_sysroot"

inherit autotools

当我尝试构建uftpd时,libuev和libite都成功构建,但从uftpd执行配置文件时出错:
error image
据我所知,这意味着configure找不到libuev库,尽管它是在此之前构建的。怎么办?我做错什么了吗?

最佳答案

您的uftpd配方需要继承pkgconfig(错误是“找不到pkgconfig宏”)。

10-05 21:55