yocto - 在 yocto-linux bitbake 上安装 apt-get 包失败
问题描述
先决条件:
- yocto thud
- 本地配置文件
CORE_IMAGE_EXTRA_INSTALL_append = " \
apt \
"
PACKAGE_CLASSES_append = " \
package_deb \
"
- ./poky/meta/recipes-devtools/apt_1.2.24.bb
通过上面的设置,我想将 apt-get 包管理器安装到我的 Yocto。但是我得到了如下错误。它给了我有关来自 bitbake 的未使用的数据字典文件 (d) 的警告消息。
...
In file included from /home/test/my-linux-board/build/tmp/work/aarch64-poky-linux/apt/1.2.24-r0/apt-1.2.24/apt-pkg/policy.cc:18:
/home/test/my-linux-board/build/tmp/work/aarch64-poky-linux/apt/1.2.24-r0/build/include/apt-pkg/policy.h:92:17: warning: private field 'd' is not used [-Wunused-private-field]
void * const d;
^
8 warnings generated.
6 warnings generated.
In file included from /home/test/my-linux-board/build/tmp/work/aarch64-poky-linux/apt/1.2.24-r0/apt-1.2.24/apt-pkg/pkgcachegen.cc:15:
/home/test/my-linux-board/build/tmp/work/aarch64-poky-linux/apt/1.2.24-r0/build/include/apt-pkg/pkgcachegen.h:162:17: warning: private field 'd' is not used [-Wunused-private-field]
void * const d;
^
/home/test/my-linux-board/build/tmp/work/aarch64-poky-linux/apt/1.2.24-r0/build/include/apt-pkg/pkgcachegen.h:188:17: warning: private field 'd' is not used [-Wunused-private-field]
void * const d;
^
6 warnings generated.
7 warnings generated.
8 warnings generated.
Makefile:14: recipe for target 'all' failed
make[1]: *** [all] Error 2
ERROR: oe_runmake failed
makefile:18: recipe for target 'all' failed
make: *** [all] Error 2
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/test/my-linux-board/build/tmp/work/aarch64-poky-linux/apt/1.2.24-r0/temp/log.do_compile.31530)
只是我的假设,可能没有使用 package-deb “d”,因为我的 PACKAGE_CLASSES 的默认设置是 package_rpm。有人可以帮我解决这个问题吗?
谢谢
解决方案
推荐阅读
- wso2 - WSO2 apimcli 环境在完全分布式环境中为 API 管理器添加并使用 wso2 身份服务器作为密钥管理器
- highcharts - 从轴 Hightcharts 设置刻度间隔一分钟
- snowflake-cloud-data-platform - 数据库中所有表的聚合
- r - 多次产生相同的输出
- php - 在php中的选择下拉列表中限制相同的值不起作用
- opencv - 如何在python中给定矩形的4个顶点绘制边界框?
- javascript - window.frames 仅返回基本窗口
- javascript - 如何在 Node.js 中使用 googleapis 创建新的 Google 电子表格
- java - Java Mail:发送电子邮件时出现异常
- android - 如何使用数据类中的 Glide 绑定 RecyclerView 图像