Building QT6.5.2 for X11 on Ubuntu 22.04

In addition to the packages installed while building QT6.4 I installed the following packages required for X11:

sudo apt install libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev \
  libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev \
  libxcb-cursor-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev \
  libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev \
  libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev \
  libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev

And configured QT with dynamic linking:

export MY_INSTALL_PATH=/home/def/libs/QT6.5d
export QT_SRC_PATH=/home/def/repos/qt-everywhere-src-6.5.2

${QT_SRC_PATH}/configure -prefix $MY_INSTALL_PATH -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -opensource -confirm-license \
  -c++std c++20 -openssl-linked \
  -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity \
  -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua \
  -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects \
  -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard \
  -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -skip qtlocation \
  -skip qthttpserver

The output was the following:

+ mkdir -p qtbase
+ cd qtbase
+ exec /home/def/repos/qt-everywhere-src-6.5.2/qtbase/configure -top-level -prefix /home/def/libs/QT6.5d -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -opensource -confirm-license -c++std c++20 -openssl-linked -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -skip qtlocation -skip qthttpserver
'/usr/bin/cmake' '-DBUILD_qt3d=OFF' '-DBUILD_qt5compat=OFF' '-DBUILD_qtactiveqt=OFF' '-DBUILD_qtcharts=OFF' '-DBUILD_qtcoap=OFF' '-DBUILD_qtconnectivity=OFF' '-DBUILD_qtdatavis3d=OFF' '-DBUILD_qtdoc=OFF' '-DBUILD_qtlottie=OFF' '-DBUILD_qtmqtt=OFF' '-DBUILD_qtnetworkauth=OFF' '-DBUILD_qtopcua=OFF' '-DBUILD_qtserialport=OFF' '-DBUILD_qtpositioning=OFF' '-DBUILD_qtquicktimeline=OFF' '-DBUILD_qtquick3d=OFF' '-DBUILD_qtremoteobjects=OFF' '-DBUILD_qtscxml=OFF' '-DBUILD_qtsensors=OFF' '-DBUILD_qtserialbus=OFF' '-DBUILD_qtvirtualkeyboard=OFF' '-DBUILD_qtwebchannel=OFF' '-DBUILD_qtwebengine=OFF' '-DBUILD_qtwebview=OFF' '-DBUILD_qtquick3dphysics=OFF' '-DBUILD_qtspeech=OFF' '-DBUILD_qtlocation=OFF' '-DBUILD_qthttpserver=OFF' '-DCMAKE_INSTALL_PREFIX=/home/def/libs/QT6.5d' '-DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo;Debug' '-DQT_EXTRA_DEFINES=QT_NO_EXCEPTIONS=1' '-DINPUT_cxx14=yes' '-DINPUT_cxx17=yes' '-DINPUT_cxx20=yes' '-DINPUT_cxx2b=no' '-DINPUT_openssl=linked' '-G' 'Ninja Multi-Config' '/home/def/repos/qt-everywhere-src-6.5.2'
-- The CXX compiler identification is GNU 12.1.0
-- The C compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtimageformats'
-- Checking dependencies of submodule 'qtlanguageserver'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Checking dependencies of submodule 'qtmultimedia'
-- Skipping optional dependency 'qtquick3d' of 'qtmultimedia', because building 'qtquick3d' was explicitly disabled.
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qttools'
-- Skipping optional dependency 'qtactiveqt' of 'qttools', because building 'qtactiveqt' was explicitly disabled.
-- Checking dependencies of submodule 'qtgrpc'
-- Checking dependencies of submodule 'qtquickeffectmaker'
-- Skipping optional dependency 'qtquick3d' of 'qtquickeffectmaker', because building 'qtquick3d' was explicitly disabled.
-- Checking dependencies of submodule 'qttranslations'
-- Checking dependencies of submodule 'qtwayland'
-- Configuring submodule 'qtbase'
            -DCMAKE_C_FLAGS_DEBUG=-g
            -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
            -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
            -DCMAKE_CXX_FLAGS_DEBUG=-g
            -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
            -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
            -DCMAKE_OBJCOPY=/usr/bin/objcopy
            -DCMAKE_C_STANDARD=11
            -DCMAKE_C_STANDARD_REQUIRED=ON
            -DCMAKE_CXX_STANDARD=17
            -DCMAKE_CXX_STANDARD_REQUIRED=ON
            -DCMAKE_MODULE_PATH:STRING=/home/def/repos/qt-everywhere-src-6.5.2/qtbase/cmake/platforms
