Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    3
    9
    2005
    Loading More Posts
    • 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
      aurelien13410 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 2
        • A
          aurelien13410 last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • A
              aurelien13410 last edited by

              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. Rogina 1 Reply Last reply Reply Quote 0
              • Pablo J. Rogina
                Pablo J. Rogina @aurelien13410 last edited by

                @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 Reply Quote 1
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  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 Reply Quote 0
                  • A
                    aurelien13410 last edited by

                    @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. Rogina 1 Reply Last reply Reply Quote 0
                    • Pablo J. Rogina
                      Pablo J. Rogina @aurelien13410 last edited by

                      @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 Reply Quote 0
                      • First post
                        Last post