Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88688

Qt application fails to start on Debian 10 Buster because libqxcb.so requires missing libxcb-util.so.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.3, 6.0.1, 6.1
    • 5.15.2
    • QPA: X11/XCB
    • None
    • Debian 10 (buster) amd64
      QtCreator 4.13.2
      Qt 5.15.2 from Online Installer
      libxcb-util0 0.3.8-3+b2
    • Linux/X11
    • 61b07d75f96d4dfb07b485b2a9bd7aed099df987(5.15) c967ed95a720e210dff398624b97810703815874(6.0) 92a57e0b016f811876ec1d62328ca8edfe452a3a(dev) 61b07d75f96d4dfb07b485b2a9bd7aed099df987 (qt/tqtc-qtbase/5.15)

    Description

      This is output with QT_DEBUG_PLUGINS:

      QFactoryLoader::QFactoryLoader() checking directory path "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms" ...
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqeglfs.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqeglfs.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "eglfs"
              ]
          },
          "archreq": 0,
          "className": "QEglFSIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("eglfs")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqlinuxfb.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqlinuxfb.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "linuxfb"
              ]
          },
          "archreq": 0,
          "className": "QLinuxFbIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("linuxfb")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqminimal.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqminimal.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "minimal"
              ]
          },
          "archreq": 0,
          "className": "QMinimalIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("minimal")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqminimalegl.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqminimalegl.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "minimalegl"
              ]
          },
          "archreq": 0,
          "className": "QMinimalEglIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("minimalegl")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqoffscreen.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqoffscreen.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "offscreen"
              ]
          },
          "archreq": 0,
          "className": "QOffscreenIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("offscreen")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqvnc.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqvnc.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "vnc"
              ]
          },
          "archreq": 0,
          "className": "QVncIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("vnc")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-egl.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-egl.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "wayland-egl"
              ]
          },
          "archreq": 0,
          "className": "QWaylandEglPlatformIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("wayland-egl")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-generic.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-generic.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "wayland"
              ]
          },
          "archreq": 0,
          "className": "QWaylandIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("wayland")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "wayland-xcomposite-egl"
              ]
          },
          "archreq": 0,
          "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("wayland-xcomposite-egl")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "wayland-xcomposite-glx"
              ]
          },
          "archreq": 0,
          "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("wayland-xcomposite-glx")
      QFactoryLoader::QFactoryLoader() looking at "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqxcb.so"
      Found metadata in lib /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqxcb.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "xcb"
              ]
          },
          "archreq": 0,
          "className": "QXcbIntegrationPlugin",
          "debug": false,
          "version": 331520
      }
      Got keys from plugin meta data ("xcb")
      QFactoryLoader::QFactoryLoader() checking directory path "/tmp/cpp/build-qt5152-Desktop_Qt_5_15_2_GCC_64bit-Debug/platforms" ...
      Cannot load library /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
      QLibraryPrivate::loadPlugin failed on "/home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)"
      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. 

      Key point:

      "Cannot load library /home/vincas/Qt/5.15.2/gcc_64/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)" 

      There's no libxcb-util.so.1 on Debian Buster. There's .so.0 though:

      $ apt-file search libxcb-util.so
      libxcb-util0: /usr/lib/x86_64-linux-gnu/libxcb-util.so.0
      libxcb-util0: /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0
      libxcb-util0-dev: /usr/lib/x86_64-linux-gnu/libxcb-util.so

      I hope Debian 10 is not considered "too old", I mean, it's current Debian version.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-88688
          # Subject Branch Project Status CR V

          Activity

            People

              liaqi Liang Qi
              talkless Vincas Dargis
              Votes:
              8 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes