Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Built Qt6 from sources, problem with xcb plugin
Forum Updated to NodeBB v4.3 + New Features

Built Qt6 from sources, problem with xcb plugin

Scheduled Pinned Locked Moved Solved Installation and Deployment
qt6xcb
19 Posts 4 Posters 8.4k Views 1 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.
  • M mnesarco

    Hi Friends, There is another topic about this but it is old and does not provide a solution, so I ask here for some help:

    I have compiled Qt6 on Linux Mint 19, but the QPA plugin for xcb is not generated, so my App does not run.

    This is my configure summary:

    Configure summary:
    
    Building for: linux-clang (x86_64, CPU features: mmx sse sse2)
    Compiler: clang 11.0.1
    Build options:
      Mode ................................... debug
      Fully optimize release builds (-O3) .... no
      Building shared libraries .............. yes
      Using C standard ....................... C11
      Using C++ standard ..................... C++17
      Using ccache ........................... no
      enable_new_dtags ....................... 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 ............................ F16C RDRAND
        Intrinsics without -mXXX 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 .... yes
      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 ................................... yes
      Using system zlib ...................... yes
      Zstandard support ...................... no
    Qt Core:
      DoubleConversion ....................... yes
        Using system DoubleConversion ........ no
      GLib ................................... yes
      ICU .................................... yes
      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 ................................ yes
        Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ yes
      DTLS ................................... yes
      OCSP-stapling .......................... yes
      SCTP ................................... no
      Use system proxies ..................... yes
      GSSAPI ................................. no
      Brotli Decompression Support ........... no
    Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
        Using system FreeType ................ yes
      HarfBuzz ............................... yes
        Using system HarfBuzz ................ no
      Fontconfig ............................. yes
      Image formats:
        GIF .................................. yes
        ICO .................................. yes
        JPEG ................................. yes
          Using system libjpeg ............... no
        PNG .................................. yes
          Using system libpng ................ yes
      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 .............................. yes
      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 ...................... yes
        EGLFS GBM ............................ no
        EGLFS VSP2 ........................... no
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no
        EGLFS X11 ............................ no
      LinuxFB ................................ yes
      VNC .................................... yes
      QNX:
        lgmon ................................ no
        IMF .................................. no
      XCB:
        Using system-provided xcb-xinput ..... no
        Native painting (experimental) ....... no
        GL integrations:
          GLX Plugin ......................... no
            XCB GLX .......................... no
          EGL-X11 Plugin ..................... no
      Windows:
        Direct 2D ............................ no
        Direct 2D 1.1 ........................ no
        DirectWrite .......................... no
        DirectWrite 3 ........................ no
    Qt Widgets:
      GTK+ ................................... yes
      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 ............................. yes
      SQLite ................................. yes
        Using system provided SQLite ......... no
    Qt 5 Compatibility Libraries:
      iconv .................................. no
    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 Tools:
      Qt Assistant ........................... yes
      QDoc ................................... no
      Clang-based lupdate parser ............. no
      Qt Designer ............................ yes
      Qt Distance Field Generator ............ yes
      kmap2qmap .............................. yes
      Qt Linguist ............................ yes
      Mac Deployment Tool .................... no
      pixeltool .............................. yes
      qdbus .................................. yes
      qev .................................... yes
      Qt Attributions Scanner ................ yes
      qtdiag ................................. yes
      qtpaths ................................ yes
      qtplugininfo ........................... yes
      Windows deployment tool ................ no
    Qt Quick Templates 2:
      Hover support .......................... yes
      Multi-touch support .................... yes
    Qt Quick Controls 2:
      Styles ................................. Basic Fusion Imagine Material Universal macOS Windows
    QtQuick3D:
      Assimp ................................. yes
      System Assimp .......................... no
    
    

    All libxcb*-dev libcxb* packages are installed an detected by configure script, but it appears to be not recognized in the summary.

    Thanks in adavance for any help.

    Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #8

    @mnesarco said in Built Qt6 from sources, problem with xcb plugin:

    XCB Xlib ............................. no

    Apart from what you're saying but it looks like some of the required xcb stuff is not found.

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    M 1 Reply Last reply
    1
    • Christian EhrlicherC Christian Ehrlicher

      @mnesarco said in Built Qt6 from sources, problem with xcb plugin:

      XCB Xlib ............................. no

      Apart from what you're saying but it looks like some of the required xcb stuff is not found.

      M Offline
      M Offline
      mnesarco
      wrote on last edited by
      #9

      @Christian-Ehrlicher It is obvious, some xcb stuff is not found, the question is what. Because ./configure reports a lot of crap like this:

      -- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-lin...
      
      1 Reply Last reply
      0
      • M Offline
        M Offline
        mnesarco
        wrote on last edited by
        #10

        I have found CMakeError.log and CMakeOutput.log, they have a lot of things but nothing related with xcb.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #11

          According to the config file XCB xlib needs:

                  "xcb_xlib": {
                      "label": "XCB Xlib",
                      "test": {
                          "main": "(void) XGetXCBConnection((Display *)0);"
                      },
                      "headers": "X11/Xlib-xcb.h",
                      "sources": [
                          { "type": "pkgConfig", "args": "x11-xcb" },
                          "-lX11-xcb"
                      ],
                      "use": "xcb xlib"
          

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • M Offline
            M Offline
            mnesarco
            wrote on last edited by
            #12

            It is installed:

            ➜  qtbase dpkg -la | grep Xlib
            ii  libx11-xcb-dev:amd64                       2:1.6.4-3ubuntu0.3                                              amd64        Xlib/XCB interface library (development headers)
            ii  libx11-xcb1:amd64                          2:1.6.4-3ubuntu0.3                                              amd64        Xlib/XCB interface library
            
            
            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by Christian Ehrlicher
              #13

              Try to search for some output of those values inside CMakeFiles subdir and try to compile this

              #include <X11/Xlib-xcb.h>
              
              int main(int, char**)
              {
                (void) XGetXCBConnection((Display *)0);
                return 0;
              }
              

              g++ main.cpp -lX11-xcb

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mnesarco
                wrote on last edited by
                #14

                @Christian-Ehrlicher said in Built Qt6 from sources, problem with xcb plugin:

                #include <X11/Xlib-xcb.h>

                int main(int, char**)
                {
                (void) XGetXCBConnection((Display *)0);
                return 0;
                }

                ➜  test99 vi test.cpp 
                ➜  test99 c++ test.cpp -lX11-xcb
                ➜  test99 ./a.out 
                [1]    12914 segmentation fault (core dumped)  ./a.out
                ➜  test99 
                It compiles, but segfault on run.
                
                1 Reply Last reply
                0
                • Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #15

                  Doesn't matter that it does not execute - cmake only checks if it compiles and links. Sorry you have to dig though the CMakeFiles directory.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mnesarco
                    wrote on last edited by
                    #16

                    Apparently it was some kind of cache problem. Because I deleted the build folder, opened a new terminal a build from scratch and:

                    Features used by QPA backends:
                      evdev .................................. yes
                      libinput ............................... yes
                      INTEGRITY HID .......................... no
                      mtdev .................................. yes
                      tslib .................................. no
                      xkbcommon .............................. yes
                      X11 specific:
                        XLib ................................. yes
                        XCB Xlib ............................. yes
                        EGL on X11 ........................... yes
                        xkbcommon-x11 ........................ yes
                    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 ...................... yes
                        EGLFS GBM ............................ no
                        EGLFS VSP2 ........................... no
                        EGLFS Mali ........................... no
                        EGLFS Raspberry Pi ................... no
                        EGLFS X11 ............................ yes
                      LinuxFB ................................ yes
                      VNC .................................... yes
                      QNX:
                        lgmon ................................ no
                        IMF .................................. no
                      XCB:
                        Using system-provided xcb-xinput ..... yes
                        Native painting (experimental) ....... no
                        GL integrations:
                          GLX Plugin ......................... yes
                            XCB GLX .......................... yes
                          EGL-X11 Plugin ..................... yes
                      Windows:
                        Direct 2D ............................ no
                        Direct 2D 1.1 ........................ no
                        DirectWrite .......................... no
                        DirectWrite 3 ........................ no
                    
                    

                    It is building, so I will report if succeed.

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      mnesarco
                      wrote on last edited by
                      #17

                      I can confirm that it worked. So which was exactly the missing dependency I don't know. But after installing all the mentioned libraries and build from scratch on an empty build directory, it worked.

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

                        As the configure scripts prints at the end: if you re-run configure, you have to clean first. Otherwise you may have leftovers from your previous configure/build attempt that will make it so that not all tests are rerun.

                        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
                        2
                        • M mnesarco

                          I can confirm that it worked. So which was exactly the missing dependency I don't know. But after installing all the mentioned libraries and build from scratch on an empty build directory, it worked.

                          E Offline
                          E Offline
                          extollIT Enterprises
                          wrote on last edited by
                          #19

                          @mnesarco I think it's worth mentioning (on an old thread) that in my case the (erroneously) missing dependencies included XCB GLX and xcb-sm (maybe others). It's important to pay careful attention to the output from ./configure and compare.

                          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