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. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

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

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 3 Posters 2.5k Views
  • 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.
  • A Offline
    A Offline
    aurelien13410
    wrote on last edited by
    #1

    Hello,
    I'am just installing Qt Creator on Debian 10. Th installation is successful but when I double click on the shortcut desktop nothing is happening.
    I try to launch the software with a terminal and I have this result :

    aurelien@debian:~$ /home/aurelien/Qt/Tools/QtCreator/bin/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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    
    Abandon
    

    I'have read about this on forum but nothing works.

    Can yo tell me how can I fix this issue please ?

    Regards

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

      Hi and welcome to devnet,

      Start again your application with the QT_DEBUG_PLUGINS environment variable set to 1.

      You'll have information about what is happening with the plugins.

      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
      2
      • A Offline
        A Offline
        aurelien13410
        wrote on last edited by
        #3

        Hi @SGaist ,
        When I do :

        QT_DEBUG_PLUGINS=1
        

        then it's the same result :

        /home/aurelien/Qt/Tools/QtCreator/bin/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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
        
        Abandon
        

        Perhaps it's not the good process to change the QT_DEBUG_PLUGINS environment variable. Sorry, i'm a beginner informatic student :)

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

          How did you do that exactly ?

          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
          0
          • A Offline
            A Offline
            aurelien13410
            wrote on last edited by
            #5

            As I said, I did :

            aurelien@debian:~$ QT_DEBUG_PLUGINS=1
            aurelien@debian:~$ /home/aurelien/Qt/Tools/QtCreator/bin/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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
            
            Abandon
            
            Pablo J. RoginaP 1 Reply Last reply
            0
            • A aurelien13410

              As I said, I did :

              aurelien@debian:~$ QT_DEBUG_PLUGINS=1
              aurelien@debian:~$ /home/aurelien/Qt/Tools/QtCreator/bin/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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
              
              Abandon
              
              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @aurelien13410 does your environment meet the Qt for X11 requirements?

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

                Beside what @Pablo-J-Rogina suggested, you can also run ldd against the xcb plugin that you'll find under the QtCreator folder to see if you are missing something.

                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
                0
                • A Offline
                  A Offline
                  aurelien13410
                  wrote on last edited by
                  #8

                  @Pablo-J-Rogina I have installed all packages with "apt-get install myPackage" and it works ! Thanks you very much for your help !
                  @SGaist thanks you also

                  Pablo J. RoginaP 1 Reply Last reply
                  0
                  • A aurelien13410

                    @Pablo-J-Rogina I have installed all packages with "apt-get install myPackage" and it works ! Thanks you very much for your help !
                    @SGaist thanks you also

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

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

                    it works !

                    Please don't forget to mark your post as solved! and to upvote the answer(s) that have helped you :-)

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    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