-- Configuring submodule 'qtimageformats'
-- Configuring submodule 'qtlanguageserver'
-- Configuring submodule 'qtshadertools'
-- Configuring submodule 'qtsvg'
-- Configuring submodule 'qtdeclarative'
-- Configuring submodule 'qtquicktimeline'
-- Configuring submodule 'qtquick3d'
-- Configuring submodule 'qtmultimedia'
-- Configuring submodule 'qt3d'
-- Configuring submodule 'qt5compat'
-- Configuring submodule 'qtactiveqt'
-- Configuring submodule 'qtcharts'
-- Configuring submodule 'qtcoap'
-- Configuring submodule 'qtconnectivity'
-- Configuring submodule 'qtdatavis3d'
-- Configuring submodule 'qtwebsockets'
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.4.0", minimum required is "0.5.0")
CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:4 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qthttpserver'
-- Configuring submodule 'qttools'
-- Could NOT find Clang (missing: Clang_DIR)
-- Could NOT find Clang (missing: Clang_DIR)
-- Configuring submodule 'qtserialport'
-- Configuring submodule 'qtpositioning'
-- Configuring submodule 'qtwebchannel'
-- Configuring submodule 'qtwebengine'
-- Configuring submodule 'qtdoc'
-- Configuring submodule 'qtgrpc'
-- Configuring submodule 'qtlocation'
-- Configuring submodule 'qtlottie'
-- Configuring submodule 'qtmqtt'
-- Configuring submodule 'qtnetworkauth'
-- Configuring submodule 'qtopcua'
-- Configuring submodule 'qtquick3dphysics'
-- Configuring submodule 'qtquickeffectmaker'
-- Could NOT find Qt6Quick3DGlslParserPrivate (missing: Qt6Quick3DGlslParserPrivate_DIR)
CMake Warning at /home/def/build/qt/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message):
  Failed to find optional Qt component "Quick3DGlslParserPrivate".

  Expected Config file at
  "/home/def/build/qt/qtbase/lib/cmake/Qt6Quick3DGlslParserPrivate/Qt6Quick3DGlslParserPrivateConfig.cmake"
  does NOT exist

Call Stack (most recent call first):
  qtquickeffectmaker/CMakeLists.txt:20 (find_package)


[QQEffectMaker] Note: No Quick3DGlslParserPrivate available, building without syntax highlighting
Nodes path: ./qml/QtQuickEffectMaker/defaultnodes
-- Configuring submodule 'qtremoteobjects'
-- Configuring submodule 'qtscxml'
-- Configuring submodule 'qtsensors'
-- Configuring submodule 'qtserialbus'
-- Configuring submodule 'qtspeech'
-- Configuring submodule 'qttranslations'
-- Configuring submodule 'qtvirtualkeyboard'
-- Configuring submodule 'qtwayland'
CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/xdgshell/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/iviapplication/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/wlshell/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/qtshell/CMakeLists.txt:8 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qtwebview'

-- Configuration summary shown below. It has also been written to /home/def/build/qt/config.summary
-- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.

-- Configure summary:

Building for: linux-g++ (x86_64, CPU features: mmx sse sse2)
Compiler: gcc 12.1.0
Build options:
  Mode ................................... debug and release (with debug info)
  Optimize debug build ................... yes
  Optimize release build for size ........ no
  Fully optimize release builds (-O3) .... no
  Building shared libraries .............. yes
  Using C standard ....................... C11
  Using C++ standard ..................... C++20
  Using ccache ........................... no
  Unity Build ............................ no
  Using new DTAGS ........................ yes
  Generating GDB index ................... no
  Relocatable ............................ yes
  Using precompiled headers .............. yes
  Using Link Time Optimization (LTCG) .... no
  Using Intel CET ........................ yes
  Target compiler supports:
    x86 Intrinsics ....................... Basic VAES AVX512VBMI2
  Sanitizers:
    Addresses ............................ no
    Threads .............................. no
    Memory ............................... no
    Fuzzer (instrumentation only) ........ no
    Undefined ............................ no
  Build parts ............................ libs tools
Qt modules and options:
  Qt Concurrent .......................... yes
  Qt D-Bus ............................... yes
  Qt D-Bus directly linked to libdbus .... no
  Qt Gui ................................. yes
  Qt Network ............................. yes
  Qt PrintSupport ........................ yes
  Qt Sql ................................. yes
  Qt Testlib ............................. yes
  Qt Widgets ............................. yes
  Qt Xml ................................. yes
Support enabled for:
  Using pkg-config ....................... yes
  udev ................................... no
  OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ yes
  OpenSSL 1.1 ............................ no
  OpenSSL 3.0 ............................ yes
  Using system zlib ...................... yes
  Zstandard support ...................... no
  Thread support ......................... yes
Common build options:
  Linker can resolve circular dependencies  yes
Qt Core:
  backtrace .............................. yes
  DoubleConversion ....................... yes
    Using system DoubleConversion ........ no
  GLib ................................... no
  ICU .................................... no
  Using system libb2 ..................... no
  Built-in copy of the MIME database ..... yes
  cpp/winrt base ......................... no
  Tracing backend ........................ <none>
  Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
  PCRE2 .................................. yes
    Using system PCRE2 ................... no
  CLONE_PIDFD support in forkfd .......... yes
  Application permissions ................ no
Qt Sql:
  SQL item models ........................ yes
