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

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qt5qt.qpa.xcbxcb
26 Posts 4 Posters 10.3k 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.
  • hskoglundH hskoglund

    Hi, the good news is that I can read the log, the bad news is that it shows successful launches of Qt Creator (so Qt Creator works fine) but nowhere is textLabel_Ex mentioned :-(

    Y Offline
    Y Offline
    Yash_r
    wrote on last edited by
    #6

    @hskoglund @jsulm @SGaist
    textLabel_Ex is not the only program being affected like this. The error is present while deploying any app to the Beaglebone black.

    Is there anything else that i can do to share some more information which can help you to understand the issue better?

    Regards,
    Yash

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by hskoglund
      #7

      Hi, a log from an unsuccessful launch of any Qt app on the Beaglebone black.

      Y 2 Replies Last reply
      0
      • hskoglundH hskoglund

        Hi, a log from an unsuccessful launch of any Qt app on the Beaglebone black.

        Y Offline
        Y Offline
        Yash_r
        wrote on last edited by Yash_r
        #8

        @hskoglund
        I have a cross-compile setup here, building the Qt apps on an ubuntu 20.04 LTS machine and deploying the built app to the Beaglebone Black (running Debian Bullseye distro) and checking the app working over a vnc connection.

        Also, the app is not running in the qtcreator app, but is copied onto the BBB's /opt/ directory and the app can be executed manually from there.

        @hskoglund said in qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

        a log from an unsuccessful launch of any Qt app on the Beaglebone black.

        So, any particular process on how to get that particular log?

        1 Reply Last reply
        0
        • hskoglundH hskoglund

          Hi, a log from an unsuccessful launch of any Qt app on the Beaglebone black.

          Y Offline
          Y Offline
          Yash_r
          wrote on last edited by
          #9

          @hskoglund @jsulm @SGaist
          Checking to see if anyone can further assist me with this issue as I am not able to debug the code from the Qt creator because of this very issue.

          I would be able to provide any more information needed to better understand the issue.

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

            How many Qt versions do you have on your device ?

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

            Y 1 Reply Last reply
            0
            • SGaistS SGaist

              How many Qt versions do you have on your device ?

              Y Offline
              Y Offline
              Yash_r
              wrote on last edited by
              #11

              @SGaist
              As far as i can see in the Options -> Kits, i have only 5.12.1 version configured for Beaglebone black.
              (29738877-76be-4d6e-808d-fff04f0664e2-image.png

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

                I meant on the device itself.

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

                Y 1 Reply Last reply
                1
                • SGaistS SGaist

                  I meant on the device itself.

                  Y Offline
                  Y Offline
                  Yash_r
                  wrote on last edited by
                  #13

                  @SGaist
                  I am using the latest Debian Bullseye distro which is pretty much the latest available (updated from Debian Buster as a clean install).

                  So, the device is new and only has the Qt5,12,1,

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

                    And it's the one you cross-compiled ?

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

                    Y 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      And it's the one you cross-compiled ?

                      Y Offline
                      Y Offline
                      Yash_r
                      wrote on last edited by
                      #15

                      @SGaist
                      Yes, Qt5.12.1 is the only version i have installed on my PC and using it for cross-compilation to the BBB.

                      Is there something that I am missing or might've messed up?

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

                        When starting directly on the BBB, do you use the same backend ?

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

                        Y 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          When starting directly on the BBB, do you use the same backend ?

                          Y Offline
                          Y Offline
                          Yash_r
                          wrote on last edited by
                          #17

                          @SGaist said in qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

                          do you use the same backend ?

                          Same backend?? Can you tell me what backend is being asked about?

                          @SGaist said in qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:

                          When starting directly on the BBB

                          Also I cannot directly start Qtcreator on BBB, since i don't have it installed on the BBB, and only use the cross-compilation on the ubuntu system to compile and deploy the app to the BBB (and nothing else)....don't know if that makes sense.

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

                            Backed: xcb, eglfs, etc.

                            No need for Qt Creator on your target, I meant literally starting your application on it, for example through the command line.

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

                            Y 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Backed: xcb, eglfs, etc.

                              No need for Qt Creator on your target, I meant literally starting your application on it, for example through the command line.

                              Y Offline
                              Y Offline
                              Yash_r
                              wrote on last edited by
                              #19

                              @SGaist
                              When i run, any app on the target, from the terminal, I see the following output on the terminal:
                              e59ef0f5-fb2a-4b54-a9da-c79c34103a09-image.png

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

                                So it looks like your X server installation is incomplete to run Qt applications with the xcb backend. I would start by fixing that.

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

                                Y 1 Reply Last reply
                                1
                                • SGaistS SGaist

                                  So it looks like your X server installation is incomplete to run Qt applications with the xcb backend. I would start by fixing that.

                                  Y Offline
                                  Y Offline
                                  Yash_r
                                  wrote on last edited by
                                  #21

                                  @SGaist

                                  Can you help me with how to fix the incomplete X server installation? Or help provide some resource which can be helpful?

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • Y Yash_r

                                    @SGaist

                                    Can you help me with how to fix the incomplete X server installation? Or help provide some resource which can be helpful?

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

                                    @Yash_r Install libxcb-xkb1 package on your target device

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

                                    Y 1 Reply Last reply
                                    0
                                    • jsulmJ jsulm

                                      @Yash_r Install libxcb-xkb1 package on your target device

                                      Y Offline
                                      Y Offline
                                      Yash_r
                                      wrote on last edited by Yash_r
                                      #23

                                      @jsulm
                                      That package is already installed according to the apt-install as can be seen in the below image:
                                      deca5e9d-2775-47f2-a1c0-1723b737d0d6-image.png

                                      Also, when i try to run the app (as debian user) from the terminal, i get the following error:
                                      0b37aee9-60d6-40e0-bded-9ec3c3eea984-image.png

                                      jsulmJ 1 Reply Last reply
                                      0
                                      • Y Yash_r

                                        @jsulm
                                        That package is already installed according to the apt-install as can be seen in the below image:
                                        deca5e9d-2775-47f2-a1c0-1723b737d0d6-image.png

                                        Also, when i try to run the app (as debian user) from the terminal, i get the following error:
                                        0b37aee9-60d6-40e0-bded-9ec3c3eea984-image.png

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

                                        @Yash_r Why do you start it with sudo?! By default starting GUI apps with sudo is not allowed for security reasons.

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

                                        Y 1 Reply Last reply
                                        0
                                        • jsulmJ jsulm

                                          @Yash_r Why do you start it with sudo?! By default starting GUI apps with sudo is not allowed for security reasons.

                                          Y Offline
                                          Y Offline
                                          Yash_r
                                          wrote on last edited by Yash_r
                                          #25

                                          @jsulm @SGaist
                                          I tried running the app without the sudo, and i got the same 'XKeyboard' error as below:
                                          e70b31cf-7aad-4cbc-b36c-ac85b1d65967-image.png

                                          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