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.
Forum Updated to NodeBB v4.3 + New Features

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 11.0k 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.
  • H hskoglund
    8 Jul 2022, 14:28

    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 8 Jul 2022, 17:13 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
    • H Offline
      H Offline
      hskoglund
      wrote on 8 Jul 2022, 17:21 last edited by hskoglund 7 Aug 2022, 17:21
      #7

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

      Y 2 Replies Last reply 8 Jul 2022, 17:26
      0
      • H hskoglund
        8 Jul 2022, 17:21

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

        Y Offline
        Y Offline
        Yash_r
        wrote on 8 Jul 2022, 17:26 last edited by Yash_r 7 Aug 2022, 17:41
        #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
        • H hskoglund
          8 Jul 2022, 17:21

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

          Y Offline
          Y Offline
          Yash_r
          wrote on 11 Jul 2022, 18:12 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 11 Jul 2022, 18:25 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 11 Jul 2022, 18:43
            0
            • S SGaist
              11 Jul 2022, 18:25

              How many Qt versions do you have on your device ?

              Y Offline
              Y Offline
              Yash_r
              wrote on 11 Jul 2022, 18:43 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 11 Jul 2022, 19:09 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 11 Jul 2022, 21:27
                1
                • S SGaist
                  11 Jul 2022, 19:09

                  I meant on the device itself.

                  Y Offline
                  Y Offline
                  Yash_r
                  wrote on 11 Jul 2022, 21:27 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
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 11 Jul 2022, 21:29 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 12 Jul 2022, 06:12
                    0
                    • S SGaist
                      11 Jul 2022, 21:29

                      And it's the one you cross-compiled ?

                      Y Offline
                      Y Offline
                      Yash_r
                      wrote on 12 Jul 2022, 06:12 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
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 12 Jul 2022, 17:41 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 12 Jul 2022, 19:03
                        0
                        • S SGaist
                          12 Jul 2022, 17:41

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

                          Y Offline
                          Y Offline
                          Yash_r
                          wrote on 12 Jul 2022, 19:03 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
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 12 Jul 2022, 19:21 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 12 Jul 2022, 20:11
                            0
                            • S SGaist
                              12 Jul 2022, 19:21

                              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 12 Jul 2022, 20:11 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
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 12 Jul 2022, 20:40 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 13 Jul 2022, 06:45
                                1
                                • S SGaist
                                  12 Jul 2022, 20:40

                                  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 13 Jul 2022, 06:45 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?

                                  J 1 Reply Last reply 13 Jul 2022, 06:46
                                  0
                                  • Y Yash_r
                                    13 Jul 2022, 06:45

                                    @SGaist

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

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 13 Jul 2022, 06:46 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 13 Jul 2022, 07:19
                                    0
                                    • J jsulm
                                      13 Jul 2022, 06:46

                                      @Yash_r Install libxcb-xkb1 package on your target device

                                      Y Offline
                                      Y Offline
                                      Yash_r
                                      wrote on 13 Jul 2022, 07:19 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

                                      J 1 Reply Last reply 13 Jul 2022, 07:29
                                      0
                                      • Y Yash_r
                                        13 Jul 2022, 07:19

                                        @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

                                        J Offline
                                        J Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 13 Jul 2022, 07:29 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 13 Jul 2022, 07:52
                                        0
                                        • J jsulm
                                          13 Jul 2022, 07:29

                                          @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 13 Jul 2022, 07:52 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

                                          15/26

                                          12 Jul 2022, 06:12

                                          • Login

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