Qt Network:
  getifaddrs() ........................... yes
  IPv6 ifname ............................ yes
  libproxy ............................... no
  Linux AF_NETLINK ....................... yes
  DTLS ................................... yes
  OCSP-stapling .......................... yes
  SCTP ................................... no
  Use system proxies ..................... yes
  GSSAPI ................................. no
  Brotli Decompression Support ........... yes
  qIsEffectiveTLD() ...................... yes
    Built-in publicsuffix database ....... yes
    System publicsuffix database ......... yes
Core tools:
  Android deployment tool ................ yes
  macOS deployment tool .................. no
  Windows deployment tool ................ no
  qmake .................................. yes
Qt Gui:
  Accessibility .......................... yes
  FreeType ............................... yes
    Using system FreeType ................ yes
  HarfBuzz ............................... yes
    Using system HarfBuzz ................ no
  Fontconfig ............................. yes
  Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
      Using system libjpeg ............... no
    PNG .................................. yes
      Using system libpng ................ yes
  Text formats:
    HtmlParser ........................... yes
    CssParser ............................ yes
    OdfWriter ............................ yes
    MarkdownReader ....................... yes
      Using system libmd4c ............... yes
    MarkdownWriter ....................... yes
  EGL .................................... yes
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... yes
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no
  Vulkan ................................. yes
  Session Management ..................... yes
Features used by QPA backends:
  evdev .................................. yes
  libinput ............................... no
  HiRes wheel support in libinput ........ no
  INTEGRITY HID .......................... no
  mtdev .................................. no
  tslib .................................. no
  xkbcommon .............................. yes
  X11 specific:
    XLib ................................. yes
    XCB Xlib ............................. yes
    EGL on X11 ........................... yes
    xkbcommon-x11 ........................ yes
    xcb-sm ............................... yes
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. yes
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... yes
    EGLFS GBM ............................ no
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ yes
  LinuxFB ................................ yes
  VNC .................................... yes
  VK_KHR_display ......................... yes
  QNX:
    lgmon ................................ no
    IMF .................................. no
  XCB:
    Using system-provided xcb-xinput ..... no
    GL integrations:
      GLX Plugin ......................... yes
        XCB GLX .......................... yes
      EGL-X11 Plugin ..................... yes
  Windows:
    Direct 2D ............................ no
    Direct 2D 1.1 ........................ no
    DirectWrite .......................... no
    DirectWrite 3 ........................ no
Qt Widgets:
  GTK+ ................................... no
  Styles ................................. Fusion Windows
Qt Testlib:
  Tester for item models ................. yes
  Batch tests ............................ no
Qt PrintSupport:
  CUPS ................................... no
Qt Sql Drivers:
  DB2 (IBM) .............................. no
  InterBase .............................. no
  MySql .................................. no
  OCI (Oracle) ........................... no
  ODBC ................................... no
  PostgreSQL ............................. no
  SQLite ................................. yes
    Using system provided SQLite ......... no
Further Image Formats:
  JasPer ................................. no
  MNG .................................... no
  TIFF ................................... yes
    Using system libtiff ................. no
  WEBP ................................... yes
    Using system libwebp ................. no
Qt QML:
  QML network support .................... yes
  QML debugging and profiling support .... yes
  QML just-in-time compiler .............. yes
  QML XML http request ................... yes
  QML Locale ............................. yes
Qt QML Models:
  QML list model ......................... yes
  QML delegate model ..................... yes
Qt Quick:
  AnimatedImage item ..................... yes
  Canvas item ............................ yes
  Support for Qt Quick Designer .......... yes
  Flipable item .......................... yes
  GridView item .......................... yes
  ListView item .......................... yes
  TableView item ......................... yes
  TreeView item .......................... yes
  Path support ........................... yes
  PathView item .......................... yes
  Positioner items ....................... yes
  Repeater item .......................... yes
  ShaderEffect item ...................... yes
  Sprite item ............................ yes
Qt Quick Templates 2:
  Hover support .......................... yes
  Multi-touch support .................... yes
  Calendar support ....................... yes
Qt Quick Controls 2:
  Styles ................................. Basic Fusion Imagine iOS Material Universal macOS Windows
Qt Multimedia:
  Spatial Audio .......................... yes
  Spatial Audio (Quick3D) ................ no
  Low level Audio Backend:
    ALSA (experimental) .................. no
    PulseAudio ........................... no
    MMRenderer ........................... no
    CoreAudio ............................ no
    Windows Media SDK .................... no
    Open SLES (Android) .................. no
    Web Assembly ......................... no
  Plugin:
    GStreamer 1.0 ........................ no
    FFmpeg ............................... no
    MMRenderer ........................... no
    AVFoundation ......................... no
    Windows Media Foundation ............. no
  Hardware acceleration and features:
    Video for Linux ...................... yes
    VAAPI support ........................ no
    Linux DMA buffer support ............. yes
    VideoToolbox ......................... no
