2025-10-30 6:38 PM - last edited on 2025-10-31 3:43 AM by Andrew Neil
Hello everyone,
I'm trying to build X-LINUX-AI, but I'm running into some errors. I'd be grateful for any help with fixing them.
Here’s an example of the error message:
../git/touch-event-gtk-player/meson.build:25:18: ERROR: Dependency "gstreamer-wayland-1.0" not found, tried pkgconfig
Here is my build environment:
- Ubuntu 20.04 (wsl)
- OpenSTLinux Distribution Package V6.1.1
- X-LINUX-AI V6.1.1
Here are the steps I followed:
(Installing the OpenSTLinux distribution)
$ repo init -u https://github.com/STMicroelectronics/oe-manifest -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v25.08.27
$ repo sync
(Install X-LINUX-AI environment)
$ cd layers/meta-st/
$ git clone https://github.com/STMicroelectronics/meta-st-x-linux-ai.git -b v6.1.1
$ cd ../..
$ DISTRO=openstlinux-weston MACHINE=stm32mp2 BSP_DEPENDENCY='layers/meta-st/meta-st-x-linux-ai' source layers/meta-st/scripts/envsetup.sh
(build the image)
$ bitbake st-image-ai
Here is the resulting log:
$ bitbake st-image-ai
NOTE: Started PRServer with DBfile: /home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/cache/prserv.sqlite3, Address: 127.0.0.1:32785, PID: 6267
WARNING: You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space
Loading cache: 100% |                                                                                                                                     | ETA:  --:--:--
Loaded 0 entries from dependency cache.
WARNING: /home/kenichi/MPDist-611/layers/meta-st/meta-st-x-linux-ai/recipes-st/packagegroups/packagegroup-x-linux-ai.bb: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
NOTE: /home/kenichi/MPDist-611/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb: ENABLE_PARTITIONS_IMAGE not enabled######   | ETA:  0:00:01
Parsing recipes: 100% |####################################################################################################################################| Time: 0:01:18
Parsing of 3084 .bb files complete (0 cached, 3084 parsed). 5043 targets, 615 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "aarch64-ostl-linux"
MACHINE              = "stm32mp2"
DISTRO               = "openstlinux-weston"
DISTRO_VERSION       = "5.0.8-snapshot-20251030"
TUNE_FEATURES        = "aarch64 crc cortexa35"
TARGET_FPU           = ""
DISTRO_CODENAME      = "scarthgap"
ACCEPT_EULA_stm32mp2 = "1"
GCCVERSION           = "13.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
MACHINE_FEATURES     = "usbhost usbgadget alsa screen ext2 pci splashscreen watchdog bluetooth wifi gpu openvx opencl vulkan m33copro m0copro optee  tpm2  initrd  autoresize  fip fw-update"
meta-python          
meta-oe              = "HEAD:e92d0173a80ea7592c866618ef5293203c50544c"
meta-st-x-linux-ai   = "HEAD:6813080f1bb326793950c5a3ae02a3fd59a94f28"
meta-gnome           
meta-multimedia      
meta-networking      
meta-webserver       = "HEAD:e92d0173a80ea7592c866618ef5293203c50544c"
meta-st-stm32mp      = "HEAD:a9bfa3888324998e5c7bf9c159833ae577983bb2"
meta-st-openstlinux  = "HEAD:14bbb30d00473973a67d85cbb1db8a87aa8afe65"
meta                 = "HEAD:cd2b6080a4c0f2ed2c9939ec0b87763aef595048"
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/4.6/x86_64-nativesdk-libc-4.6.tar.xz;sha256sum=6bf00154c5a7bc48adbf63fd17684bb87eb07f4814fbb482a3fbd817c1ccf4c5 (will check PREMIRRORS first)
Sstate summary: Wanted 6376 Local 0 Mirrors 0 Missed 6376 Current 0 (0% match, 0% complete)##################################################              | ETA:  0:00:01
Initialising tasks: 100% |#################################################################################################################################| Time: 0:00:11
NOTE: Executing Tasks
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
Setscene tasks: 6376 of 6376
Setscene tasks: 6376 of 6376
Currently 10 running tasks (4813 of 13094)  36% |############################################                                                                            |
Setscene tasks: 6376 of 6376
Currently 10 running tasks (4813 of 13094)  36% |############################################                                                                            |
Setscene tasks: 6376 of 6376
Currently 10 running tasks (4813 of 13094)  36% |############################################                                                                            |
Setscene tasks: 6376 of 6376
Currently 11 running tasks (4813 of 13094)  36% |############################################                                                                            |
Setscene tasks: 6376 of 6376
Currently 11 running tasks (4813 of 13094)  36% |############################################                                                           
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
WARNING: Please be careful this st-image-ai is targeting STM32MPU possessing a hardware AI accelerator.
WARNING: systemd-1_255.17-r0 do_install: Using /home/root as root user's home directory is not fully supported by systemd
WARNING: tim-vx-1.2.22+git8494275d7608942aa584c9c13bd5e2d77be9906c-r0 do_package_qa: QA Issue: File /usr/local/bin/tim-vx-1.2.22/.debug/TIM-VX_test in package tim-vx-dbg contains reference to TMPDIR
File /usr/lib/.debug/libgtest.so.1.14.0 in package tim-vx-dbg contains reference to TMPDIR
File /usr/lib/.debug/libgmock_main.so in package tim-vx-dbg contains reference to TMPDIR
File /usr/lib/.debug/libgtest_main.so.1.14.0 in package tim-vx-dbg contains reference to TMPDIR
File /usr/lib/.debug/libgmock.so in package tim-vx-dbg contains reference to TMPDIR [buildpaths]
WARNING: tim-vx-1.2.22+git8494275d7608942aa584c9c13bd5e2d77be9906c-r0 do_package_qa: QA Issue: File /usr/local/bin/tim-vx-1.2.22/TIM-VX_test in package tim-vx-tools contains reference to TMPDIR
File /usr/lib/libgtest.so.1.14.0 in package tim-vx-tools contains reference to TMPDIR
File /usr/lib/libgtest_main.so.1.14.0 in package tim-vx-tools contains reference to TMPDIR
File /usr/lib/libgmock.so in package tim-vx-tools contains reference to TMPDIR [buildpaths]
ERROR: event-gtk-player-6.1+git-1ab21d84-r0 do_configure: meson failed
ERROR: event-gtk-player-6.1+git-1ab21d84-r0 do_configure: ExecutionError('/home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/temp/run.do_configure.2660041', 1, None, None)
ERROR: Logfile of failure stored in: /home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/temp/log.do_configure.2660041
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.39.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_13.3.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_13.3.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/qemu/qemu-native_8.2.7.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-gnome/gtk+/gtk+3_3.24.41.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.12.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb:do_populate_sysroot', '/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb:do_populate_sysroot', 'virtual:native:/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/meson/meson_1.3.1.bb:do_populate_sysroot', 'virtual:native:/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/ninja/ninja_1.11.1.bb:do_populate_sysroot', 'virtual:native:/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/kenichi/MPDist-611/layers/openembedded-core/meta/recipes-devtools/python/python3_3.12.9.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['gcnano-userland-multi-binary-stm32mp', 'openssl', 'base-files', 'base-passwd', 'dbus', 'expat', 'gettext-minimal-native', 'glib-2.0', 'glibc', 'libxcrypt', 'libxml2', 'ncurses', 'systemd', 'util-linux-libuuid', 'util-linux', 'zlib', 'binutils-cross-aarch64', 'cmake-native', 'gcc-cross-aarch64', 'gcc-runtime', 'libgcc', 'libedit', 'libtool-native', 'm4-native', 'opkg-utils', 'orc', 'python3', 'qemu-native', 'quilt-native', 'bzip2', 'iptables', 'libnsl2', 'libtirpc', 'libpam', 'shadow-sysroot', 'shadow', 'texinfo-dummy-native', 'xz', 'zstd', 'gdk-pixbuf', 'gobject-introspection', 'gtk+3', 'libgudev', 'cairo', 'libdrm', 'fontconfig', 'freetype', 'harfbuzz', 'libjpeg-turbo', 'libepoxy', 'pango', 'wayland-protocols', 'wayland', 'libpthread-stubs', 'libxkbcommon', 'pixman', 'cryptodev-linux', 'kmod', 'linux-libc-headers', 'alsa-lib', 'gstreamer1.0-plugins-bad', 'gstreamer1.0-plugins-base', 'gstreamer1.0', 'libogg', 'libpng', 'libtheora', 'libvorbis', 'at-spi2-core', 'attr', 'bash-completion', 'fribidi', 'gdbm', 'icu', 'iso-codes', 'libcap-ng', 'libcap', 'libffi', 'libpcre2', 'shared-mime-info', 'sqlite3', 'openssl-native', 'expat-native', 'gettext-native', 'glib-2.0-native', 'ncurses-native', 'util-linux-libuuid-native', 'util-linux-native', 'zlib-native', 'flex-native', 'gnu-config-native', 'libedit-native', 'make-native', 'meson-native', 'ninja-native', 'patch-native', 'perl-native', 'pkgconfig-native', 'pseudo-native', 'python3-build-native', 'python3-flit-core-native', 'python3-installer-native', 'python3-packaging-native', 'python3-pyproject-hooks-native', 'python3-setuptools-native', 'python3-wheel-native', 'python3-native', 'bzip2-native', 'libnsl2-native', 'libtirpc-native', 'shadow-native', 'unzip-native', 'xz-native', 'zstd-native', 'attr-native', 'gdbm-native', 'gmp-native', 'libbsd-native', 'libcap-ng-native', 'libffi-native', 'libmd-native', 'libmpc-native', 'libpcre2-native', 'mpfr-native', 're2c-native', 'sqlite3-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: Executing meson ...
| The Meson build system
| Version: 1.3.1
| Source dir: /home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/git/touch-event-gtk-player
| Build dir: /home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/build
| Build type: cross build
| Project name: touch-event-gtk-player
| Project version: 0.1
| C compiler for the host machine: aarch64-ostl-linux-gcc -mcpu=cortex-a35+crc -mbranch-protection=standard --sysroot=/home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/recipe-sysroot (gcc 13.3.0 "aarch64-ostl-linux-gcc (GCC) 13.3.0")
| C linker for the host machine: aarch64-ostl-linux-gcc -mcpu=cortex-a35+crc -mbranch-protection=standard --sysroot=/home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/recipe-sysroot ld.bfd 2.42.0.20240723
| C compiler for the build machine: gcc (gcc 9.4.0 "gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
| C linker for the build machine: gcc ld.bfd 2.34
| Build machine cpu family: x86_64
| Build machine cpu: x86_64
| Host machine cpu family: aarch64
| Host machine cpu: aarch64
| Target machine cpu family: aarch64
| Target machine cpu: aarch64
| Found pkg-config: YES (/home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/recipe-sysroot-native/usr/bin/pkg-config) 0.29.2
| Run-time dependency gtk+-3.0 found: YES 3.24.41
| Run-time dependency gstreamer-1.0 found: YES 1.22.12
| Run-time dependency gstreamer-video-1.0 found: YES 1.22.12
| Found CMake: NO
| Run-time dependency gstreamer-wayland-1.0 found: NO (tried pkgconfig)
| 
| ../git/touch-event-gtk-player/meson.build:25:18: ERROR: Dependency "gstreamer-wayland-1.0" not found, tried pkgconfig
| 
| A full log can be found at /home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/kenichi/MPDist-611/layers/meta-st/meta-st-openstlinux/recipes-samples/event-gtk-player/event-gtk-player_git.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7514 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 12 seconds
Summary: 1 task failed:
  /home/kenichi/MPDist-611/layers/meta-st/meta-st-openstlinux/recipes-samples/event-gtk-player/event-gtk-player_git.bb:do_configure
    log: /home/kenichi/MPDist-611/build-openstlinuxweston-stm32mp2/tmp-glibc/work/cortexa35-ostl-linux/event-gtk-player/6.1+git-1ab21d84/temp/log.do_configure.2660041
Summary: There were 12 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.Sorry for the long log, and thank you for taking the time to look through it.
Best Regards,
Perorin-Q
2025-10-31 3:39 AM
Same error here with the same configuration. The only difference is that I use WSL2 with Ubuntu 22.04 and the Scarthgap version of layers. I tried some things but no solution came to me at the moment. Help would be appreciated.
Best Regards,
Lïam
