Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Cross compile QWebengine for Raspberry 4 can not find x11



  • I have finished cross compiling Qt base for Raspberry 4,and when i try to cross compile QWebengine,it shows:

    Checking for architecture supported... yes
    Checking for bison... yes
    Checking for submodule initialized... yes
    Checking for build path without whitespace... yes
    Checking for platform supported... 
    Checking for gperf... yes
    Checking for flex... yes
    Checking for python2... /usr/bin/python2
    Checking for host pkg-config... /usr/bin/pkg-config
    Checking for glibc > 2.16... yes
    Checking for khr... yes
    Checking for nss >= 3.26... yes
    Checking for d-bus... yes
    Checking for fontconfig... yes
    Checking for x11... no
    Checking for jumbo build merge limit... 8
    Checking for linker supports -z noexecstack... yes
    Checking for freetype >= 2.4.2... yes
    Checking for glib-2.0 >= 2.32.0... yes
    Checking for compatible jpeglib... yes
    Checking for jsoncpp... yes
    Checking for lcms2... yes
    Checking for libdrm... yes
    Checking for libevent... yes
    Checking for libvpx... yes
    Checking for libwebp, libwebpmux and libwebpdemux... yes
    Checking for compatible libxml2 and libxslt... yes
    Checking for minizip... yes
    Checking for system ninja... no
    Checking for opus... yes
    Checking for libpng >= 1.6.0... yes
    Checking for protobuf... yes
    Checking for protoc... no
    Checking for re2... yes
    Checking for snappy... yes
    Checking for xcomposite... no
    Checking for xcursor... no
    Checking for xi... no
    Checking for xtst... no
    Checking for zlib... yes
    Done running configuration tests.
    
    Configure summary:
    
    Qt WebEngine Build Tools:
      Use System Ninja ....................... no
      Use System Gn .......................... no
      Jumbo Build Merge Limit ................ 8
      Developer build ........................ no
      Sanitizer .............................. no
      QtWebEngine required system libraries:
        fontconfig ........................... yes
        dbus ................................. yes
        nss .................................. yes
        khr .................................. yes
        glibc ................................ yes
      QtWebEngine required system libraries for qpa-xcb:
        x11 .................................. no
        libdrm ............................... yes
        xcomposite ........................... no
        xcursor .............................. no
        xi ................................... no
        xtst ................................. no
      Optional system libraries used:
        re2 .................................. yes
        icu .................................. no
        libwebp, libwebpmux and libwebpdemux . yes
        opus ................................. yes
        ffmpeg ............................... no
        libvpx ............................... yes
        snappy ............................... yes
        glib ................................. yes
        zlib ................................. yes
        minizip .............................. yes
        libevent ............................. yes
        jsoncpp .............................. yes
        protobuf ............................. no
        libxml2 and libxslt .................. yes
        lcms2 ................................ yes
        png .................................. yes
        JPEG ................................. yes
        harfbuzz ............................. no
        freetype ............................. yes
    Qt PDF:
      Support V8 ............................. no
      Support XFA ............................ no
      Support XFA-BMP ........................ no
      Support XFA-GIF ........................ no
      Support XFA-PNG ........................ no
      Support XFA-TIFF ....................... no
    Qt PDF Widgets:
      Support Qt PDF Widgets ................. yes
    
    Note: The following modules are not being compiled in this configuration:
        webenginecore
        webengine
        webenginewidgets
    
    WARNING: Could not find all necessary libraries for qpa-xcb support in QtWebEngine.
    
    WARNING: QtWebEngine will not be built.
    
    

    and the config.log:

    looking for library webengine-x11
    Trying source 0 (type pkgConfig) of library webengine-x11 ...
    + PKG_CONFIG_SYSROOT_DIR=/opt/raspi/cross-compile-tool/sysroot PKG_CONFIG_LIBDIR=/opt/raspi/cross-compile-tool/sysroot/usr/lib/pkgconfig:/opt/raspi/cross-compile-tool/sysroot/usr/share/pkgconfig:/opt/raspi/cross-compile-tool/sysroot/usr/lib/aarch64-linux-gnu/pkgconfig /usr/bin/pkg-config --exists --silence-errors x11
    pkg-config did not find package.
      => source produced no result.
    test config.qtwebengine_buildtools.libraries.webengine-x11 FAILED
    

    But i hava installed missing libs in my raspberry and rsync to my PC.
    And i can find x11.pc,xcb-composite.pc,xcb-cursor.pc,xi.pc in /opt/raspi/cross-compile-tool/sysroot/usr/lib/aarch64-linux-gnu/pkgconfig.
    Can someone help me?Qt version is 5.15.2,ubuntu version is 21.04.


Log in to reply