Qt Tools:
  Qt Assistant ........................... yes
  QDoc ................................... no
  Clang-based lupdate parser ............. no
  Qt Designer ............................ yes
  Qt Distance Field Generator ............ yes
  Qt Linguist ............................ yes
  pixeltool .............................. yes
  qdbus .................................. yes
  Qt Attributions Scanner ................ yes
  qtdiag ................................. yes
  qtplugininfo ........................... yes
Qt Protobuf tools:
  Qt Protobuf generator .................. no
Qt GRPC:
  gRPC support ........................... yes
  Native gRPC support .................... no
Qt GRPC tools:
  Qt GRPC generator ...................... no
Qt Wayland TextInput Protocol V4(WIP) .... no
Qt Wayland Client ........................ yes
Qt Wayland Compositor .................... yes
Qt Wayland Drivers:
  EGL .................................... yes
  Raspberry Pi ........................... no
  DRM EGL ................................ yes
  libhybris EGL .......................... no
  Linux dma-buf server buffer integration  yes
  Shm emulation server buffer integration  yes
  Vulkan-based server buffer integration . yes
Qt Wayland Client Shell Integrations:
  xdg-shell .............................. yes
  ivi-shell .............................. yes
  wl-shell (deprecated) .................. yes
  qt-shell ............................... yes
Qt Wayland Compositor Layer Plugins:
  VSP2 hardware layer integration ........ no


Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

WARNING: No backend for low level audio found.
WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew's llvm package.
You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.
WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.
You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.

--

Qt is now configured for building. Just run 'cmake --build . --parallel'

Once everything is built, you must run 'ninja install'
Qt will be installed into '/home/def/libs/QT6.5d'

To configure and build other Qt modules, you can use the following convenience script:
        /home/def/libs/QT6.5d/bin/qt-configure-module

If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory


-- Configuring done
-- Generating done
-- Build files have been written to: /home/def/build/qt

Checked XCB plugin dependencies:

cd ~/libs/QT6.5d/plugins/platforms
ldd libqxcb.so
        linux-vdso.so.1 (0x00007ffec7da3000)
        libQt6XcbQpa.so.6 => /home/def/libs/QT6.5d/plugins/platforms/./../../lib/libQt6XcbQpa.so.6 (0x00007f385d1d7000)
        libQt6Gui.so.6 => /home/def/libs/QT6.5d/plugins/platforms/./../../lib/libQt6Gui.so.6 (0x00007f385c875000)
        libQt6Core.so.6 => /home/def/libs/QT6.5d/plugins/platforms/./../../lib/libQt6Core.so.6 (0x00007f385c206000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f385bfcf000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f385bda7000)
        libxcb-cursor.so.0 => /lib/x86_64-linux-gnu/libxcb-cursor.so.0 (0x00007f385ba00000)
        libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f385bd9e000)
        libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f385bd98000)
        libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f385bd93000)
        libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f385bd80000)
        libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f385bd71000)
        libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f385bd68000)
        libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f385bd63000)
        libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f385bd5e000)
        libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f385bd54000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f385bd2a000)
        libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f385bd20000)
        libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f385bd00000)
        libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f385bcb9000)
        libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f385bcb4000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f385b8c0000)
        libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f385bca9000)
        libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f385bc8c000)
        libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f385bc7f000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f385b7d9000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f385bc5f000)
        libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f385bc4c000)
        libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f385b78f000)
        libQt6DBus.so.6 => /home/def/libs/QT6.5d/plugins/platforms/./../../lib/libQt6DBus.so.6 (0x00007f385b6c5000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f385bc16000)
        libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f385b699000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f385b65e000)
        libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007f385b64c000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f385b584000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f385b568000)
        libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f385b126000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f385d299000)
        libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f385bc0b000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f385b120000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f385b118000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f385b10f000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f385b0f7000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f385b03f000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f385b00e000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f385b000000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f385aff3000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f385afd0000)

Built my app with the following commands:

cmake ~/repos/tradeclient/src/TradeClient -G Ninja -D CMAKE_PREFIX_PATH=~/libs/QT6.5d -DAWL_COMPILE_TESTS=ON
cmake --build . --parallel --target TradeClient --config Release | tee clog.txt

and was able to start it on WSL:

Also I built static QT:

export MY_INSTALL_PATH=/home/def/libs/QT6.5
export QT_SRC_PATH=/home/def/repos/qt-everywhere-src-6.5.2

${QT_SRC_PATH}/configure -prefix $MY_INSTALL_PATH -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -opensource -confirm-license \
  -c++std c++20 -openssl-linked -static -static-runtime \
  -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity \
  -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua \
  -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects \
  -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard \
  -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -skip qtlocation \
  -skip qthttpserver

The output was the following:

