0

我正在尝试使用带有 ROS 元层(thud-draft)的 Poky 2.6(thud)构建自定义 Linux 映像。该映像是为 x86-64 系统构建的。我的bblayers.conf文件内容如下

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""
ROS_DISTRO = "melodic"
BBLAYERS ?= " \
  /home/kogrob/devel/poky/meta \
  /home/kogrob/devel/poky/meta-poky \
  /home/kogrob/devel/poky/meta-yocto-bsp \
  /home/kogrob/devel/poky/meta-openembedded/meta-oe \
  /home/kogrob/devel/poky/meta-ros/meta-ros-common \
  /home/kogrob/devel/poky/meta-ros/meta-ros1-melodic \
  /home/kogrob/devel/poky/meta-openembedded/meta-python \
  /home/kogrob/devel/poky/meta-ros/meta-ros-backports-warrior \
  /home/kogrob/devel/poky/meta-ros/meta-ros1 \
  "

构建失败并出现以下错误

Function failed: do_compile (log file is located at /home/kogrob/poky/build-toaster-2/tmp/work/core2-64-poky-linux/btrfs-tools/4.17.1-r0/temp/log.do_compile.26496)

Function failed: do_compile (log file is located at /home/kogrob/poky/build-toaster-2/tmp/work/core2-64-poky-linux/boost/1.68.0-r0/temp/log.do_compile.27908)

bitbake boost单独使用但 btrfs-tools 每次都失败时的 boost 构建。btrfs-tools 的需求是什么,是否可以删除 btrfs-tools 并在没有它的情况下构建映像。

日志文件可以在这里找到: log.do_compile.26496 log.do_compile.27908

4

1 回答 1

1

在我的 Unbuntu 主机(Ubuntu 16.04.6 LTS x86_64)上,尝试以下命令: pip install setuptools

但它不起作用,因为 do_compile() 使用 yocto 生成的 python 二进制文件,而不是一个内置的 Ubuntu,如下所示:

build/tmp/work/aarch64-sdrv-linux/btrfs-tools/4.17.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3

.

于 2020-12-16T12:14:43.187 回答