首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >构建对Debian包的依赖关系: Bitbake

构建对Debian包的依赖关系: Bitbake
EN

Stack Overflow用户
提问于 2022-09-22 20:26:24
回答 1查看 45关注 0票数 0

试图添加Debian包libsystemd。但我一直得到以下错误后,不知道如何解决这一问题。

代码语言:javascript
运行
复制
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

代码语言:javascript
运行
复制
DESCRIPTION = "Example Utilities"
LICENSE = "CLOSED"

inherit cmake systemd useradd

require common.inc

S = "${WORKDIR}/git/example-server"

DEPENDS = "simple-web-server boost sqlite3 libsystemd"
EN

回答 1

Stack Overflow用户

发布于 2022-09-22 22:43:25

systemd/sd-daemon.hsystemd食谱提供:

image (${D})文件夹中有:

代码语言:javascript
运行
复制
$ 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更改为:

代码语言:javascript
运行
复制
DEPENDS = "simple-web-server boost sqlite3 systemd"
#                                           ^
#                                           |
# ===========================================
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73820306

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档