+ mkdir -p qtbase
+ cd qtbase
+ exec /home/def/repos/qt-everywhere-src-6.5.2/qtbase/configure -top-level -prefix /home/def/libs/QT6.5 -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -opensource -confirm-license -c++std c++20 -openssl-linked -static -static-runtime -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -skip qtlocation -skip qthttpserver
'/usr/bin/cmake' '-DBUILD_qt3d=OFF' '-DBUILD_qt5compat=OFF' '-DBUILD_qtactiveqt=OFF' '-DBUILD_qtcharts=OFF' '-DBUILD_qtcoap=OFF' '-DBUILD_qtconnectivity=OFF' '-DBUILD_qtdatavis3d=OFF' '-DBUILD_qtdoc=OFF' '-DBUILD_qtlottie=OFF' '-DBUILD_qtmqtt=OFF' '-DBUILD_qtnetworkauth=OFF' '-DBUILD_qtopcua=OFF' '-DBUILD_qtserialport=OFF' '-DBUILD_qtpositioning=OFF' '-DBUILD_qtquicktimeline=OFF' '-DBUILD_qtquick3d=OFF' '-DBUILD_qtremoteobjects=OFF' '-DBUILD_qtscxml=OFF' '-DBUILD_qtsensors=OFF' '-DBUILD_qtserialbus=OFF' '-DBUILD_qtvirtualkeyboard=OFF' '-DBUILD_qtwebchannel=OFF' '-DBUILD_qtwebengine=OFF' '-DBUILD_qtwebview=OFF' '-DBUILD_qtquick3dphysics=OFF' '-DBUILD_qtspeech=OFF' '-DBUILD_qtlocation=OFF' '-DBUILD_qthttpserver=OFF' '-DBUILD_SHARED_LIBS=OFF' '-DCMAKE_INSTALL_PREFIX=/home/def/libs/QT6.5' '-DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo;Debug' '-DQT_EXTRA_DEFINES=QT_NO_EXCEPTIONS=1' '-DINPUT_cxx14=yes' '-DINPUT_cxx17=yes' '-DINPUT_cxx20=yes' '-DINPUT_cxx2b=no' '-DINPUT_openssl=linked' '-DINPUT_static_runtime=yes' '-G' 'Ninja Multi-Config' '/home/def/repos/qt-everywhere-src-6.5.2'
-- The CXX compiler identification is GNU 12.1.0
-- The C compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtimageformats'
-- Checking dependencies of submodule 'qtlanguageserver'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Checking dependencies of submodule 'qtmultimedia'
-- Skipping optional dependency 'qtquick3d' of 'qtmultimedia', because building 'qtquick3d' was explicitly disabled.
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qttools'
-- Skipping optional dependency 'qtactiveqt' of 'qttools', because building 'qtactiveqt' was explicitly disabled.
-- Checking dependencies of submodule 'qtgrpc'
-- Checking dependencies of submodule 'qtquickeffectmaker'
-- Skipping optional dependency 'qtquick3d' of 'qtquickeffectmaker', because building 'qtquick3d' was explicitly disabled.
-- Checking dependencies of submodule 'qttranslations'
-- Checking dependencies of submodule 'qtwayland'
-- Configuring submodule 'qtbase'
            -DCMAKE_C_FLAGS_DEBUG=-g
            -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
            -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
            -DCMAKE_CXX_FLAGS_DEBUG=-g
            -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
            -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
            -DCMAKE_OBJCOPY=/usr/bin/objcopy
            -DCMAKE_C_STANDARD=11
            -DCMAKE_C_STANDARD_REQUIRED=ON
            -DCMAKE_CXX_STANDARD=17
            -DCMAKE_CXX_STANDARD_REQUIRED=ON
            -DCMAKE_MODULE_PATH:STRING=/home/def/repos/qt-everywhere-src-6.5.2/qtbase/cmake/platforms
-- Configuring submodule 'qtimageformats'
-- Configuring submodule 'qtlanguageserver'
-- Configuring submodule 'qtshadertools'
-- Configuring submodule 'qtsvg'
-- Configuring submodule 'qtdeclarative'
-- Configuring submodule 'qtquicktimeline'
-- Configuring submodule 'qtquick3d'
-- Configuring submodule 'qtmultimedia'
-- Configuring submodule 'qt3d'
-- Configuring submodule 'qt5compat'
-- Configuring submodule 'qtactiveqt'
-- Configuring submodule 'qtcharts'
-- Configuring submodule 'qtcoap'
-- Configuring submodule 'qtconnectivity'
-- Configuring submodule 'qtdatavis3d'
-- Configuring submodule 'qtwebsockets'
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.4.0", minimum required is "0.5.0")
CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:4 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qthttpserver'
-- Configuring submodule 'qttools'
-- Could NOT find Clang (missing: Clang_DIR)
-- Could NOT find Clang (missing: Clang_DIR)
-- Configuring submodule 'qtserialport'
-- Configuring submodule 'qtpositioning'
-- Configuring submodule 'qtwebchannel'
-- Configuring submodule 'qtwebengine'
-- Configuring submodule 'qtdoc'
-- Configuring submodule 'qtgrpc'
-- Configuring submodule 'qtlocation'
-- Configuring submodule 'qtlottie'
-- Configuring submodule 'qtmqtt'
-- Configuring submodule 'qtnetworkauth'
-- Configuring submodule 'qtopcua'
-- Configuring submodule 'qtquick3dphysics'
-- Configuring submodule 'qtquickeffectmaker'
-- Could NOT find Qt6Quick3DGlslParserPrivate (missing: Qt6Quick3DGlslParserPrivate_DIR)
CMake Warning at /home/def/build/qt/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message):
  Failed to find optional Qt component "Quick3DGlslParserPrivate".

  Expected Config file at
  "/home/def/build/qt/qtbase/lib/cmake/Qt6Quick3DGlslParserPrivate/Qt6Quick3DGlslParserPrivateConfig.cmake"
  does NOT exist

