Glib Error on Yocto build for IMX8MP

I’m building an image using Yocto for my toradex imx8 board with my QT program. But when I’m running “bitbake displaymod(image name)” I’m getting the following error: ERROR: displaymod-1.0.0-r1 do_configure: Error calling /home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/recipe-sysroot-native/usr/bin/qmake -makefile -o Makefile -r /home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/guiframe.pro –

ERROR: displaymod-1.0.0-r1 do_configure: ExecutionError(‘/home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/temp/run.do_configure.17576’, 1, None, None)

ERROR: Logfile of failure stored in: /home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/temp/log.do_configure.17576

Log data follows:

| DEBUG: Executing python function extend_recipe_sysroot

| NOTE: Direct dependencies are [‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtbase-native_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtquickcontrols2_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_11.4.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_11.4.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot’, ‘virtual:native:/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot’, ‘virtual:native:/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot’]

| NOTE: Installed into sysroot:

| NOTE: Skipping as already exists in sysroot: [‘qtbase-native’, ‘qtbase’, ‘qtdeclarative’, ‘qtquickcontrols2’, ‘glib-2.0’, ‘glibc’, ‘gcc-cross-aarch64’, ‘gcc-runtime’, ‘quilt-native’, ‘patch-native’, ‘pseudo-native’, ‘xcb-util-wm’, ‘fontconfig’, ‘libjpeg-turbo’, ‘xcb-util-keysyms’, ‘systemd’, ‘libxkbcommon’, ‘libxext’, ‘sqlite3’, ‘zlib’, ‘openssl’, ‘imx-gpu-viv’, ‘libxcb’, ‘xcb-util-image’, ‘dbus’, ‘vulkan-headers’, ‘xcb-util-renderutil’, ‘libpng’, ‘libpcre2’, ‘freetype’, ‘icu’, ‘libdrm’, ‘linux-libc-headers’, ‘dbus-native’, ‘zlib-native’, ‘util-linux’, ‘libpcre’, ‘libffi’, ‘bash-completion’, ‘libgcc’, ‘attr-native’, ‘libtool-native’, ‘gmp-native’, ‘zstd-native’, ‘mpfr-native’, ‘texinfo-dummy-native’, ‘libmpc-native’, ‘gnu-config-native’, ‘flex-native’, ‘xz-native’, ‘binutils-cross-aarch64’, ‘expat’, ‘acl’, ‘base-passwd’, ‘opkg-utils’, ‘shadow-sysroot’, ‘kmod’, ‘libseccomp’, ‘shadow’, ‘shadow-native’, ‘libcap’, ‘base-files’, ‘zstd’, ‘libpam’, ‘wayland-protocols’, ‘libxml2’, ‘wayland’, ‘xkeyboard-config’, ‘libx11’, ‘xorgproto’, ‘util-macros’, ‘mesa’, ‘libxshmfence’, ‘libxxf86vm’, ‘libxdmcp’, ‘libpthread-stubs’, ‘libxau’, ‘xcb-proto’, ‘xcb-util’, ‘autoconf-archive’, ‘libsm’, ‘bzip2’, ‘libpciaccess’, ‘glib-2.0-native’, ‘gettext-minimal-native’, ‘expat-native’, ‘libcap-ng’, ‘ncurses’, ‘util-linux-libuuid’, ‘libxcrypt’, ‘m4-native’, ‘attr’, ‘xz’, ‘flex’, ‘cracklib’, ‘python3’, ‘xtrans’, ‘libxfixes’, ‘libxdamage’, ‘xrandr’, ‘libice’, ‘util-linux-native’, ‘libpcre-native’, ‘gettext-native’, ‘libffi-native’, ‘python3-native’, ‘cmake-native’, ‘gdbm’, ‘readline’, ‘libtirpc’, ‘libnsl2’, ‘libxrandr’, ‘libxrender’, ‘util-linux-libuuid-native’, ‘libpcre2-native’, ‘libcap-ng-native’, ‘ncurses-native’, ‘libtirpc-native’, ‘gdbm-native’, ‘bzip2-native’, ‘openssl-native’, ‘libnsl2-native’, ‘readline-native’, ‘sqlite3-native’, ‘curl-native’, ‘perl-native’, ‘make-native’]

| DEBUG: Python function extend_recipe_sysroot finished

| DEBUG: Executing shell function qmake5_base_preconfigure

| DEBUG: Shell function qmake5_base_preconfigure finished

| DEBUG: Executing shell function do_configure

| Project ERROR: glib-2.0 development package not found

| ERROR: Error calling /home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/recipe-sysroot-native/usr/bin/qmake -makefile -o Makefile -r /home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/guiframe.pro –

| WARNING: exit code 1 from a shell command.

**ERROR: Task (/home/user1/oe-core/build/…/layers/meta-custom/recipes-custom/myqt/displaymod_1.0.0.bb:do_configure) failed with exit code ‘1’ **

i even checked my pkg-config and also my meta-layers and glib-2.0 is present

i want the image to be built and the t gui to come up on boot

Hi @Srivathsan,
Please try to build a default Toradex image first with Qt support(tdx-reference-multimedia-image) to see if you get the same error.
Also, check this article to create a custom image.

ok i’ll try it

i did a base build as you told and then when i tried to build my program i got this error:

