2026-01-22 11:04 PM
Hello everyone !
device: STM32MP257F-DK
We build the X-LINUX-QT starter package following in steps
1.X-LINUX-QT starter package
repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11
repo sync2.Install X-LINUX-QT distribution package v2.2.0
git clone -b v2.2.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt
git clone -b 6.8.3 https://code.qt.io/yocto/meta-qt6.git layers/meta-qt63.Setup the build environment
DISTRO=openstlinux-weston MACHINE=stm32mp2 BSP_DEPENDENCY="layers/meta-qt6 layers/meta-st/meta-st-x-linux-qt" source layers/meta-st/scripts/envsetup.sh4.building
bitbake st-image-qt package-indexthen, we have an error message as follows:
All cbortag.py files in the package were updated, replacing /usr/usr/bin/env with /usr/bin/env, as follows:
However, we encountered the same error message. Could anyone provide us with some suggestions? Thank you in advance.
2026-01-23 1:08 AM
We discovered the bug in the qtbase_git.bb file between lines 202 and 203.
If /usr/bin/env already exists, it will become /usr/usr/bin/env. Therefore, we marked lines 202–203 in the qtbase_git.bb file. This time, the build completed successfully.
2026-02-06 7:31 AM
I also had to do the same on my side and commented qt_base_git.bb lines.
There is an issue in Qt build mechanism. This could be pointed out to Qt support.
I don't have today a clean solution.
2026-02-18 1:26 AM
Please use this patch over "meta-st-x-linux-qt" layer.
I am going to update github branches.
BR,
Philippe.
Text section to be copied in a .patch file and apply with 'git am' command:
From b4f4d26b3e53359f2179102271f5f1e31f5b9328 Mon Sep 17 00:00:00 2001
From: Philippe PAGE <philippe.page@st.com>
Date: Wed, 18 Feb 2026 09:55:40 +0100
Subject: [PATCH] Fix Qt cbortag.py build issue
---
recipes-qt/qt6/qtbase_git.bbappend | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/recipes-qt/qt6/qtbase_git.bbappend b/recipes-qt/qt6/qtbase_git.bbappend
index d16605b..be10a67 100644
--- a/recipes-qt/qt6/qtbase_git.bbappend
+++ b/recipes-qt/qt6/qtbase_git.bbappend
@@ -32,3 +32,11 @@ QT_CONFIG_FLAGS:remove:stm32mp2common = "-no-opengles3"
QT_CONFIG_FLAGS:append:stm32mp2common = " -opengles3"
QT_QPA_EGLFS_INTEGRATION ?= ""
+
+# Patch to fix building issue
+do_install:append() {
+ if [ -e ${D}${QT6_INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump/cbortag.py ]; then
+ sed -i ${D}${QT6_INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump/cbortag.py \
+ -e 's|/usr/usr/bin/env|/usr/bin/env|'
+ fi
+}
--
2.34.1
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.