bitbake b2qt-embedded-qt6-image 对于 STM32mp15-disco 失败

问题描述 投票:0回答:1

我正在 yocto 中使用 boot2qt 清单 6.7.xml 构建目标映像。

在创建完整图像之前,我对自定义配方进行了bitbake,并在解决了正确构建的一些错误后,在下面的帖子中我解决了其中一些错误:https://forum.qt.io/topic/159562/how-在 yocto 中为 qt-quick-app 创建食谱?_=1731156856435

然后,我将自定义配方添加到本地会议,并使用 b2qt-embedded-qt6-image 开始 bitbake。错误:

| 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.
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0.0% sstate reuse(0 setscene, 16 scratch)
NOTE:   do_deploy_source_date_epoch: 0.0% sstate reuse(0 setscene, 13 scratch)
NOTE:   do_create_spdx: 0.0% sstate reuse(0 setscene, 15 scratch)
NOTE:   do_create_runtime_spdx: 0.0% sstate reuse(0 setscene, 15 scratch)
NOTE:   do_package_qa: 0.0% sstate reuse(0 setscene, 9 scratch)
NOTE:   do_recipe_qa: 0.0% sstate reuse(0 setscene, 15 scratch)
NOTE:   do_package: 0.0% sstate reuse(0 setscene, 10 scratch)
NOTE:   do_packagedata: 0.0% sstate reuse(0 setscene, 10 scratch)
NOTE:   do_package_write_ipk: 92.6% sstate reuse(125 setscene, 10 scratch)
NOTE:   do_populate_lic: 0.0% sstate reuse(0 setscene, 13 scratch)

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
Summary: There were 6 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

我不确定该怎么做,因为我已经在自定义配方中编译了自定义 Qt 应用程序,并且没有在其中添加 Qt Web 引擎。

我的 qt 应用程序是使用 qt 6.7.3 创建的。我应该在 meta-qt6 中使用另一个版本,甚至降级到 meta-qt5 吗?

我正在使用 boot2qt 6.7.3 清单和 MACHINE=stm32mp15-disco 和图像 b2qt-embedded-qt6-image。

我正在使用 meta-qt6 层和 nanbield meta-st 层,这是匹配的层。

这是我的自定义配方中的 bb 文件(如果我只对自定义配方进行 bitbake,则构建没问题)

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

我不知道下一步该做什么。如果可以从 st 清单启动 yocto 环境,我很乐意更改它。

qt stm32 yocto bitbake
1个回答
0
投票

我决定遵循 st 文档,这至少可以正确构建图像。

© www.soinside.com 2019 - 2024. All rights reserved.