Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29995

QtCreator 12 fails to open on Ubuntu 23.10 and 20.04 due to missing system library libxcb-cursor.so.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 12.0.0
    • All Other Issues
    • None
    • Ubuntu 23.10, Ubuntu 20.04
    • Linux/X11

    Description

      I updated to QtCreator 12.0.0 with the online installer and after that it failed to start. Tested on two machines, one with Ubuntu 20.04 and another with the latest Ubuntu 23.10.

      When I start from GUI (Gnome Applications menu) nothing happens.

      When i run from terminal i get:

      $ ./qtcreator
      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, minimalegl, vnc, wayland, minimal, offscreen, wayland-egl, vkkhrdisplay, linuxfb, xcb.Aborted (core dumped)
      

      When i run with debugging enabled:

      $ QT_DEBUG_PLUGINS=1 ./qtcreator
      
      ...
      ...
      ...
      
      qt.core.plugin.factoryloader: looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so"
      qt.core.plugin.loader: Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "xcb"
              ]
          },
          "archlevel": 1,
          "className": "QXcbIntegrationPlugin",
          "debug": false,
          "version": 394752
      }
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
      qt.core.plugin.factoryloader: checking directory path "/home/user/Qt/Tools/QtCreator/bin/platforms" ...
      qt.core.library: "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)
      qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: 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, minimalegl, vnc, wayland, minimal, offscreen, wayland-egl, vkkhrdisplay, linuxfb, xcb.
      
      Aborted (core dumped)
      

      libxcb-cursor.so.0 is not installed by default on any version of Ubuntu. It exists in the repositories official but it is not installed by default. This bug is probably caused by QtCreator 12 using Qt 6.5 which included this new dependency.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              dimztimz Dimitrij Mijoski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes