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

Cross Compiling Qt 5.10.1 for Raspberry Pi 3 not compiling webEngine



  • I'm trying to cross compile the Qt libraries for my raspberry pi. I actually got it working, but the module I needed the most for the project I was planing was not compiled and I couldn't find it in the qml folder. I need the webengine module.

    Here is the output form the configure script:

    Qt WebEngine:
    Embedded build ......................... yes
    Pepper Plugins ......................... no
    Printing and PDF ....................... no
    Proprietary Codecs ..................... no
    Spellchecker ........................... yes
    Native Spellchecker .................... no
    WebRTC ................................. no
    Use System Ninja ....................... no
    Geolocation ............................ yes
    Use v8 snapshot ........................ yes
    Use ALSA ............................... yes
    Use PulseAudio ......................... yes
    Optional system libraries used:
    re2 .................................. no
    icu .................................. no
    libwebp, libwebpmux and libwebpdemux . yes
    opus ................................. yes
    ffmpeg ............................... no
    libvpx ............................... no
    snappy ............................... no
    libsrtp .............................. no
    glib ................................. yes
    zlib ................................. yes
    minizip .............................. yes
    libevent ............................. yes
    jsoncpp .............................. yes
    protobuf ............................. no
    libxml2 and libxslt .................. yes
    lcms2 ................................ no
    png .................................. yes
    harfbuzz ............................. yes
    Required system libraries:
    fontconfig ........................... yes
    dbus ................................. yes
    nss .................................. yes
    khr .................................. yes
    glibc ................................ yes
    Required system libraries for qpa-xcb:
    libdrm ............................... yes
    xcomposite ........................... no
    xcursor .............................. no
    xi ................................... no
    xrandr ............................... no
    xtst ................................. no

    Note: Also available for Linux: linux-clang linux-icc

    Note: PKG_CONFIG_LIBDIR automatically set to /opt/qt5pi/sysroot/usr/lib/pkgconfig:/opt/qt5pi/sysroot/usr/share/pkgconfig:/opt/qt5pi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig

    Note: PKG_CONFIG_SYSROOT_DIR automatically set to /opt/qt5pi/sysroot

    Note: Dropped compiler flags '-pthread' when detecting library 'glib'.

    Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer'.

    Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer_app'.

    Note: Dropped compiler flags '-pthread' when detecting library 'webengine-protobuf'.

    As you can see, I have the required system libraries. But do I need everything that is listed under the Qt WebEngine headline?

    EDIT: I found out why it was skiping the qtWebEngine:

    V8 snapshot cannot be built. Most likely, the 32-bit host compiler does not work. Please make sure you have 32-bit devel environment installed, or configure webengine with '-no-webengine-v8-snapshot'
    QtWebEngine will not be built.

    I am not sure what the V8 snapshot is used for and why the installer couldn't use the 32-Bit compiler.



  • Are you using any buildsystem?
    Yocto Project or Buildroot

    What version of Qt5?

    Did you set something up in QtWebEngine to compile?


    Cleiton Bueno

    Blog | Linkedin | B2Open



  • @Cleiton-Bueno I am using the configure script to generate a Makefile. Not sure if that counts as buildsystem. I uses this tutorial for the cross compilation: https://www.raspberrypi.org/forums/viewtopic.php?t=204778

    The qt Version is 10.0.1

    Everything is working fine, but I can't build the webengine. After using the -no-webengine-v8-snapshot argument the engine tries to build and I had some errors here and there, but this it feels like an uphill battle. Now I am stuck here:

    make[3]: Verzeichnis „/opt/qt5pi/qt5build_wo_icu/qtwebengine/src/process“ wird betreten
    /opt/qt5pi/qt5build_wo_icu/qtbase/bin/qmake -o Makefile /opt/qt5pi/qt-everywhere-src-5.10.1/qtwebengine/src/process/process.pro
    arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/opt/qt5pi/sysroot -Wl,--gc-sections -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../lib -Wl,-rpath-link,/opt/qt5pi/qt5build_wo_icu/qtdeclarative/lib -Wl,-rpath-link,/opt/qt5pi/qt5build_wo_icu/qtbase/lib -Wl,-rpath-link,/opt/qt5pi/qt5build_wo_icu/qtwebengine/lib -Wl,-rpath-link,/opt/qt5pi/sysroot/opt/vc/lib -Wl,-rpath-link,/opt/qt5pi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/opt/qt5pi/sysroot/lib/arm-linux-gnueabihf -o ../../libexec/QtWebEngineProcess .obj/main.o -L=/opt/vc/lib -L/opt/qt5pi/qt5build_wo_icu/qtwebengine/lib -lQt5WebEngineCore -L/opt/qt5pi/qt5build_wo_icu/qtdeclarative/lib -L/opt/qt5pi/qt5build_wo_icu/qtbase/lib -L/opt/qt5pi/qt5build_wo_icu/qtwebchannel/lib -L/opt/qt5pi/qt5build_wo_icu/qtlocation/lib -lQt5Quick -lQt5Gui -lQt5WebChannel -lQt5Qml -lQt5Network -lQt5Positioning -lQt5Core -lGLESv2 -lpthread
    /opt/qt5pi/sysroot/usr/lib/arm-linux-gnueabihf/libicui18n.so.57: Nicht definierter Verweis auf `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'

    Already tried to configure the build process with the -no-icu flag, but with no success.
    I'm sitting here 3,5 days, trying to build the webengine, is there maybe some prebuild binaries? All binaries I've found don't include the webengine.


Log in to reply