试图添加Debian包libsystemd。但我一直得到以下错误后,不知道如何解决这一问题。
ERROR: Nothing PROVIDES 'libsystemd' (but example.bb DEPENDS on or otherwise requires it). Close matches:
libteam
systemd
systemd RPROVIDES libsystemd
NOTE: Runtime target 'example' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['example', 'libsystemd']
Missing or unbuildable dependency chain was: [ 'example', 'libsystemd']
fatal error: systemd/sd-daemon.h: No such file or directory | 16 | #include <systemd/sd-daemon.h>
相关职位:Yocto Build Dependency on Debian Package
example.bb
DESCRIPTION = "Example Utilities"
LICENSE = "CLOSED"
inherit cmake systemd useradd
require common.inc
S = "${WORKDIR}/git/example-server"
DEPENDS = "simple-web-server boost sqlite3 libsystemd"
发布于 2022-09-22 22:43:25
systemd/sd-daemon.h
由systemd
食谱提供:
在image
(${D}
)文件夹中有:
$ tree usr/include/
usr/include/
├── libudev.h
└── systemd
├── sd-bus.h
├── sd-bus-protocol.h
├── sd-bus-vtable.h
├── _sd-common.h
├── sd-daemon.h <======(Header file you are looking for)
├── sd-device.h
├── sd-event.h
├── sd-hwdb.h
├── sd-id128.h
├── sd-journal.h
├── sd-login.h
└── sd-messages.h
另外,libsystemd
是由systemd
包提供的,因此将DEPENDS
更改为:
DEPENDS = "simple-web-server boost sqlite3 systemd"
# ^
# |
# ===========================================
https://stackoverflow.com/questions/73820306
复制相似问题