Qt 6.5.1 Program execution
-
Installing Qt 6.5.1 for Desktop - the execution of x-Debug shows following
messageQML debugging is enabled. Only use this in a safe environment.
/qt/qml_t/TDT-Debug/TDT: symbol lookup error: /opt/qt/6.5.1/gcc_64/lib/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags
14:38:50: /qt/qml_t/TDT-Debug/TDT exited with code 127who can help ?
-
linux-vdso.so.1 (0x00007ffc8effd000) libwayland-client.so.0 => /usr/lib64/libwayland-client.so.0 (0x00007fabea91d000) libwayland-cursor.so.0 => /usr/lib64/libwayland-cursor.so.0 (0x00007fabea914000) libQt6Gui.so.6 => /opt/Qt/6.5.1/gcc_64/lib/libQt6Gui.so.6 (0x00007fabe9f50000) libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007fabe9cc5000) libQt6Core.so.6 => /opt/Qt/6.5.1/gcc_64/lib/libQt6Core.so.6 (0x00007fabe9639000) libxkbcommon.so.0 => /usr/lib64/libxkbcommon.so.0 (0x00007fabe93f5000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fabe8fd2000) libm.so.6 => /lib64/libm.so.6 (0x00007fabe8e87000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fabe8c68000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fabe8c44000) libc.so.6 => /lib64/libc.so.6 (0x00007fabe8a4f000) libffi.so.7 => /usr/lib64/libffi.so.7 (0x00007fabe8843000) libEGL.so.1 => /usr/lib64/libEGL.so.1 (0x00007fabe8630000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fabe83eb000) libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fabe80aa000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fabe80a5000) libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007fabe7f70000) libQt6DBus.so.6 => /opt/Qt/6.5.1/gcc_64/lib/libQt6DBus.so.6 (0x00007fabe7ea8000) libz.so.1 => /lib64/libz.so.1 (0x00007fabe7c91000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fabe79d3000) libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007fabe79d0000) libGLX.so.0 => /usr/lib64/libGLX.so.0 (0x00007fabe779f000) libGLdispatch.so.0 => /usr/lib64/libGLdispatch.so.0 (0x00007fabe74e9000) libicui18n.so.56 => /opt/Qt/6.5.1/gcc_64/lib/libicui18n.so.56 (0x00007fabe704e000) libicuuc.so.56 => /opt/Qt/6.5.1/gcc_64/lib/libicuuc.so.56 (0x00007fabe6c96000) libicudata.so.56 => /opt/Qt/6.5.1/gcc_64/lib/libicudata.so.56 (0x00007fabe52b3000) librt.so.1 => /lib64/librt.so.1 (0x00007fabe52a9000) /lib64/ld-linux-x86-64.so.2 (0x00007fabeaa42000) libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fabe506a000) libuuid.so.1 => /usr/lib64/libuuid.so.1 (0x00007fabe505f000) libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fabe4e36000) libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007fabe4bad000) libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007fabe495b000) libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00007fabe473e000) libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007fabe44fb000) libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fabe42f5000) libsystemd.so.0 => /usr/lib64/libsystemd.so.0 (0x00007fabe4212000) liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007fabe3fd8000) libzstd.so.1 => /usr/lib64/libzstd.so.1 (0x00007fabe3ea7000) liblz4.so.1 => /usr/lib64/liblz4.so.1 (0x00007fabe3c86000) libcap.so.2 => /usr/lib64/libcap.so.2 (0x00007fabe3a7a000) libgcrypt.so.20 => /usr/lib64/libgcrypt.so.20 (0x00007fabe393c000) is there something missing ?
thanks
-
@rienna no missing lib. The problem might be libwayland* version is too old that they do not include wl_proxy_marshal_flags. You may need to upgrade them.
===some people suggested:
You can reinstall the wayland package to fix the listed errors
https://bbs.archlinux.org/viewtopic.php?id=272846 -
-
I left reults of this issue , the problem is fundamentally caused by the version of wayland as @JoeCFD mentionned.
In my case, Ubuntu 20.04 and Qt 6.5.1 LTS was installed.
The function "wl_proxy_marshal_flags" is defined in /src/wayland-client-core.h from Wayland ver.1.20, but the Ubuntu package does not support it. The supported version is 1.18 officially.
https://ubuntu.pkgs.org/20.04/ubuntu-main-amd64/libwayland-client0_1.18.0-1_amd64.deb.htmlI tried to install new version wayland manually, but unsupported version of meson was required as well.
https://gitlab.freedesktop.org/wayland/wayland/-/tree/mainI have no other way to update Ubuntu to 22.04 and did that.
-
Please refer to https://bugreports.qt.io/browse/QTBUG-114635
-
I caught the same problem with my Ubuntu 20.04 and Qt 6.7.1. I fixed it. You need to get the latest libwayland and build it.
I hope the next instructions helps you:
- Download the source code from https://gitlab.freedesktop.org/wayland/wayland and checkout the latest version (in my case, it was 1.23.1)
- Build with instructions from README.txt with PREFIX (the path to the library is in your system).
- Create /etc/ld.so.conf.d/wayland.conf and put in it the path to your new wayland libs (in my case: /opt/wayland/lib64)
- Do sudo ldconfig
I hope it helps.