You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

STM32MP15-Disco平台BitBake构建b2qt-embedded-qt6-image失败求助

Yocto构建Boot2Qt镜像时QtWebEngine编译失败问题

环境与背景

  • 使用Boot2Qt 6.7.3清单,针对STM32MP15-Disco平台(MACHINE=stm32mp15-disco)
  • 依赖meta-qt6层及匹配nanbield版本的meta-st层
  • 自定义Qt应用配方(基于Qt 6.7.3)可单独通过BitBake成功构建

问题现象

将自定义配方加入local.conf后,执行bitbake b2qt-embedded-qt6-image时出现编译失败,错误指向qtwebengine组件及boot2qt-demolauncher的unpack步骤:

| cd /home/vboxuser/yocto/build-stm32mp15-disco/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/qtwebengine/6.7.3/build/src/core && /home/vboxuser/yocto/build-stm32mp15-disco/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/qtwebengine/6.7.3/recipe-sysroot-native/usr/bin/ninja -C /home/vboxuser/yocto/build-stm32mp15-disco/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/qtwebengine/6.7.3/build/src/core/Release/arm QtWebEngineCore
| ninja: build stopped: subcommand failed.
|
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/vboxuser/yocto/sources/meta-qt6/recipes-qt/qt6/qtwebengine_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 8110 tasks of which 7847 didn't need to be rerun and 2 failed.
...
Summary: 2 tasks failed:
  /home/vboxuser/yocto/sources/meta-boot2qt/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-demolauncher_git.bb:do_unpack
  /home/vboxuser/yocto/sources/meta-qt6/recipes-qt/qt6/qtwebengine_git.bb:do_compile

核心疑问:自定义应用配方并未依赖QtWebEngine,但构建镜像时却触发该组件的编译失败,不清楚原因及解决方向,甚至考虑是否需要改用ST官方清单重新搭建环境。

自定义应用配方代码

SUMMARY = "This is the GUI for Hespect Software medical device"
DESCRIPTION = "Recipe created by bitbake-layers"
LICENSE = "CLOSED"
SECTION = "Mysection"

DEPENDS += " qtbase \
             qtdeclarative-native \
             qtdeclarative \
             qtquick3d \
             qtcharts"
             
RDEPENDS_${PN} += "qtwayland"

EXTRA_OECMAKE += "-DCMAKE_PREFIX_PATH=${STAGING_DIR_HOST}${prefix}"

SRC_URI += "file://main.cpp"
SRC_URI += "file://CMakeLists.txt"
SRC_URI += "file://CMakeLists.txt.user"
SRC_URI += "file://Backendsensors.h"
SRC_URI += "file://Backendsensors.cpp"
SRC_URI += "file://brushfactory.h"
SRC_URI += "file://brushfactory.cpp"
SRC_URI += "file://Main.qml"

# Add SVG images from the assets/images folder
SRC_URI += "file://assets/images/battery-full.svg"
SRC_URI += "file://assets/images/battery-mid.svg"
SRC_URI += "file://assets/images/rss-low.svg"
SRC_URI += "file://assets/images/signal-full.svg"
SRC_URI += "file://assets/images/signal-mid.svg"
SRC_URI += "file://assets/images/battery-low.svg"
SRC_URI += "file://assets/images/rss-full.svg"
SRC_URI += "file://assets/images/rss-mid.svg"
SRC_URI += "file://assets/images/signal-low.svg"

            
S = "${WORKDIR}"

inherit qt6-cmake
inherit populate_sdk_qt6

内容的提问来源于stack exchange,提问作者JuanGomez

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 08:30:59