【问题标题】:bitbake can't build cppzmq when it's included in an image当它包含在图像中时,bitbake 无法构建 cppzmq
【发布时间】:2021-07-02 18:55:11
【问题描述】:

我正在构建一个使用 cppzmq (http://layers.openembedded.org/layerindex/recipe/123508/) 的 yocto 项目

奇怪的是,当我直接构建它时 bitbake cppzmq 它构建成功。

但是当我将它包含在我的图像中时 IMAGE_INSTALL_append = " cppzmq" 有一个错误:

ERROR: Nothing RPROVIDES 'cppzmq' (but /home/ccccc/yocto-tegra/meta-eee/recipes-images/images/image-eee.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'cppzmq' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['cppzmq']
ERROR: Required build target 'image-eee' has no buildable providers.
Missing or unbuildable dependency chain was: ['image-eee', 'cppzmq']

如果我运行bitbake-layers show-recipes cppz*,它会显示:

Parsing of 2234 .bb files complete (2233 cached, 1 parsed). 3398 targets, 141 skipped, 0 masked, 0 errors.
=== Matching recipes: ===
cppzmq:
  meta-oe              4.6.0

显然包含在内。

我不知道为什么 cppzmq 在包含在图像中时无法构建。

谢谢。

【问题讨论】:

    标签: cross-compiling zeromq yocto bitbake


    【解决方案1】:

    区分配方名称cppzmq 和提供的配方包非常重要。一个配方可以提供多个包(<recipename><recipename>-dev<recipename>-staticdev 等)。

    使用IMAGE_INSTALL,您可以定义图像中包含哪些

    查看cppzmq recipe可以看到它只提供PACKAGES = "${PN}-dev"

    因此你应该使用IMAGE_INSTALL_append = " cppzmq-dev"

    【讨论】:

      猜你喜欢
      • 2021-04-16
      • 2021-11-18
      • 1970-01-01
      • 1970-01-01
      • 2020-01-05
      • 2011-08-19
      • 1970-01-01
      • 2022-08-23
      • 2011-03-24
      相关资源
      最近更新 更多