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

Native compile QtWebEngine Raspberry Pi 4



  • I want to compile "qt-everywhere-src-5.15.0" and especially QtWebEngine native on a Raspberry Pi 4. I make a build directory and go in it, to use the following command:

    sudo ../qt-everywhere-src-5.15.0/configure -v -opengl es2 -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5pi -sysroot / -pkg-config -skip qtscript -skip qtandroidextras -skip qtmacextras -skip qtpurchasing -skip qtwinextras -skip qtcanvas3d  -developer-build
    

    The config.summary was ok:

    Qt WebEngine Build Tools:
      Use System Ninja ....................... yes
      Use System Gn .......................... no
      Jumbo Build Merge Limit ................ 8
      Developer build ........................ yes
      QtWebEngine required system libraries:
        fontconfig ........................... yes
        dbus ................................. yes
        nss .................................. yes
        khr .................................. yes
        glibc ................................ yes
      QtWebEngine required system libraries for qpa-xcb:
        x11 .................................. yes
        libdrm ............................... yes
        xcomposite ........................... yes
        xcursor .............................. yes
        xi ................................... yes
        xtst ................................. yes
      Optional system libraries used:
        re2 .................................. no
        icu .................................. no
        libwebp, libwebpmux and libwebpdemux . yes
        opus ................................. no
        ffmpeg ............................... no
        libvpx ............................... no
        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 ............................. yes
        freetype ............................. yes
        xkbcommon ............................ yes
    

    After the command make - and serveral hours of waiting - I get the errors:

    make[4]: *** No rule to make target '/home/pi/build/qtwebengine/src/core/release/QtWebEngineCore.stamp', needed by '../../libQt5WebEngineCore.so.5.15.0' Stop.
    make[4]: Leaving directory '/home/pi/build/qtwebengine/src/core'
    make[3]: *** [Makefile:132: sub-core_module-pro-install_subtargets] Error 2
    make[3]: Leaving directory '/home/pi/build/qtwebengine/src/core'
    make[2]: *** [Makefile:91: sub-core-install_subtargets] Error 2
    make[2]: Leaving directory '/home/pi/build/qtwebengine/src'
    make[1]: *** [Makefile:61: sub-src-install_subtargets] Error 2
    make[2]: Leaving directory '/home/pi/build/qtwebengine'
    make: *** [Makefile:964: module-qtwebengine-install_subtargets] Error 2
    

    Can anyone help me solving the problem?