首页 > 解决方案 > 在 yocto-linux bitbake 上安装 apt-get 包失败

问题描述

先决条件:

CORE_IMAGE_EXTRA_INSTALL_append = " \                                                                                                                   
apt \                                                                                                                                  
"                                                                                                                                               
PACKAGE_CLASSES_append = " \                                                                                                                 
package_deb \                                                                                                                            
"

通过上面的设置,我想将 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。有人可以帮我解决这个问题吗?

谢谢

标签: yoctoaptbitbakeopenembedded

解决方案


推荐阅读