Call Stack (most recent call first):
  qtquickeffectmaker/CMakeLists.txt:20 (find_package)


[QQEffectMaker] Note: No Quick3DGlslParserPrivate available, building without syntax highlighting
Nodes path: ./qml/QtQuickEffectMaker/defaultnodes
-- Configuring submodule 'qtremoteobjects'
-- Configuring submodule 'qtscxml'
-- Configuring submodule 'qtsensors'
-- Configuring submodule 'qtserialbus'
-- Configuring submodule 'qtspeech'
-- Configuring submodule 'qttranslations'
-- Configuring submodule 'qtvirtualkeyboard'
-- Configuring submodule 'qtwayland'
CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/xdgshell/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/iviapplication/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/wlshell/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/def/build/qt/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwayland/src/imports/compositor-extensions/qtshell/CMakeLists.txt:8 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qtwebview'

-- Configuration summary shown below. It has also been written to /home/def/build/qt/config.summary
-- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.

-- Configure summary:

Building for: linux-g++ (x86_64, CPU features: mmx sse sse2)
Compiler: gcc 12.1.0
Build options:
  Mode ................................... debug and release (with debug info)
  Optimize debug build ................... yes
  Optimize release build for size ........ no
  Fully optimize release builds (-O3) .... no
  Building shared libraries .............. no
  Using C standard ....................... C11
  Using C++ standard ..................... C++20
  Using ccache ........................... no
  Unity Build ............................ no
  Using new DTAGS ........................ yes
  Generating GDB index ................... no
  Relocatable ............................ no
  Using precompiled headers .............. yes
  Using Link Time Optimization (LTCG) .... no
  Using Intel CET ........................ yes
  Target compiler supports:
    x86 Intrinsics ....................... Basic VAES AVX512VBMI2
  Sanitizers:
    Addresses ............................ no
    Threads .............................. no
    Memory ............................... no
    Fuzzer (instrumentation only) ........ no
    Undefined ............................ no
  Build parts ............................ libs tools
Qt modules and options:
  Qt Concurrent .......................... yes
  Qt D-Bus ............................... yes
  Qt D-Bus directly linked to libdbus .... no
  Qt Gui ................................. yes
  Qt Network ............................. yes
  Qt PrintSupport ........................ yes
  Qt Sql ................................. yes
  Qt Testlib ............................. yes
  Qt Widgets ............................. yes
  Qt Xml ................................. yes
Support enabled for:
  Using pkg-config ....................... yes
  udev ................................... no
  OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ yes
  OpenSSL 1.1 ............................ no
  OpenSSL 3.0 ............................ yes
  Using system zlib ...................... yes
  Zstandard support ...................... no
  Thread support ......................... yes
Common build options:
  Linker can resolve circular dependencies  yes
Qt Core:
  backtrace .............................. yes
  DoubleConversion ....................... yes
    Using system DoubleConversion ........ no
  GLib ................................... no
  ICU .................................... no
  Using system libb2 ..................... no
  Built-in copy of the MIME database ..... yes
  cpp/winrt base ......................... no
  Tracing backend ........................ <none>
  Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
  PCRE2 .................................. yes
    Using system PCRE2 ................... no
  CLONE_PIDFD support in forkfd .......... yes
  Application permissions ................ no
Qt Sql:
  SQL item models ........................ yes
Qt Network:
  getifaddrs() ........................... yes
  IPv6 ifname ............................ yes
  libproxy ............................... no
  Linux AF_NETLINK ....................... yes
  DTLS ................................... yes
  OCSP-stapling .......................... yes
  SCTP ................................... no
  Use system proxies ..................... yes
  GSSAPI ................................. no
  Brotli Decompression Support ........... yes
  qIsEffectiveTLD() ...................... yes
    Built-in publicsuffix database ....... yes
    System publicsuffix database ......... yes
Core tools:
  Android deployment tool ................ yes
  macOS deployment tool .................. no
  Windows deployment tool ................ no
  qmake .................................. yes
