meta-qt6 fails with src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
-
Hi
I'm getting this failure:
| /workdir/fslckqt/build/tmp/work/cortexa35-mx8-poky-linux/qtbase/6.4.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.3.0/ld.bfd: src/gui/CMakeFiles/Gui.dir/opengl/platform/unix/qglxconvenience.cpp.o: in function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)': | /usr/src/debug/qtbase/6.4.1-r0/git/src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
from
/workdir/fslckqt/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_compile
The full steps I followed were:
mkdir fslckqt
cd fslckqt
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b kirkstone
repo sync
EULA=1 MACHINE=imx8qxp-mek DISTRO=poky source ./setup-environment buildedit conf/local.conf
DL_DIR ?= "/workdir/shared/downloads"
SSTATE_DIR ?= "/workdir/shared/sstate-cache"bitbake core-image-minimal
prove that that works ok, then
rm -rf tmpgit clone -b 6.4.1 https://code.qt.io/cgit/yocto/meta-qt6.git/
edit conf/bblayers.conf
${BSPDIR}/sources/meta-qt6 \edit local.conf
QT_EDITION = "commercial"
CORE_IMAGE_EXTRA_INSTALL:pn-core-image-minimal += "qtbase"Similar failure with meta-qt6 dev branch and lts-6.2.7
I have tried to follow the instructions here as much as possible
https://doc.qt.io/Boot2Qt/b2qt-meta-qt6.html
https://code.qt.io/cgit/yocto/meta-qt6.git/about/
though there are gaps regarding exactly how to add the meta-qt6 layer and compatibility with distros, images etc.Thank you
-- Peter -
Hi
I'm getting this failure:
| /workdir/fslckqt/build/tmp/work/cortexa35-mx8-poky-linux/qtbase/6.4.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.3.0/ld.bfd: src/gui/CMakeFiles/Gui.dir/opengl/platform/unix/qglxconvenience.cpp.o: in function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)': | /usr/src/debug/qtbase/6.4.1-r0/git/src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
from
/workdir/fslckqt/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_compile
The full steps I followed were:
mkdir fslckqt
cd fslckqt
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b kirkstone
repo sync
EULA=1 MACHINE=imx8qxp-mek DISTRO=poky source ./setup-environment buildedit conf/local.conf
DL_DIR ?= "/workdir/shared/downloads"
SSTATE_DIR ?= "/workdir/shared/sstate-cache"bitbake core-image-minimal
prove that that works ok, then
rm -rf tmpgit clone -b 6.4.1 https://code.qt.io/cgit/yocto/meta-qt6.git/
edit conf/bblayers.conf
${BSPDIR}/sources/meta-qt6 \edit local.conf
QT_EDITION = "commercial"
CORE_IMAGE_EXTRA_INSTALL:pn-core-image-minimal += "qtbase"Similar failure with meta-qt6 dev branch and lts-6.2.7
I have tried to follow the instructions here as much as possible
https://doc.qt.io/Boot2Qt/b2qt-meta-qt6.html
https://code.qt.io/cgit/yocto/meta-qt6.git/about/
though there are gaps regarding exactly how to add the meta-qt6 layer and compatibility with distros, images etc.Thank you
-- Peter -
Hi Peter,
I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.
Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.
-
Hi Peter,
I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.
Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.
Hi @Ktome
I'm still having the same issue.
Which distro and image combinations have you tried so far?
Do you want X11, or Weston/Wayland, or both, or just KMS/DRM?I just want KMS/DRM:
https://doc.qt.io/qt-6.2/embedded-linux.htmlhttps://github.com/Freescale/fsl-community-bsp-platform
doesn't name distros or images apart from core-image-minimalhttps://doc.qt.io/Boot2Qt/b2qt-meta-qt6.html
doesn't name distros or imageshttps://code.qt.io/cgit/yocto/meta-qt6.git/about/
doesn't name distros or imageshttps://docs.yoctoproject.org/4.0.5/ref-manual/images.html
descriptions of imageshttps://variwiki.com/index.php?title=Yocto_Build_Release&release=mx8x-yocto-hardknott-5.10.72_2.2.1-v1.1
(the board we're prototyping with, before manufacturing our own board)
supports hardknott, not kirkstone yet
supports qt5, doesn't mention qt6
"The following distros can be used:
fslc-xwayland: Distro for Wayland with X11. This distro includes both wayland and X11 features.
fslc-wayland: Distro for Wayland without X11. This distro includes wayland feature but doesn’t have x11 support.
Note: Also standard Poky distros can be used" -
Hi Peter,
I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.
Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.
PS. @Ktome
fslc-wayland, rather than poky, works for some reason, though I don't want Wayland/Weston myself.
local.conf
DISTRO ?= 'fslc-wayland'
QT_EDITION = "commercial"
CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "qtbase"bitbake core-image-weston
or
bitbake core-image-minimal -
Hi Peter,
I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.
Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.
PPS. @Ktome
Therefore, looking at fslc-wayland.conf, that has:
DISTRO_FEATURES:remove = "directfb x11"adding that line to my local.conf works around the meta-qt6 build error for poky/core-image-minimal
Still not sure why the error occurs without that though.
Would have thought that meta-qt6 should work either way, whether I want x11 or not?https://github.com/Freescale/meta-freescale-distro/blob/kirkstone/conf/distro/fslc-wayland.conf
https://docs.yoctoproject.org/4.0.5/ref-manual/features.html#distro-features -
PS. just incase, did rm -rf /workdir/shared/sstate-cache/ and rm -rf tmp and ran bitbake again, but still same issue.
Also fails with
local.conf
DISTRO ?= 'fslc-x11'
QT_EDITION = "commercial"
CORE_IMAGE_EXTRA_INSTALL:pn-core-image-minimal += "qtbase"bitbake core-image-minimal
| /workdir/fslckqt/build/tmp/work/cortexa35-mx8-fslc-linux/qtbase/6.4.1-r0/recipe-sysroot-native/usr/bin/aarch64-fslc-linux/../../libexec/aarch64-fslc-linux/gcc/aarch64-fslc-linux/11.3.0/ld.bfd: src/gui/CMakeFiles/Gui.dir/opengl/platform/unix/qglxconvenience.cpp.o: in function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)': | /usr/src/debug/qtbase/6.4.1-r0/git/src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
-
Hi Petero3,
I appreciate your help with this. I attempted to the "DISTRO_FEATURES:remove = "directfb x11"" approach but kept getting the same error.
I actually backtracked a bit and installed the meta-qt6 layer alongside dunfell instead of kirkstone. This worked without issue so I imagine I'll just stick with dunfell. I appreciate all of your help though.