【问题标题】:lib32-ncurses not installing into rootfslib32-ncurses 未安装到 rootfs
【发布时间】:2018-11-08 11:11:26
【问题描述】:

我正在尝试将 32 位 ncurses 添加到我的根文件系统中

我正在使用 intel yocto bsp sumo 分支

这是我的 local.conf:

require conf/multilib.conf
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
IMAGE_INSTALL_append = " dpkg gnutls lib32-glibc lib32-libgcc lib32-libstdc++ lib32-gnutls lib32-freetype lib32    -libx11 lib32-ncurses lib32-dpkg python3-six"

ncurses 文件夹存在于 tmp 中

build/tmp/work/x86-pokymllib32-linux/lib32-ncurses/6.0+20171125-r0

图像文件夹已创建并包含库

/tmp/work/x86-pokymllib32-linux/lib32-ncurses/6.0+20171125-r0/image/lib
libncurses.so.5  libncurses.so.5.9  libncursesw.so.5  libncursesw.so.5.9  libtinfo.so.5  libtinfo.so.5.9

但这些文件不存在于根文件系统中。

我该如何调试或下一步应该如何将它放入根文件系统。我应该查看哪些日志文件

感谢您的宝贵时间。

【问题讨论】:

  • 在您的图像配方中使用IMAGE_INSTALL += lib32-ncursesIMAGE_INSTALL_append = lib32-ncursesconf/local.conf
  • 它已经存在。检查问题
  • 我无法在 packages-split 文件夹中找到 libncurses.so。你觉得哪里缺了
  • 我在 packages-split/lib32-ncurses-dev 看到 libncurses.so ,我应该怎么做才能将它添加到 rootfs 中

标签: linux debugging embedded-linux yocto ncurses


【解决方案1】:

我在 yocto 邮件列表中发布查询后找到了答案。

$ oe-pkgdata-util find-path */libncurses.so*
ncurses-libncurses: /lib64/libncurses.so.5
ncurses-libncurses: /lib64/libncurses.so.5.9
ncurses-dbg: /lib64/.debug/libncurses.so.5.9
lib32-ncurses-dbg: /lib/.debug/libncurses.so.5.9
ncurses-dev: /usr/lib64/libncurses.so
lib32-ncurses-dev: /usr/lib/libncurses.so
lib32-ncurses-libncurses: /lib/libncurses.so.5.9
lib32-ncurses-libncurses: /lib/libncurses.so.5

所以在 local.conf 中包含 lib32-ncurses-libncurses 就可以解决问题了

IMAGE_INSTALL_append += "lib32-ncurses-libncurses"

【讨论】:

    【解决方案2】:

    我在 packages-split/lib32-ncurses-dev 看到 libncurses.so,我应该怎么做才能将它添加到 rootfs 中

    除非明确指示,否则默认配方不会将开发包安装到 rootfs 中。您可以将其添加到 local.conf 以进行快速测试:

    IMAGE_INSTALL_append += lib32-ncurses-dev

    您现在应该可以在您的 ncurses image 文件夹中看到 packages-split/lib32-ncurses-dev 的内容,然后是镜像 rootfs。

    dbg 包也有类似的方法。

    【讨论】:

      猜你喜欢
      • 2018-02-07
      • 2021-06-20
      • 2021-10-31
      • 2020-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      相关资源
      最近更新 更多