Qt Gui:
  Accessibility .......................... yes
  FreeType ............................... yes
    Using system FreeType ................ yes
  HarfBuzz ............................... yes
    Using system HarfBuzz ................ no
  Fontconfig ............................. yes
  Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
      Using system libjpeg ............... no
    PNG .................................. yes
      Using system libpng ................ yes
  Text formats:
    HtmlParser ........................... yes
    CssParser ............................ yes
    OdfWriter ............................ yes
    MarkdownReader ....................... yes
      Using system libmd4c ............... yes
    MarkdownWriter ....................... yes
  EGL .................................... yes
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... yes
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no
  Vulkan ................................. yes
  Session Management ..................... yes
Features used by QPA backends:
  evdev .................................. yes
  libinput ............................... no
  HiRes wheel support in libinput ........ no
  INTEGRITY HID .......................... no
  mtdev .................................. no
  tslib .................................. no
  xkbcommon .............................. yes
  X11 specific:
    XLib ................................. yes
    XCB Xlib ............................. yes
    EGL on X11 ........................... yes
    xkbcommon-x11 ........................ yes
    xcb-sm ............................... yes
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. yes
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... yes
    EGLFS GBM ............................ no
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ yes
  LinuxFB ................................ yes
  VNC .................................... yes
  VK_KHR_display ......................... yes
  QNX:
    lgmon ................................ no
    IMF .................................. no
  XCB:
    Using system-provided xcb-xinput ..... no
    GL integrations:
      GLX Plugin ......................... yes
        XCB GLX .......................... yes
      EGL-X11 Plugin ..................... yes
  Windows:
    Direct 2D ............................ no
    Direct 2D 1.1 ........................ no
    DirectWrite .......................... no
    DirectWrite 3 ........................ no
Qt Widgets:
  GTK+ ................................... no
  Styles ................................. Fusion Windows
Qt Testlib:
  Tester for item models ................. yes
  Batch tests ............................ no
Qt PrintSupport:
  CUPS ................................... no
Qt Sql Drivers:
  DB2 (IBM) .............................. no
  InterBase .............................. no
  MySql .................................. no
  OCI (Oracle) ........................... no
  ODBC ................................... no
  PostgreSQL ............................. no
  SQLite ................................. yes
    Using system provided SQLite ......... no
Further Image Formats:
  JasPer ................................. no
  MNG .................................... no
  TIFF ................................... yes
    Using system libtiff ................. no
  WEBP ................................... yes
    Using system libwebp ................. no
Qt QML:
  QML network support .................... yes
  QML debugging and profiling support .... yes
  QML just-in-time compiler .............. yes
  QML XML http request ................... yes
  QML Locale ............................. yes
Qt QML Models:
  QML list model ......................... yes
  QML delegate model ..................... yes
Qt Quick:
  AnimatedImage item ..................... yes
  Canvas item ............................ yes
  Support for Qt Quick Designer .......... yes
  Flipable item .......................... yes
  GridView item .......................... yes
  ListView item .......................... yes
  TableView item ......................... yes
  TreeView item .......................... yes
  Path support ........................... yes
  PathView item .......................... yes
  Positioner items ....................... yes
  Repeater item .......................... yes
  ShaderEffect item ...................... yes
  Sprite item ............................ yes
Qt Quick Templates 2:
  Hover support .......................... yes
  Multi-touch support .................... yes
  Calendar support ....................... yes
Qt Quick Controls 2:
  Styles ................................. Basic Fusion Imagine iOS Material Universal macOS Windows
Qt Multimedia:
  Spatial Audio .......................... yes
  Spatial Audio (Quick3D) ................ no
  Low level Audio Backend:
    ALSA (experimental) .................. no
    PulseAudio ........................... no
    MMRenderer ........................... no
    CoreAudio ............................ no
    Windows Media SDK .................... no
    Open SLES (Android) .................. no
    Web Assembly ......................... no
  Plugin:
    GStreamer 1.0 ........................ no
    FFmpeg ............................... no
    MMRenderer ........................... no
    AVFoundation ......................... no
    Windows Media Foundation ............. no
  Hardware acceleration and features:
    Video for Linux ...................... yes
    VAAPI support ........................ no
    Linux DMA buffer support ............. yes
    VideoToolbox ......................... no
Qt Tools:
  Qt Assistant ........................... yes
  QDoc ................................... no
  Clang-based lupdate parser ............. no
  Qt Designer ............................ yes
  Qt Distance Field Generator ............ yes
  Qt Linguist ............................ yes
  pixeltool .............................. yes
  qdbus .................................. yes
  Qt Attributions Scanner ................ yes
  qtdiag ................................. yes
  qtplugininfo ........................... yes
Qt Protobuf tools:
  Qt Protobuf generator .................. no
Qt GRPC:
  gRPC support ........................... yes
  Native gRPC support .................... no
Qt GRPC tools:
  Qt GRPC generator ...................... no
Qt Wayland TextInput Protocol V4(WIP) .... no
Qt Wayland Client ........................ yes
Qt Wayland Compositor .................... yes
Qt Wayland Drivers:
  EGL .................................... yes
  Raspberry Pi ........................... no
  DRM EGL ................................ yes
  libhybris EGL .......................... no
  Linux dma-buf server buffer integration  yes
  Shm emulation server buffer integration  yes
  Vulkan-based server buffer integration . yes
