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

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 7.9k 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
    #1

    Hello ,
    I deploy my app on RPI3 with Raspbian OS .
    when I try to run my App using XCB plugin I get this error

    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc.
    
    

    there is no XCB plugin .

    What should I do !

    thank you

    JonBJ 1 Reply Last reply
    0
    • D dziko147

      Hello ,
      I deploy my app on RPI3 with Raspbian OS .
      when I try to run my App using XCB plugin I get this error

      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc.
      
      

      there is no XCB plugin .

      What should I do !

      thank you

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

      @dziko147
      This exact question is asked so many times in this forum, you really should search.....

      Set environment variable QT_DEBUG_PLUGINS=1, and look at the end of the diagnostic output.

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

        @JonB When I run

        QT_DEBUG_PLUGINS=1
        

        there is no XCB plugin .

        QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforms" ...
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqeglfs.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "eglfs"
                ]
            },
            "archreq": 0,
            "className": "QEglFSIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        
        Got keys from plugin meta data ("eglfs")
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqlinuxfb.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqlinuxfb.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "linuxfb"
                ]
            },
            "archreq": 0,
            "className": "QLinuxFbIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        
        Got keys from plugin meta data ("linuxfb")
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimal.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimal.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "minimal"
                ]
            },
            "archreq": 0,
            "className": "QMinimalIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        
        Got keys from plugin meta data ("minimal")
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimalegl.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimalegl.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "minimalegl"
                ]
            },
            "archreq": 0,
            "className": "QMinimalEglIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        
        Got keys from plugin meta data ("minimalegl")
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqoffscreen.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqoffscreen.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "offscreen"
                ]
            },
            "archreq": 0,
            "className": "QOffscreenIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        
        Got keys from plugin meta data ("offscreen")
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqvnc.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqvnc.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "vnc"
                ]
            },
            "archreq": 0,
            "className": "QVncIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        
        Got keys from plugin meta data ("vnc")
        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqwebgl.so"
        Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqwebgl.so, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "webgl"
                ]
            },
            "archreq": 0,
            "className": "QWebGLIntegrationPlugin",
            "debug": false,
            "version": 330752
        }
        
        JonBJ 1 Reply Last reply
        0
        • D dziko147

          @JonB When I run

          QT_DEBUG_PLUGINS=1
          

          there is no XCB plugin .

          QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5pi/plugins/platforms" ...
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqeglfs.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqeglfs.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "eglfs"
                  ]
              },
              "archreq": 0,
              "className": "QEglFSIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          
          Got keys from plugin meta data ("eglfs")
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqlinuxfb.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqlinuxfb.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "linuxfb"
                  ]
              },
              "archreq": 0,
              "className": "QLinuxFbIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          
          Got keys from plugin meta data ("linuxfb")
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimal.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimal.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "minimal"
                  ]
              },
              "archreq": 0,
              "className": "QMinimalIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          
          Got keys from plugin meta data ("minimal")
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqminimalegl.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqminimalegl.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "minimalegl"
                  ]
              },
              "archreq": 0,
              "className": "QMinimalEglIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          
          Got keys from plugin meta data ("minimalegl")
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqoffscreen.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqoffscreen.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "offscreen"
                  ]
              },
              "archreq": 0,
              "className": "QOffscreenIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          
          Got keys from plugin meta data ("offscreen")
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqvnc.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqvnc.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "vnc"
                  ]
              },
              "archreq": 0,
              "className": "QVncIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          
          Got keys from plugin meta data ("vnc")
          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5pi/plugins/platforms/libqwebgl.so"
          Found metadata in lib /usr/local/qt5pi/plugins/platforms/libqwebgl.so, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "webgl"
                  ]
              },
              "archreq": 0,
              "className": "QWebGLIntegrationPlugin",
              "debug": false,
              "version": 330752
          }
          
          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @dziko147
          Are you 100% sure you have scrolled all the way to the end of the diagnostic output? You should at least be seeing the original message you quoted, and I don't even see that here....

          1 Reply Last reply
          0
          • 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

                                          • Login

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