Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
23 Posts 5 Posters 9.2k 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.
  • D Offline
    D Offline
    dziko147
    wrote on last edited by
    #5

    @JonB yes I checked all the outputs msg and there is not a xcb plugin :/ .

    How can i install it .

    JonBJ 1 Reply Last reply
    0
    • D Offline
      D Offline
      dziko147
      wrote on last edited by
      #6

      @JonB In my target The XCB plugin is absent .
      I have this plugin :

      libqeglfs.so
      libqlinuxfb.so
      libqminimalegl.so
      libqminimal.so
      libqoffscreen.so
      libqvnc.so
      libwebgl.so
      
      
      jsulmJ 1 Reply Last reply
      0
      • D dziko147

        @JonB In my target The XCB plugin is absent .
        I have this plugin :

        libqeglfs.so
        libqlinuxfb.so
        libqminimalegl.so
        libqminimal.so
        libqoffscreen.so
        libqvnc.so
        libwebgl.so
        
        
        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #7

        @dziko147 How did you install Qt there?

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

        1 Reply Last reply
        0
        • D dziko147

          @JonB yes I checked all the outputs msg and there is not a xcb plugin :/ .

          How can i install it .

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #8

          @dziko147
          That would make your case different from every other person who has reported this error message....

          Since your diagnostic output reports no error and has nothing to say about xcb, who knows what might be required?

          Let me verify one thing. Your error occurs when running the app deployed to RPi, right? So to be 100% sure, you are setting the environment variable on the RPi and running the diagnostic there, aren't you??

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dziko147
            wrote on last edited by
            #9

            @JonB Exact . I Set environment variable QT_DEBUG_PLUGINS=1 in Qtcreator .
            @jsulm from source

            jsulmJ 2 Replies Last reply
            0
            • D dziko147

              @JonB Exact . I Set environment variable QT_DEBUG_PLUGINS=1 in Qtcreator .
              @jsulm from source

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

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

              in Qtcreator

              On RPi?

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

              D 1 Reply Last reply
              0
              • D dziko147

                @JonB Exact . I Set environment variable QT_DEBUG_PLUGINS=1 in Qtcreator .
                @jsulm from source

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

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

                from source

                Then probably XCB plug-in was not build because of missing dependencies. You should check config.log file to get more information.

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

                1 Reply Last reply
                0
                • jsulmJ jsulm

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

                  in Qtcreator

                  On RPi?

                  D Offline
                  D Offline
                  dziko147
                  wrote on last edited by
                  #12

                  @jsulm no in Host

                  jsulmJ 1 Reply Last reply
                  0
                  • D dziko147

                    @jsulm no in Host

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

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

                    in Host

                    Do you run your app from QtCreator remotely on your device?

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

                    D 1 Reply Last reply
                    0
                    • jsulmJ jsulm

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

                      in Host

                      Do you run your app from QtCreator remotely on your device?

                      D Offline
                      D Offline
                      dziko147
                      wrote on last edited by
                      #14

                      @jsulm Yes

                      jsulmJ 1 Reply Last reply
                      0
                      • D dziko147

                        @jsulm Yes

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

                        @dziko147 OK, then check config.log from your Qt build to see why XCB plug-in was not enabled.

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

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dziko147
                          wrote on last edited by
                          #16

                          @jsulm you mean in my host machine ?

                          jsulmJ 1 Reply Last reply
                          0
                          • D dziko147

                            @jsulm you mean in my host machine ?

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

                            @dziko147 Yes. I guess you cross compiled Qt on your host machine?

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

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              dziko147
                              wrote on last edited by
                              #18

                              @jsulm exact .
                              I checked my config.log
                              I found this :

                              test config.qtbase_network.tests.openssl11 succeeded
                              looking for library xkbcommon
                              Trying source 0 (type pkgConfig) of library xkbcommon ...
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors xkbcommon '>=' 0.5.0
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --modversion xkbcommon '>=' 0.5.0
                              > 0.8.2
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-L xkbcommon '>=' 0.5.0
                              > -L/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-l xkbcommon '>=' 0.5.0
                              > -lxkbcommon
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --cflags xkbcommon '>=' 0.5.0
                              + cd /home/**/raspi/config.tests/xkbcommon && PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /home/**/raspi/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/**/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/**/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/**/raspi/sysroot" -early "CONFIG += cross_compile" 'QMAKE_USE += xkbcommon' 'QMAKE_LIBS_XKBCOMMON = /home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so' /home/**/raspi/config.tests/xkbcommon
                              + cd /home/**/raspi/config.tests/xkbcommon && MAKEFLAGS= /usr/bin/make
                              > /home/**/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/**/raspi/sysroot --sysroot=/home/**/raspi/sysroot -O2 -std=gnu++11 -w -fPIC  -I. -I/home/**/raspi/qt-everywhere-src-5.12.10/qtbase/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
                              > /home/**/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/**/raspi/sysroot --sysroot=/home/**/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/**/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/**/raspi/sysroot/lib/arm-linux-gnueabihf -o xkbcommon main.o   /home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so   
                               => source accepted.
                              test config.qtbase_gui.libraries.xkbcommon succeeded
                              looking for library xcb
                              Trying source 0 (type pkgConfig) of library xcb ...
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors xcb '>=' 1.9
                              pkg-config did not find package.
                                => source produced no result.
                              Trying source 1 (type inline) of library xcb ...
                              None of [libxcb.so libxcb.a] found in [] and global paths.
                                => source produced no result.
                              test config.qtbase_gui.libraries.xcb FAILED
                              looking for library opengl_es2
                              Trying source 0 (type pkgConfig) of library opengl_es2 ...
                              + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors glesv2
                              pkg-config did not find package.
                                => source produced no result.
                              
                              JKSHJ 1 Reply Last reply
                              0
                              • D dziko147

                                @jsulm exact .
                                I checked my config.log
                                I found this :

                                test config.qtbase_network.tests.openssl11 succeeded
                                looking for library xkbcommon
                                Trying source 0 (type pkgConfig) of library xkbcommon ...
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors xkbcommon '>=' 0.5.0
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --modversion xkbcommon '>=' 0.5.0
                                > 0.8.2
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-L xkbcommon '>=' 0.5.0
                                > -L/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --libs-only-l xkbcommon '>=' 0.5.0
                                > -lxkbcommon
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --cflags xkbcommon '>=' 0.5.0
                                + cd /home/**/raspi/config.tests/xkbcommon && PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /home/**/raspi/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/**/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/**/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/**/raspi/sysroot" -early "CONFIG += cross_compile" 'QMAKE_USE += xkbcommon' 'QMAKE_LIBS_XKBCOMMON = /home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so' /home/**/raspi/config.tests/xkbcommon
                                + cd /home/**/raspi/config.tests/xkbcommon && MAKEFLAGS= /usr/bin/make
                                > /home/**/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/**/raspi/sysroot --sysroot=/home/**/raspi/sysroot -O2 -std=gnu++11 -w -fPIC  -I. -I/home/**/raspi/qt-everywhere-src-5.12.10/qtbase/mkspecs/devices/linux-rasp-pi3-g++ -o main.o main.cpp
                                > /home/**/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/**/raspi/sysroot --sysroot=/home/**/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/**/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/**/raspi/sysroot/lib/arm-linux-gnueabihf -o xkbcommon main.o   /home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so   
                                 => source accepted.
                                test config.qtbase_gui.libraries.xkbcommon succeeded
                                looking for library xcb
                                Trying source 0 (type pkgConfig) of library xcb ...
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors xcb '>=' 1.9
                                pkg-config did not find package.
                                  => source produced no result.
                                Trying source 1 (type inline) of library xcb ...
                                None of [libxcb.so libxcb.a] found in [] and global paths.
                                  => source produced no result.
                                test config.qtbase_gui.libraries.xcb FAILED
                                looking for library opengl_es2
                                Trying source 0 (type pkgConfig) of library opengl_es2 ...
                                + PKG_CONFIG_SYSROOT_DIR=/home/**/raspi/sysroot PKG_CONFIG_LIBDIR=/home/**/raspi/sysroot/usr/lib/pkgconfig:/home/**/raspi/sysroot/usr/share/pkgconfig:/home/**/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors glesv2
                                pkg-config did not find package.
                                  => source produced no result.
                                
                                JKSHJ Offline
                                JKSHJ Offline
                                JKSH
                                Moderators
                                wrote on last edited by
                                #19

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

                                I checked my config.log
                                I found this :

                                What does it say about the xcb library? Does that give you any clues?

                                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dziko147
                                  wrote on last edited by
                                  #20

                                  @JKSH there is no xcb plugin/lib .
                                  So Can I install it independently

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • D dziko147

                                    @JKSH there is no xcb plugin/lib .
                                    So Can I install it independently

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

                                    @dziko147 What @JKSH means (I guess) is this:

                                    None of [libxcb.so libxcb.a] found in [] and global paths
                                    

                                    So, it seems that your sysroot does not contain libxcb and libxcb-dev.
                                    Install that lib package and its dev package in your sysroot and build XCB plug-in.

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

                                    1 Reply Last reply
                                    2
                                    • D Offline
                                      D Offline
                                      dziko147
                                      wrote on last edited by
                                      #22

                                      @jsulm there is no tutoriel or example to use it ?

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

                                        Hi,

                                        The usual way is to install all the dependencies dev packages on your target and copy the root file system back on your host machine for use with your cross-compiler.

                                        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
                                        1

                                        • Login

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