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.
  • 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
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 13 Jul 2022, 18:44 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

                      26/26

                      13 Jul 2022, 18:44

                      • Login

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