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.6k 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.
  • 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 Online
                      jsulmJ Online
                      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 Online
                          jsulmJ Online
                          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
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #26

                              It looks like a warning rather than an error per se.

                              You might have to configure something on the X server side.

                              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

                              • Login

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