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. Ubuntu 20.04.02 LTS: QtCreator won't run - load xcb plugin error
Forum Updated to NodeBB v4.3 + New Features

Ubuntu 20.04.02 LTS: QtCreator won't run - load xcb plugin error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 4 Posters 19.2k Views 2 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.
  • idlefrogI Offline
    idlefrogI Offline
    idlefrog
    wrote on last edited by idlefrog
    #1

    Ubuntu 20.04.02 LTS installation Qt6
    I followed the instructions on: https://doc.qt.io/qt-6/linux.html
    Ran the online-installer for Qt.
    Clicking Finish to run QtCreator, I get the error:

    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    

    What should I do?

    raven-worxR 1 Reply Last reply
    0
    • idlefrogI idlefrog

      Ubuntu 20.04.02 LTS installation Qt6
      I followed the instructions on: https://doc.qt.io/qt-6/linux.html
      Ran the online-installer for Qt.
      Clicking Finish to run QtCreator, I get the error:

      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      

      What should I do?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @idlefrog said in Ubuntu 20.04.02 LTS: QtCreator won't run - load xcb plugin error:

      What should I do?

      this error has been answered alot of times in this forum

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • idlefrogI Offline
        idlefrogI Offline
        idlefrog
        wrote on last edited by
        #3

        Yes, there are many posts about the xcb plugin. It clearly is an issue in various scenarios.
        Although non seem to be based on a basic installation on a clean Ubuntu installation.
        It's a fresh Ubuntu 20.04 LTS VM. I've not had this problem before.

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

          Hi,

          As all the other threads mentioned, did you start Qt Creator on the command line with the QT_DEBUG_PLUGINS environment variable set to 1 ?

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

          1 Reply Last reply
          1
          • JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #5

            @idlefrog said in Ubuntu 20.04.02 LTS: QtCreator won't run - load xcb plugin error:

            qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

            https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/13
            old story. It is likely the libxcb-xinerama is not installed.

            1 Reply Last reply
            1
            • idlefrogI Offline
              idlefrogI Offline
              idlefrog
              wrote on last edited by idlefrog
              #6

              @SGaist @JoeCFD Thanks guys... the QT_DEBUG_PLUGINS was the nudge I needed.
              Here's what I had to install to get QtCreator to run on Ubuntu LTS 20.04

              sudo apt update -q
              sudo apt install -y -q build-essential libgl1-mesa-dev
              
              sudo apt install -y -q libxkbcommon-x11-0
              sudo apt install -y -q libxcb-image0
              sudo apt install -y -q libxcb-keysyms1
              sudo apt install -y -q libxcb-render-util0
              sudo apt install -y -q libxcb-xinerama0
              sudo apt install -y -q libxcb-icccm4
              

              Now I can relax again!

              1 Reply Last reply
              2
              • Pl45m4P Pl45m4 referenced this topic on

              • Login

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