Qt Wayland Client Shell Integrations:
  xdg-shell .............................. yes
  ivi-shell .............................. yes
  wl-shell (deprecated) .................. yes
  qt-shell ............................... yes
Qt Wayland Compositor Layer Plugins:
  VSP2 hardware layer integration ........ no


Note: Using static linking will disable the use of dynamically loaded plugins. Make sure to import all needed static plugins, or compile needed modules into the library.
Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

WARNING: Feature static_runtime is insignificant in this configuration, ignoring related command line option(s).
WARNING: No backend for low level audio found.
WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew's llvm package.
You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.
WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.
You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.

--

Qt is now configured for building. Just run 'cmake --build . --parallel'

Once everything is built, you must run 'ninja install'
Qt will be installed into '/home/def/libs/QT6.5'

To configure and build other Qt modules, you can use the following convenience script:
        /home/def/libs/QT6.5/bin/qt-configure-module

If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory


-- Configuring done
-- Generating done
-- Build files have been written to: /home/def/build/qt

And also was able to run my app built with static QT on WSL.

But libxcb-* were not found on my Ubuntu 22.04 VPS:

ldd ./TradeClient
        linux-vdso.so.1 (0x00007fff7bff5000)
        libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007fb49aac6000)
        libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fb49aab0000)
        libxcb-glx.so.0 => /lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fb49aa93000)
        libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fb49aa8e000)
        libxkbcommon-x11.so.0 => not found
        libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007fb49aa45000)
        libxcb-cursor.so.0 => not found
        libxcb-icccm.so.4 => not found
        libxcb-image.so.0 => not found
        libxcb-keysyms.so.1 => not found
        libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007fb49aa30000)
        libxcb-render-util.so.0 => not found
        libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007fb49aa2b000)
        libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fb49aa21000)
        libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007fb49aa17000)
        libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007fb49aa08000)
        libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007fb49aa03000)
        libxcb-xkb.so.1 => not found
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fb49a9d7000)
        libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007fb49a9cc000)
        libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007fb49a9af000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fb49a97b000)
        libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007fb49a94f000)
        libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007fb49a93a000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fb49a8ff000)
        libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007fb49a8ed000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fb49a825000)
        libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fb49a7db000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fb49a69b000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb49a67d000)
        libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007fb49a5d9000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007fb49a5cb000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb49a39f000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb49a2b8000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb49a298000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb49a06e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb49e942000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007fb49a068000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fb49a060000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fb49a057000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fb49a03f000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fb499f85000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fb499f54000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007fb499f31000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007fb499f24000)

I simply installed development libxcb-* and libxkb-* packages (as I did on my build machine) and and all the dependencies appeared:

        linux-vdso.so.1 (0x00007fffb35e9000)
        libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f84b30ee000)
        libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f84b30d8000)
        libxcb-glx.so.0 => /lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f84b30bb000)
        libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f84b30b6000)
        libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f84b30ab000)
        libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f84b3062000)
        libxcb-cursor.so.0 => /lib/x86_64-linux-gnu/libxcb-cursor.so.0 (0x00007f84b2e00000)
        libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f84b305b000)
        libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f84b3055000)
        libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f84b3050000)
        libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f84b303d000)
        libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f84b3034000)
        libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f84b302f000)
        libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f84b3025000)
        libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f84b301b000)
        libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f84b300c000)
        libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f84b3007000)
        libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f84b2de0000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f84b2db6000)
        libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f84b2dab000)
        libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f84b2d8e000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f84b2d5a000)
        libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f84b2d2e000)
        libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f84b2d19000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f84b2cde000)
        libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007f84b2ccc000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f84b2c04000)
        libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f84b2bba000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f84b2a7a000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f84b2a5c000)
        libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f84b29b8000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f84b29aa000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f84b277e000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f84b2697000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f84b2677000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f84b244d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f84b6f6b000)
        libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f84b2444000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f84b243e000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f84b2436000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f84b242d000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f84b2413000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f84b235b000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f84b232a000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f84b2307000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f84b22fa000)

and was able to start my app on my VPS.

2 Responses to Building QT6.5.2 for X11 on Ubuntu 22.04

  1. dmitriano says:

    Installing GCC 12:

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt update
    sudo apt install gcc-12 g++-12
    update-alternatives --display gcc
    ll /usr/bin/gcc-12
    ll /usr/bin/g++-12
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10 --slave /usr/bin/g++ g++ /usr/bin/g++-12
    g++ --version
    gcc --version

    sudo apt install gdb

  2. dmitriano says:

    Setting the DISPLAY variable:

    export DISPLAY=:1.0
    echo $DISPLAY

Leave a Reply

Your email address will not be published. Required fields are marked *