如何解决当它包含在图像中时,bitbake 无法构建 cppzmq
我正在构建一个使用 cppzmq
(http://layers.openembedded.org/layerindex/recipe/123508/) 的 yocto 项目
奇怪的是我直接build的时候
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 包含在图像中时无法构建。
谢谢。
解决方法
区分配方名称 cppzmq
和提供的配方包很重要。单个配方可以提供多个包(<recipename>
、<recipename>-dev
、<recipename>-staticdev
等)。
您可以使用 IMAGE_INSTALL
定义图像中包含哪些包。
查看 cppzmq recipe 可以看到它只提供 PACKAGES = "${PN}-dev"
。
因此你应该使用 IMAGE_INSTALL_append = " cppzmq-dev"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。