Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. I can't open qtcreator in ubuntu
Forum Updated to NodeBB v4.3 + New Features

I can't open qtcreator in ubuntu

Scheduled Pinned Locked Moved Solved Installation and Deployment
28 Posts 16 Posters 17.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS SGaist

    @aaron2020 hi and welcome to devnet,

    What exactly did you do ?
    What exactly did you install ?

    C Offline
    C Offline
    CEmori
    wrote on last edited by
    #17

    @SGaist Hey, I'm getting the same problem as OP

    "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, xcb.

    Aborted (memory dump)"

    changing the QT_DEBUG_PLUGINS variable did not change it. I reinstalled it aswell.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #18

      Hi and welcome to devnet,

      This environment variable triggers debugging output on the console so you get more information about what is failing.

      Did you install the libraries @Leon-Abascal suggested ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        This environment variable triggers debugging output on the console so you get more information about what is failing.

        Did you install the libraries @Leon-Abascal suggested ?

        C Offline
        C Offline
        CEmori
        wrote on last edited by
        #19

        @SGaist installing the missing libraries helped! Thanks a lot.

        1 Reply Last reply
        0
        • L Leon Abascal

          I experienced the same issue. In the last step, the plugin debug warned me that libxcb-xinerama0 was missing and sudo apt-get install --reinstall libxcb-xinerama0 fixed it.
          Hope it helps, cheers.

          S Offline
          S Offline
          spara7c5
          wrote on last edited by
          #20

          @Leon-Abascal you save my life! Same problem and same working solution! (ubuntu 21.04 in virtualbox)

          1 Reply Last reply
          0
          • M marbor

            oh, sorry
            from terminal
            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, xcb.

            Aborted (memory dump)

            K Offline
            K Offline
            KUMAR13
            wrote on last edited by
            #21

            @marbor :
            export QT_DEBUG_PLUGINS=1
            ./qtcreator
            show error: Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library
            installed : sudo apt-get install --reinstall libxcb-xinerama0
            this worked for me.
            after installation: go for this command ./qtcreator

            HeerokNewbieH ma lingfengM N J 4 Replies Last reply
            2
            • F Offline
              F Offline
              f0rg3
              wrote on last edited by
              #22

              So I've done a number of things to try to correct this issue. Firstly, I'm on Debian 10. I installed Qt in a directory like this: /home/kevin/Applications/Qt

              I've already tried reinstalling libxcb-xinerama0 as well as uninstalling and reinstalling Qt.
              Here is the debug output:

              ./qtcreator
              QFactoryLoader::QFactoryLoader() checking directory path "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ...
              QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so"
              Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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 "/home/kevin/Applications/Qt/Tools/QtCreator/bin/platforms" ...
              Cannot load library /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
              QLibraryPrivate::loadPlugin failed on "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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, xcb.
              
              Aborted
              

              As reccomended by @hskoglund in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

              Hi, try: ldd /usr/lib/qt/plugins/platforms/libqxcb.so

              The output of

              ldd /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so
              

              is

              	linux-vdso.so.1 (0x00007fff96d31000)
              	libQt5XcbQpa.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5 (0x00007f5121d3a000)
              	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f5121cde000)
              	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f5121c22000)
              	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5121a04000)
              	libQt5Gui.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Gui.so.5 (0x00007f51210d3000)
              	libQt5DBus.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5DBus.so.5 (0x00007f5120e45000)
              	libQt5Core.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Core.so.5 (0x00007f512064f000)
              	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f51205bb000)
              	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f512059a000)
              	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f5120595000)
              	libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f512058e000)
              	libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f5120389000)
              	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f5120382000)
              	libxcb-util.so.1 => not found
              	libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f512017f000)
              	libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f512016d000)
              	libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f511ff69000)
              	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f511ff5a000)
              	libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f511ff53000)
              	libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f511ff49000)
              	libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f511ff3f000)
              	libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f511ff3a000)
              	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f511ff1c000)
              	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f511fef2000)
              	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f511fcde000)
              	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f511fb9d000)
              	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f511fb92000)
              	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f511fb50000)
              	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f511fb4b000)
              	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f511f9c7000)
              	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f511f842000)
              	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f511f828000)
              	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f511f667000)
              	libxcb-util.so.1 => not found
              	libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f511f662000)
              	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f511f543000)
              	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f511f504000)
              	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f511f4fb000)
              	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f511f4c2000)
              	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f511f46f000)
              	libicui18n.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicui18n.so.56 (0x00007f511efd6000)
              	libicuuc.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicuuc.so.56 (0x00007f511ec1c000)
              	libicudata.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicudata.so.56 (0x00007f511d239000)
              	/lib64/ld-linux-x86-64.so.2 (0x00007f5122299000)
              	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f511d205000)
              	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f511d148000)
              	libxcb-util.so.0 => /lib/x86_64-linux-gnu/libxcb-util.so.0 (0x00007f511cf41000)
              	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f511cd3b000)
              	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f511cb35000)
              	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f511cac1000)
              	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f511ca20000)
              	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f511ca06000)
              	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f511c9fa000)
              	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f511c9d2000)
              	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f511c9b3000)
              	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f511c895000)
              	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f511c872000)
              

              Any and all help is greatly appreciated, thanks for your time.

              jsulmJ 1 Reply Last reply
              0
              • F f0rg3

                So I've done a number of things to try to correct this issue. Firstly, I'm on Debian 10. I installed Qt in a directory like this: /home/kevin/Applications/Qt

                I've already tried reinstalling libxcb-xinerama0 as well as uninstalling and reinstalling Qt.
                Here is the debug output:

                ./qtcreator
                QFactoryLoader::QFactoryLoader() checking directory path "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ...
                QFactoryLoader::QFactoryLoader() looking at "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so"
                Found metadata in lib /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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 "/home/kevin/Applications/Qt/Tools/QtCreator/bin/platforms" ...
                Cannot load library /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
                QLibraryPrivate::loadPlugin failed on "/home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/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, xcb.
                
                Aborted
                

                As reccomended by @hskoglund in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

                Hi, try: ldd /usr/lib/qt/plugins/platforms/libqxcb.so

                The output of

                ldd /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so
                

                is

                	linux-vdso.so.1 (0x00007fff96d31000)
                	libQt5XcbQpa.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5 (0x00007f5121d3a000)
                	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f5121cde000)
                	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f5121c22000)
                	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5121a04000)
                	libQt5Gui.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Gui.so.5 (0x00007f51210d3000)
                	libQt5DBus.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5DBus.so.5 (0x00007f5120e45000)
                	libQt5Core.so.5 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5Core.so.5 (0x00007f512064f000)
                	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f51205bb000)
                	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f512059a000)
                	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f5120595000)
                	libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f512058e000)
                	libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f5120389000)
                	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f5120382000)
                	libxcb-util.so.1 => not found
                	libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f512017f000)
                	libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f512016d000)
                	libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f511ff69000)
                	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f511ff5a000)
                	libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f511ff53000)
                	libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f511ff49000)
                	libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f511ff3f000)
                	libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f511ff3a000)
                	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f511ff1c000)
                	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f511fef2000)
                	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f511fcde000)
                	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f511fb9d000)
                	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f511fb92000)
                	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f511fb50000)
                	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f511fb4b000)
                	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f511f9c7000)
                	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f511f842000)
                	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f511f828000)
                	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f511f667000)
                	libxcb-util.so.1 => not found
                	libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f511f662000)
                	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f511f543000)
                	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f511f504000)
                	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f511f4fb000)
                	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f511f4c2000)
                	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f511f46f000)
                	libicui18n.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicui18n.so.56 (0x00007f511efd6000)
                	libicuuc.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicuuc.so.56 (0x00007f511ec1c000)
                	libicudata.so.56 => /home/kevin/Applications/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libicudata.so.56 (0x00007f511d239000)
                	/lib64/ld-linux-x86-64.so.2 (0x00007f5122299000)
                	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f511d205000)
                	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f511d148000)
                	libxcb-util.so.0 => /lib/x86_64-linux-gnu/libxcb-util.so.0 (0x00007f511cf41000)
                	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f511cd3b000)
                	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f511cb35000)
                	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f511cac1000)
                	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f511ca20000)
                	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f511ca06000)
                	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f511c9fa000)
                	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f511c9d2000)
                	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f511c9b3000)
                	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f511c895000)
                	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f511c872000)
                

                Any and all help is greatly appreciated, thanks for your time.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #23

                @f0rg3 said in I can't open qtcreator in ubuntu:

                libxcb-util.so.1 => not found

                Install libxcb-util package...

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                2
                • K KUMAR13

                  @marbor :
                  export QT_DEBUG_PLUGINS=1
                  ./qtcreator
                  show error: Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library
                  installed : sudo apt-get install --reinstall libxcb-xinerama0
                  this worked for me.
                  after installation: go for this command ./qtcreator

                  HeerokNewbieH Offline
                  HeerokNewbieH Offline
                  HeerokNewbie
                  wrote on last edited by
                  #24

                  @KUMAR13 thanks You saved my life

                  1 Reply Last reply
                  0
                  • K KUMAR13

                    @marbor :
                    export QT_DEBUG_PLUGINS=1
                    ./qtcreator
                    show error: Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library
                    installed : sudo apt-get install --reinstall libxcb-xinerama0
                    this worked for me.
                    after installation: go for this command ./qtcreator

                    ma lingfengM Offline
                    ma lingfengM Offline
                    ma lingfeng
                    wrote on last edited by
                    #25

                    @KUMAR13 I have the same question that can be solved by your solution, thank you very much.

                    1 Reply Last reply
                    0
                    • K KUMAR13

                      @marbor :
                      export QT_DEBUG_PLUGINS=1
                      ./qtcreator
                      show error: Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library
                      installed : sudo apt-get install --reinstall libxcb-xinerama0
                      this worked for me.
                      after installation: go for this command ./qtcreator

                      N Offline
                      N Offline
                      niffoxic
                      wrote on last edited by
                      #26

                      @KUMAR13 thank you works for me

                      1 Reply Last reply
                      0
                      • K KUMAR13

                        @marbor :
                        export QT_DEBUG_PLUGINS=1
                        ./qtcreator
                        show error: Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library
                        installed : sudo apt-get install --reinstall libxcb-xinerama0
                        this worked for me.
                        after installation: go for this command ./qtcreator

                        J Offline
                        J Offline
                        jurc
                        wrote on last edited by
                        #27

                        @KUMAR13 said in I can't open qtcreator in ubuntu:

                        sudo apt-get install --reinstall libxcb-xinerama0
                        this worked for me.

                        on ubuntu server 20.04
                        sudo apt-get install libxcb-xinerama0
                        worked for me.
                        thx

                        1 Reply Last reply
                        0
                        • L Leon Abascal

                          I experienced the same issue. In the last step, the plugin debug warned me that libxcb-xinerama0 was missing and sudo apt-get install --reinstall libxcb-xinerama0 fixed it.
                          Hope it helps, cheers.

                          S Offline
                          S Offline
                          StanGuo
                          wrote on last edited by
                          #28

                          @Leon-Abascal thank you Leon, now works

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved