Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  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 Solved Qt 6
32 Posts 12 Posters 99.3k 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.
  • C CuriousPan

    @JKSH, I entered the required command and here's the output I got

    curiouspan@curiouspan-VirtualBox:~$ ldd /home/curiouspan/qt6-build/qtbase/plugins/platforms/libqxcb.so
    	linux-vdso.so.1 (0x00007fffc8770000)
    	libQt6XcbQpa.so.6 => not found
    	libQt6Gui.so.6 => /home/curiouspan/qt6-build/qtbase/plugins/platforms/../../lib/libQt6Gui.so.6 (0x00007f0873306000)
    	libQt6Core.so.6 => /home/curiouspan/qt6-build/qtbase/plugins/platforms/../../lib/libQt6Core.so.6 (0x00007f087295d000)
    	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f087277c000)
    	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f087258a000)
    	libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f0872573000)
    	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0872436000)
    	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0872430000)
    	libQt6DBus.so.6 => /home/curiouspan/qt6-build/qtbase/plugins/platforms/../../lib/libQt6DBus.so.6 (0x00007f0872262000)
    	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f087222e000)
    	libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f0872202000)
    	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f08721dd000)
    	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f087208e000)
    	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0872073000)
    	/lib64/ld-linux-x86-64.so.2 (0x00007f08742b7000)
    	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f0871fbb000)
    	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0871f91000)
    	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f0871f89000)
    	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0871f81000)
    	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f0871f67000)
    
    

    How can I install this libQt6XcbQpa.so.6?

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

    @CuriousPan
    @JKSH asked you to look at your configure log to see what you had set to build, since you are building Qt6 yourself, not downloading it.

    C 1 Reply Last reply
    0
    • C CuriousPan

      @JKSH, I entered the required command and here's the output I got

      curiouspan@curiouspan-VirtualBox:~$ ldd /home/curiouspan/qt6-build/qtbase/plugins/platforms/libqxcb.so
      	linux-vdso.so.1 (0x00007fffc8770000)
      	libQt6XcbQpa.so.6 => not found
      	libQt6Gui.so.6 => /home/curiouspan/qt6-build/qtbase/plugins/platforms/../../lib/libQt6Gui.so.6 (0x00007f0873306000)
      	libQt6Core.so.6 => /home/curiouspan/qt6-build/qtbase/plugins/platforms/../../lib/libQt6Core.so.6 (0x00007f087295d000)
      	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f087277c000)
      	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f087258a000)
      	libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f0872573000)
      	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0872436000)
      	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0872430000)
      	libQt6DBus.so.6 => /home/curiouspan/qt6-build/qtbase/plugins/platforms/../../lib/libQt6DBus.so.6 (0x00007f0872262000)
      	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f087222e000)
      	libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f0872202000)
      	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f08721dd000)
      	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f087208e000)
      	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0872073000)
      	/lib64/ld-linux-x86-64.so.2 (0x00007f08742b7000)
      	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f0871fbb000)
      	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0871f91000)
      	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f0871f89000)
      	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0871f81000)
      	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f0871f67000)
      
      

      How can I install this libQt6XcbQpa.so.6?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #14

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

      How can I install this libQt6XcbQpa.so.6?

      This is part of Qt.

      Since your build was missing libQt6XcbQpa.so and libqxcb.so, it probably means your system did not fulfil the requirements to build Qt's XCB plugin (again, check your configure log)

      You might be able to get a copy of libQt6XcbQpa.so from your colleague, but it would be better to find out why it didn't build in the first place.

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

      C 1 Reply Last reply
      2
      • JKSHJ JKSH

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

        How can I install this libQt6XcbQpa.so.6?

        This is part of Qt.

        Since your build was missing libQt6XcbQpa.so and libqxcb.so, it probably means your system did not fulfil the requirements to build Qt's XCB plugin (again, check your configure log)

        You might be able to get a copy of libQt6XcbQpa.so from your colleague, but it would be better to find out why it didn't build in the first place.

        C Offline
        C Offline
        CuriousPan
        wrote on last edited by CuriousPan
        #15

        @JKSH Where this file should be located? My collegue cannot find it.

        1 Reply Last reply
        0
        • JonBJ JonB

          @CuriousPan
          @JKSH asked you to look at your configure log to see what you had set to build, since you are building Qt6 yourself, not downloading it.

          C Offline
          C Offline
          CuriousPan
          wrote on last edited by
          #16

          @JonB, how can I see configure log? Is there some log file?

          jsulmJ 1 Reply Last reply
          0
          • C CuriousPan

            @JonB, how can I see configure log? Is there some log file?

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

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

            how can I see configure log? Is there some log file?

            Its config.log text file in the folder where you called configure...

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

            C 1 Reply Last reply
            1
            • jsulmJ jsulm

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

              how can I see configure log? Is there some log file?

              Its config.log text file in the folder where you called configure...

              C Offline
              C Offline
              CuriousPan
              wrote on last edited by
              #18

              @jsulm, undertood. Anyway, do you know where the mentioned libQt6XcbQpa.so can be located? My collegue cannot find it.

              1 Reply Last reply
              0
              • JKSHJ JKSH

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

                @JKSH How can I do it?

                When you ran the configure script at the start, it should have produced some log files. Have a look at the logs.

                C Offline
                C Offline
                CuriousPan
                wrote on last edited by
                #19

                @jsulm, Hello.
                I have found configure.summary file. Here's the content for it. Is this what you meant?

                Building for: linux-g++ (x86_64, CPU features: mmx sse sse2)
                Compiler: gcc 9.3.0
                Build options:
                  Mode ................................... debug
                  Optimize debug build ................... no
                  Fully optimize release builds (-O3) .... no
                  Building shared libraries .............. yes
                  Using C standard ....................... C11
                  Using C++ standard ..................... C++17
                  Using ccache ........................... no
                  Using new DTAGS ........................ yes
                  Generating GDB index ................... no
                  Relocatable ............................ yes
                  Using precompiled headers .............. yes
                  Using LTCG ............................. no
                  Target compiler supports:
                    SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
                    AVX .................................. AVX AVX2
                    AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
                    Other x86 ............................ AES F16C RDRAND SHA
                    Intrinsics without compiler architecture option  yes
                  Sanitizers:
                    Addresses ............................ no
                    Threads .............................. no
                    Memory ............................... no
                    Fuzzer (instrumentation only) ........ no
                    Undefined ............................ no
                  Build parts ............................ libs tools
                Qt modules and options:
                  Qt Concurrent .......................... yes
                  Qt D-Bus ............................... yes
                  Qt D-Bus directly linked to libdbus .... no
                  Qt Gui ................................. yes
                  Qt Network ............................. yes
                  Qt Sql ................................. yes
                  Qt Testlib ............................. yes
                  Qt Widgets ............................. yes
                  Qt Xml ................................. yes
                Support enabled for:
                  Using pkg-config ....................... yes
                  udev ................................... no
                  Using system zlib ...................... no
                  Zstandard support ...................... no
                  Thread support ......................... yes
                Qt Core:
                  backtrace .............................. yes
                  DoubleConversion ....................... yes
                    Using system DoubleConversion ........ no
                  GLib ................................... no
                  ICU .................................... no
                  Using system libb2 ..................... no
                  Built-in copy of the MIME database ..... yes
                  Tracing backend ........................ <none>
                  Logging backends:
                    journald ............................. no
                    syslog ............................... no
                    slog2 ................................ no
                  PCRE2 .................................. yes
                    Using system PCRE2 ................... no
                  CLONE_PIDFD support in forkfd .......... yes
                Qt Sql:
                  SQL item models ........................ yes
                Qt Network:
                  getifaddrs() ........................... yes
                  IPv6 ifname ............................ yes
                  libproxy ............................... no
                  Linux AF_NETLINK ....................... yes
                  OpenSSL ................................ no
                    Qt directly linked to OpenSSL ........ no
                  OpenSSL 1.1 ............................ no
                  DTLS ................................... no
                  OCSP-stapling .......................... no
                  SCTP ................................... no
                  Use system proxies ..................... yes
                  GSSAPI ................................. no
                  Brotli Decompression Support ........... no
                Qt Gui:
                  Accessibility .......................... yes
                  FreeType ............................... yes
                    Using system FreeType ................ no
                  HarfBuzz ............................... yes
                    Using system HarfBuzz ................ no
                  Fontconfig ............................. no
                  Image formats:
                    GIF .................................. yes
                    ICO .................................. yes
                    JPEG ................................. yes
                      Using system libjpeg ............... no
                    PNG .................................. yes
                      Using system libpng ................ no
                  Text formats:
                    HtmlParser ........................... yes
                    CssParser ............................ yes
                    OdfWriter ............................ yes
                    MarkdownReader ....................... yes
                      Using system libmd4c ............... no
                    MarkdownWriter ....................... yes
                  EGL .................................... yes
                  OpenVG ................................. no
                  OpenGL:
                    Desktop OpenGL ....................... yes
                    OpenGL ES 2.0 ........................ no
                    OpenGL ES 3.0 ........................ no
                    OpenGL ES 3.1 ........................ no
                    OpenGL ES 3.2 ........................ no
                  Vulkan ................................. no
                  Session Management ..................... yes
                Features used by QPA backends:
                  evdev .................................. yes
                  libinput ............................... no
                  INTEGRITY HID .......................... no
                  mtdev .................................. no
                  tslib .................................. no
                  xkbcommon .............................. no
                  X11 specific:
                    XLib ................................. yes
                    XCB Xlib ............................. no
                    EGL on X11 ........................... yes
                    xkbcommon-x11 ........................ no
                QPA backends:
                  DirectFB ............................... no
                  EGLFS .................................. yes
                  EGLFS details:
                    EGLFS OpenWFD ........................ no
                    EGLFS i.Mx6 .......................... no
                    EGLFS i.Mx6 Wayland .................. no
                    EGLFS RCAR ........................... no
                    EGLFS EGLDevice ...................... no
                    EGLFS GBM ............................ no
                    EGLFS VSP2 ........................... no
                    EGLFS Mali ........................... no
                    EGLFS Raspberry Pi ................... no
                    EGLFS X11 ............................ no
                  LinuxFB ................................ yes
                  VNC .................................... yes
                  VK_KHR_display ......................... no
                  QNX:
                    lgmon ................................ no
                    IMF .................................. no
                  XCB:
                    Using system-provided xcb-xinput ..... no
                    GL integrations:
                      GLX Plugin ......................... no
                        XCB GLX .......................... no
                      EGL-X11 Plugin ..................... yes
                  Windows:
                    Direct 2D ............................ no
                    Direct 2D 1.1 ........................ no
                    DirectWrite .......................... no
                    DirectWrite 3 ........................ no
                Qt Widgets:
                  GTK+ ................................... no
                  Styles ................................. Fusion Windows
                Qt Testlib:
                  Tester for item models ................. yes
                Qt PrintSupport:
                  CUPS ................................... no
                Qt Sql Drivers:
                  DB2 (IBM) .............................. no
                  InterBase .............................. no
                  MySql .................................. no
                  OCI (Oracle) ........................... no
                  ODBC ................................... no
                  PostgreSQL ............................. no
                  SQLite ................................. yes
                    Using system provided SQLite ......... no
                Core tools:
                  qmake tool ............................. yes
                Qt QML:
                  QML network support .................... yes
                  QML debugging and profiling support .... yes
                  QML just-in-time compiler .............. yes
                  QML sequence object .................... yes
                  QML XML http request ................... yes
                  QML Locale ............................. yes
                Qt QML Models:
                  QML list model ......................... yes
                  QML delegate model ..................... yes
                Qt Quick:
                  AnimatedImage item ..................... yes
                  Canvas item ............................ yes
                  Support for Qt Quick Designer .......... yes
                  Flipable item .......................... yes
                  GridView item .......................... yes
                  ListView item .......................... yes
                  TableView item ......................... yes
                  Path support ........................... yes
                  PathView item .......................... yes
                  Positioner items ....................... yes
                  Repeater item .......................... yes
                  ShaderEffect item ...................... yes
                  Sprite item ............................ yes
                Qt Quick Templates 2:
                  Hover support .......................... yes
                  Multi-touch support .................... yes
                Qt Quick Controls 2:
                  Styles ................................. Basic Fusion Imagine Material Universal macOS Windows
                
                JKSHJ 1 Reply Last reply
                0
                • C CuriousPan

                  @jsulm, Hello.
                  I have found configure.summary file. Here's the content for it. Is this what you meant?

                  Building for: linux-g++ (x86_64, CPU features: mmx sse sse2)
                  Compiler: gcc 9.3.0
                  Build options:
                    Mode ................................... debug
                    Optimize debug build ................... no
                    Fully optimize release builds (-O3) .... no
                    Building shared libraries .............. yes
                    Using C standard ....................... C11
                    Using C++ standard ..................... C++17
                    Using ccache ........................... no
                    Using new DTAGS ........................ yes
                    Generating GDB index ................... no
                    Relocatable ............................ yes
                    Using precompiled headers .............. yes
                    Using LTCG ............................. no
                    Target compiler supports:
                      SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
                      AVX .................................. AVX AVX2
                      AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
                      Other x86 ............................ AES F16C RDRAND SHA
                      Intrinsics without compiler architecture option  yes
                    Sanitizers:
                      Addresses ............................ no
                      Threads .............................. no
                      Memory ............................... no
                      Fuzzer (instrumentation only) ........ no
                      Undefined ............................ no
                    Build parts ............................ libs tools
                  Qt modules and options:
                    Qt Concurrent .......................... yes
                    Qt D-Bus ............................... yes
                    Qt D-Bus directly linked to libdbus .... no
                    Qt Gui ................................. yes
                    Qt Network ............................. yes
                    Qt Sql ................................. yes
                    Qt Testlib ............................. yes
                    Qt Widgets ............................. yes
                    Qt Xml ................................. yes
                  Support enabled for:
                    Using pkg-config ....................... yes
                    udev ................................... no
                    Using system zlib ...................... no
                    Zstandard support ...................... no
                    Thread support ......................... yes
                  Qt Core:
                    backtrace .............................. yes
                    DoubleConversion ....................... yes
                      Using system DoubleConversion ........ no
                    GLib ................................... no
                    ICU .................................... no
                    Using system libb2 ..................... no
                    Built-in copy of the MIME database ..... yes
                    Tracing backend ........................ <none>
                    Logging backends:
                      journald ............................. no
                      syslog ............................... no
                      slog2 ................................ no
                    PCRE2 .................................. yes
                      Using system PCRE2 ................... no
                    CLONE_PIDFD support in forkfd .......... yes
                  Qt Sql:
                    SQL item models ........................ yes
                  Qt Network:
                    getifaddrs() ........................... yes
                    IPv6 ifname ............................ yes
                    libproxy ............................... no
                    Linux AF_NETLINK ....................... yes
                    OpenSSL ................................ no
                      Qt directly linked to OpenSSL ........ no
                    OpenSSL 1.1 ............................ no
                    DTLS ................................... no
                    OCSP-stapling .......................... no
                    SCTP ................................... no
                    Use system proxies ..................... yes
                    GSSAPI ................................. no
                    Brotli Decompression Support ........... no
                  Qt Gui:
                    Accessibility .......................... yes
                    FreeType ............................... yes
                      Using system FreeType ................ no
                    HarfBuzz ............................... yes
                      Using system HarfBuzz ................ no
                    Fontconfig ............................. no
                    Image formats:
                      GIF .................................. yes
                      ICO .................................. yes
                      JPEG ................................. yes
                        Using system libjpeg ............... no
                      PNG .................................. yes
                        Using system libpng ................ no
                    Text formats:
                      HtmlParser ........................... yes
                      CssParser ............................ yes
                      OdfWriter ............................ yes
                      MarkdownReader ....................... yes
                        Using system libmd4c ............... no
                      MarkdownWriter ....................... yes
                    EGL .................................... yes
                    OpenVG ................................. no
                    OpenGL:
                      Desktop OpenGL ....................... yes
                      OpenGL ES 2.0 ........................ no
                      OpenGL ES 3.0 ........................ no
                      OpenGL ES 3.1 ........................ no
                      OpenGL ES 3.2 ........................ no
                    Vulkan ................................. no
                    Session Management ..................... yes
                  Features used by QPA backends:
                    evdev .................................. yes
                    libinput ............................... no
                    INTEGRITY HID .......................... no
                    mtdev .................................. no
                    tslib .................................. no
                    xkbcommon .............................. no
                    X11 specific:
                      XLib ................................. yes
                      XCB Xlib ............................. no
                      EGL on X11 ........................... yes
                      xkbcommon-x11 ........................ no
                  QPA backends:
                    DirectFB ............................... no
                    EGLFS .................................. yes
                    EGLFS details:
                      EGLFS OpenWFD ........................ no
                      EGLFS i.Mx6 .......................... no
                      EGLFS i.Mx6 Wayland .................. no
                      EGLFS RCAR ........................... no
                      EGLFS EGLDevice ...................... no
                      EGLFS GBM ............................ no
                      EGLFS VSP2 ........................... no
                      EGLFS Mali ........................... no
                      EGLFS Raspberry Pi ................... no
                      EGLFS X11 ............................ no
                    LinuxFB ................................ yes
                    VNC .................................... yes
                    VK_KHR_display ......................... no
                    QNX:
                      lgmon ................................ no
                      IMF .................................. no
                    XCB:
                      Using system-provided xcb-xinput ..... no
                      GL integrations:
                        GLX Plugin ......................... no
                          XCB GLX .......................... no
                        EGL-X11 Plugin ..................... yes
                    Windows:
                      Direct 2D ............................ no
                      Direct 2D 1.1 ........................ no
                      DirectWrite .......................... no
                      DirectWrite 3 ........................ no
                  Qt Widgets:
                    GTK+ ................................... no
                    Styles ................................. Fusion Windows
                  Qt Testlib:
                    Tester for item models ................. yes
                  Qt PrintSupport:
                    CUPS ................................... no
                  Qt Sql Drivers:
                    DB2 (IBM) .............................. no
                    InterBase .............................. no
                    MySql .................................. no
                    OCI (Oracle) ........................... no
                    ODBC ................................... no
                    PostgreSQL ............................. no
                    SQLite ................................. yes
                      Using system provided SQLite ......... no
                  Core tools:
                    qmake tool ............................. yes
                  Qt QML:
                    QML network support .................... yes
                    QML debugging and profiling support .... yes
                    QML just-in-time compiler .............. yes
                    QML sequence object .................... yes
                    QML XML http request ................... yes
                    QML Locale ............................. yes
                  Qt QML Models:
                    QML list model ......................... yes
                    QML delegate model ..................... yes
                  Qt Quick:
                    AnimatedImage item ..................... yes
                    Canvas item ............................ yes
                    Support for Qt Quick Designer .......... yes
                    Flipable item .......................... yes
                    GridView item .......................... yes
                    ListView item .......................... yes
                    TableView item ......................... yes
                    Path support ........................... yes
                    PathView item .......................... yes
                    Positioner items ....................... yes
                    Repeater item .......................... yes
                    ShaderEffect item ...................... yes
                    Sprite item ............................ yes
                  Qt Quick Templates 2:
                    Hover support .......................... yes
                    Multi-touch support .................... yes
                  Qt Quick Controls 2:
                    Styles ................................. Basic Fusion Imagine Material Universal macOS Windows
                  
                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #20

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

                  Features used by QPA backends:
                  ...
                    xkbcommon .............................. no
                    X11 specific:
                      XLib ................................. yes
                      XCB Xlib ............................. no
                      EGL on X11 ........................... yes
                      xkbcommon-x11 ........................ no
                  ...
                  QPA backends:
                  ...
                    XCB:
                      Using system-provided xcb-xinput ..... no
                      GL integrations:
                        GLX Plugin ......................... no
                          XCB GLX .......................... no
                        EGL-X11 Plugin ..................... yes
                  

                  You need "yes" on all of these. "no" means you were missing the dependencies.

                  You should:

                  1. Clean out your build tree (i.e. delete all files that were not part of the original source code)
                  2. Install all the dependencies for Ubuntu at https://wiki.qt.io/Building_Qt_5_from_Git (pay particular attention to the "Libxcb" section)
                  3. Run configure again. Make sure you get "yes" on all of the above.
                  4. Run make to build Qt.

                  You should now have all the XCB-related libraries.

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

                  C 1 Reply Last reply
                  2
                  • JKSHJ JKSH

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

                    Features used by QPA backends:
                    ...
                      xkbcommon .............................. no
                      X11 specific:
                        XLib ................................. yes
                        XCB Xlib ............................. no
                        EGL on X11 ........................... yes
                        xkbcommon-x11 ........................ no
                    ...
                    QPA backends:
                    ...
                      XCB:
                        Using system-provided xcb-xinput ..... no
                        GL integrations:
                          GLX Plugin ......................... no
                            XCB GLX .......................... no
                          EGL-X11 Plugin ..................... yes
                    

                    You need "yes" on all of these. "no" means you were missing the dependencies.

                    You should:

                    1. Clean out your build tree (i.e. delete all files that were not part of the original source code)
                    2. Install all the dependencies for Ubuntu at https://wiki.qt.io/Building_Qt_5_from_Git (pay particular attention to the "Libxcb" section)
                    3. Run configure again. Make sure you get "yes" on all of the above.
                    4. Run make to build Qt.

                    You should now have all the XCB-related libraries.

                    C Offline
                    C Offline
                    CuriousPan
                    wrote on last edited by
                    #21

                    @JKSH, thank you for response. I will try mentioned steps. But is it relevant for Qt6 too?

                    JKSHJ 1 Reply Last reply
                    0
                    • C CuriousPan

                      @JKSH, thank you for response. I will try mentioned steps. But is it relevant for Qt6 too?

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #22

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

                      @JKSH, thank you for response. I will try mentioned steps. But is it relevant for Qt6 too?

                      You're welcome.

                      Yes, I believe the XCB requirements for Qt 5 and Qt 6 are very similar (or even identical)

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

                      C 1 Reply Last reply
                      3
                      • JKSHJ JKSH

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

                        @JKSH, thank you for response. I will try mentioned steps. But is it relevant for Qt6 too?

                        You're welcome.

                        Yes, I believe the XCB requirements for Qt 5 and Qt 6 are very similar (or even identical)

                        C Offline
                        C Offline
                        CuriousPan
                        wrote on last edited by
                        #23

                        @JKSH, thank you for your help. Your advice solved my problems. Steps from the link installed dependencies properly and now everything runs perfectly.

                        1 Reply Last reply
                        0
                        • Z Offline
                          Z Offline
                          Zayn
                          wrote on last edited by
                          #24

                          Dears,
                          Could you please help? I'm trying to open turtlesim on my Unbutu 20.04 that I installed on my windows10 computer from the Microsoft store and that is what I'm getting

                          rosrun turtlesim turtlesim_node
                          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.
                          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, xcb.

                          Aborted (core dumped)

                          JKSHJ C 2 Replies Last reply
                          0
                          • Z Zayn

                            Dears,
                            Could you please help? I'm trying to open turtlesim on my Unbutu 20.04 that I installed on my windows10 computer from the Microsoft store and that is what I'm getting

                            rosrun turtlesim turtlesim_node
                            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.
                            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, xcb.

                            Aborted (core dumped)

                            JKSHJ Offline
                            JKSHJ Offline
                            JKSH
                            Moderators
                            wrote on last edited by
                            #25

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

                            Unbutu 20.04 that I installed on my windows10 computer from the Microsoft store

                            The Windows Subsystem for Linux does not support GUIs. So you cannot run any apps that need XCB.

                            You have 2 options:

                            • Install a full Ubuntu desktop instead, either on a physical machine or a virtual machine.
                            • Wait until WSLg is released to the general public: https://devblogs.microsoft.com/commandline/the-initial-preview-of-gui-app-support-is-now-available-for-the-windows-subsystem-for-linux-2/

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

                            Z 1 Reply Last reply
                            1
                            • JKSHJ JKSH

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

                              Unbutu 20.04 that I installed on my windows10 computer from the Microsoft store

                              The Windows Subsystem for Linux does not support GUIs. So you cannot run any apps that need XCB.

                              You have 2 options:

                              • Install a full Ubuntu desktop instead, either on a physical machine or a virtual machine.
                              • Wait until WSLg is released to the general public: https://devblogs.microsoft.com/commandline/the-initial-preview-of-gui-app-support-is-now-available-for-the-windows-subsystem-for-linux-2/
                              Z Offline
                              Z Offline
                              Zayn
                              wrote on last edited by
                              #26

                              @JKSH Many thanks

                              1 Reply Last reply
                              0
                              • Z Zayn

                                Dears,
                                Could you please help? I'm trying to open turtlesim on my Unbutu 20.04 that I installed on my windows10 computer from the Microsoft store and that is what I'm getting

                                rosrun turtlesim turtlesim_node
                                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.
                                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, xcb.

                                Aborted (core dumped)

                                C Offline
                                C Offline
                                corebonts
                                wrote on last edited by
                                #27

                                @Zayn
                                I had the same problem running p4merge on WSL2

                                First, what you have to do is to install an xserver on windows, like VcXSrv.
                                Then create a shortcut for the xserver (optional)

                                "C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
                                

                                Then in Ubuntu set the xserver display in ~/.bashrc

                                export DISPLAY=$(ip route | awk '{print $3; exit}'):0
                                export LIBGL_ALWAYS_INDIRECT=1
                                export XCURSOR_SIZE=16
                                

                                Then install the xcb dependency (found at https://wiki.qt.io/Building_Qt_5_from_Git )

                                sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
                                

                                Maybe from the last not everything is really needed, but after that it worked for me.

                                H M 2 Replies Last reply
                                1
                                • G gaoyiqin95 referenced this topic on
                                • C corebonts

                                  @Zayn
                                  I had the same problem running p4merge on WSL2

                                  First, what you have to do is to install an xserver on windows, like VcXSrv.
                                  Then create a shortcut for the xserver (optional)

                                  "C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
                                  

                                  Then in Ubuntu set the xserver display in ~/.bashrc

                                  export DISPLAY=$(ip route | awk '{print $3; exit}'):0
                                  export LIBGL_ALWAYS_INDIRECT=1
                                  export XCURSOR_SIZE=16
                                  

                                  Then install the xcb dependency (found at https://wiki.qt.io/Building_Qt_5_from_Git )

                                  sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
                                  

                                  Maybe from the last not everything is really needed, but after that it worked for me.

                                  H Offline
                                  H Offline
                                  homer9
                                  wrote on last edited by
                                  #28

                                  @corebonts Thanks ! That's solves the issue

                                  JKSHJ 1 Reply Last reply
                                  0
                                  • H homer9

                                    @corebonts Thanks ! That's solves the issue

                                    JKSHJ Offline
                                    JKSHJ Offline
                                    JKSH
                                    Moderators
                                    wrote on last edited by JKSH
                                    #29

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

                                    @corebonts Thanks ! That's solves the issue

                                    The workaround posted by @corebonts should no longer be needed. WSL2 now supports GUIs out-of-the-box: https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

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

                                    1 Reply Last reply
                                    1
                                    • N Offline
                                      N Offline
                                      NicolasZ
                                      wrote on last edited by NicolasZ
                                      #30

                                      @corebonts thx for your solution, solved for me now

                                      1 Reply Last reply
                                      0
                                      • C CPPUIX referenced this topic on
                                      • C corebonts

                                        @Zayn
                                        I had the same problem running p4merge on WSL2

                                        First, what you have to do is to install an xserver on windows, like VcXSrv.
                                        Then create a shortcut for the xserver (optional)

                                        "C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
                                        

                                        Then in Ubuntu set the xserver display in ~/.bashrc

                                        export DISPLAY=$(ip route | awk '{print $3; exit}'):0
                                        export LIBGL_ALWAYS_INDIRECT=1
                                        export XCURSOR_SIZE=16
                                        

                                        Then install the xcb dependency (found at https://wiki.qt.io/Building_Qt_5_from_Git )

                                        sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
                                        

                                        Maybe from the last not everything is really needed, but after that it worked for me.

                                        M Offline
                                        M Offline
                                        mannan_khan
                                        wrote on last edited by
                                        #31

                                        @corebonts Thanks a lot brother it worked for me.

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          Anuj Srivastava
                                          wrote on last edited by
                                          #32

                                          Thanks corebonts the solution to install '^libxcb' worked for me my application is running smoothly in ubuntu

                                          1 Reply Last reply
                                          0
                                          • MassiM Massi referenced this topic on

                                          • Login

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