sd-bus.h not found when compiling #yocto
Hi All,
I'm trying to create a recipe for wirepas_gateway , it is a python project, but it uses systemd dbus , and there is a .c file that includes #include <systemd/sd-bus.h> I tried to add "systemd" and "libsystemd" to RDPENDS, but same error keeps showing :
Quoted 3 lines
dbus_c.c:9:10: fatal error:
systemd/sd-bus.h: No such file or directory| 9 | #include <systemd/sd-bus.h>
Here is my recipe:
Quoted 21 lines
SUMMARY = "Wirepas gateway transport service that connects the local dbus to a remote MQTT broker."
HOMEPAGE = "https://github.com/wirepas/gateway"
LICENSE = "Apache"
LIC_FILES_CHKSUM= "file://LICENSE;md5=cb6bb17b0d0cca188339074207e9f4d8"
SRC_URI= "file:///home/talel/Desktop/wirepas_gateway-${PV}/wp-gateway.zip"inherit setuptools3
Quoted 7 lines
RDEPENDS_${PN} += "libsystemd python3-pyyaml python3-grpcio python3-paho-mqtt python3-pydbus python3-wirepas_messaging"
RDEPENDS_${PN} += "python3-core python3-datetime python3-io python3-json python3-logging python3-netclient python3-paho-mqtt python3-pygobject python3-pyyaml python3-threading"
How can I solve the issue ?
Thanks, Talel
Hi Talel,
Quoted 3 lines · Bel Hadj Salem Talel
Hi All,
I'm trying to create a recipe forwirepas_gateway, it is a python project, but it uses systemd dbus , and there is a .c file that includes #include <systemd/sd-bus.h> I tried to add "systemd" and "libsystemd" to RDPENDS, but same error keeps showing :
RDEPENDS is for runtime dependencies, DEPENDS is for build time, so you want to use DEPENDS here.
Cheers,
Quentin