【问题标题】:Build Dependency on Debian Package: Bitbake建立对 Debian 软件包的依赖关系:Bitbake
【发布时间】:2022-11-11 02:47:26
【问题描述】:

尝试添加 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

例子.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"

【问题讨论】:

  • 您是否将systemd 添加到DISTRO_FEATURES

标签: linux dependencies yocto bitbake


【解决方案1】:

systemd/sd-daemon.hsystemd 配方提供:

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

此外,libsystemdsystemd 包提供,因此将 DEPENDS 更改为:

DEPENDS = "simple-web-server boost sqlite3 systemd"
#                                           ^
#                                           |
# ===========================================

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-09
    • 2021-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-18
    • 1970-01-01
    相关资源
    最近更新 更多