ERROR: displaymod-1.0.0-r1 do_install: ExecutionError(‘/home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/temp/run.do_install.316633’, 1, None, None)
ERROR: Logfile of failure stored in: /home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/temp/log.do_install.316633
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are [‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtbase-native_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/meta-qt5/recipes-qt/qt5/qtquickcontrols2_git.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_11.4.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_11.4.bb:do_populate_sysroot’, ‘/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot’, ‘virtual:native:/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot’, ‘virtual:native:/home/user1/oe-core/build/…/layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot’]
| NOTE: Installed into sysroot:
| NOTE: Skipping as already exists in sysroot: [‘qtbase-native’, ‘qtbase’, ‘qtdeclarative’, ‘qtquickcontrols2’, ‘glibc’, ‘gcc-cross-aarch64’, ‘gcc-runtime’, ‘quilt-native’, ‘patch-native’, ‘pseudo-native’, ‘zlib-native’, ‘dbus-native’, ‘libpcre2’, ‘imx-gpu-viv’, ‘libpng’, ‘libxkbcommon’, ‘fontconfig’, ‘xcb-util-image’, ‘freetype’, ‘libxcb’, ‘zlib’, ‘xcb-util-wm’, ‘libxext’, ‘openssl’, ‘vulkan-headers’, ‘xcb-util-renderutil’, ‘dbus’, ‘icu’, ‘xcb-util-keysyms’, ‘glib-2.0’, ‘systemd’, ‘libdrm’, ‘sqlite3’, ‘libjpeg-turbo’, ‘libgcc’, ‘linux-libc-headers’, ‘binutils-cross-aarch64’, ‘gmp-native’, ‘xz-native’, ‘flex-native’, ‘texinfo-dummy-native’, ‘zstd-native’, ‘libtool-native’, ‘libmpc-native’, ‘gnu-config-native’, ‘mpfr-native’, ‘attr-native’, ‘expat-native’, ‘gettext-minimal-native’, ‘glib-2.0-native’, ‘bzip2’, ‘wayland’, ‘libxxf86vm’, ‘mesa’, ‘libxshmfence’, ‘wayland-protocols’, ‘libxml2’, ‘xkeyboard-config’, ‘util-linux’, ‘expat’, ‘xcb-util’, ‘libpthread-stubs’, ‘libxau’, ‘xorgproto’, ‘libxdmcp’, ‘xcb-proto’, ‘libx11’, ‘util-macros’, ‘opkg-utils’, ‘autoconf-archive’, ‘shadow-native’, ‘base-passwd’, ‘base-files’, ‘shadow’, ‘shadow-sysroot’, ‘libsm’, ‘libpcre’, ‘libffi’, ‘bash-completion’, ‘libpam’, ‘libseccomp’, ‘kmod’, ‘acl’, ‘zstd’, ‘libcap’, ‘libpciaccess’, ‘m4-native’, ‘cmake-native’, ‘gettext-native’, ‘libpcre-native’, ‘python3-native’, ‘libffi-native’, ‘util-linux-native’, ‘libxfixes’, ‘libxdamage’, ‘xrandr’, ‘python3’, ‘util-linux-libuuid’, ‘libcap-ng’, ‘libxcrypt’, ‘ncurses’, ‘xtrans’, ‘attr’, ‘libice’, ‘flex’, ‘cracklib’, ‘xz’, ‘bzip2-native’, ‘ncurses-native’, ‘curl-native’, ‘sqlite3-native’, ‘util-linux-libuuid-native’, ‘openssl-native’, ‘readline-native’, ‘libtirpc-native’, ‘gdbm-native’, ‘libnsl2-native’, ‘libpcre2-native’, ‘libcap-ng-native’, ‘libxrandr’, ‘libxrender’, ‘libnsl2’, ‘gdbm’, ‘readline’, ‘libtirpc’, ‘perl-native’, ‘make-native’]
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| install: cannot stat ‘/home/user1/oe-core/build/tmp/work/cortexa53-tdx-linux/displaymod/1.0.0-r1/build/displaymod’: No such file or directory
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/user1/oe-core/build/…/layers/meta-custom/recipes-cnhi/displaymod/displaymod_1.0.0.bb:do_install) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 8145 tasks of which 8131 didn’t need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 7 seconds

Summary: 1 task failed:
/home/user1/oe-core/build/…/layers/meta-custom/recipes-cnhi/displaymod/displaymod_1.0.0.bb:do_install
Summary: There were 5 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.

This is my recipe file
DESCRIPTION = “Qt Application for Yocto”
LICENSE = “CLOSED”

PR = “r1”

#inherit core-image

DEPENDS += " qtbase qtdeclarative qtquickcontrols2"

SRC_URI = “file://main.cpp
file://mainwindow.cpp
file://surround_view.cpp
file://mainwindow.h
file://Resource.qrc
file://surround_view.h
file://mainwindow.ui
file://surround_view.ui
file://wireframe_v1.pro
file://icons/”

S = “${WORKDIR}”

inherit qmake5

RDEPENDS_${PN} += “qtbase qtdeclarative qtquickcontrols2”

do_install:append() {
install -d ${D}${bindir}
install -m 0755 ${B}/displaymod ${D}${bindir}/
}

FILES_${PN} += “${bindir}/displaymod”

Hi @Srivathsan ,
I understand that your issue has been solved in this community post.
Update us if its not yet solved