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

QtWebEngine will not be built. Platform unsupported



  • I am cross-compiling Qt for ARM board. My source file is Qt 5.14.1 and tool chain is gcc-linaro-5.3.1.
    This is my configuration :

    #!/bin/bash
    
    ./configure \
            -v \
            -prefix /opt/Qt5.14 \
            -opensource \
            -confirm-license \
            -debug \
            -release \
            -shared \
            -strip \
            -qreal float \
            -make libs \
            -make tools \
            -xplatform linux-arm-gnueabihf-g++ \
            -pch \
            -no-sse2 \
            -no-sse3 \
            -no-rpath \
            -no-tslib \
            -no-opengl \
            -no-cups \
            -qt-zlib \
            -widgets \
            -skip qt3d \
            -skip qtcanvas3d \
            -nomake examples \
            -no-use-gold-linker \
    
    

    But it shows as below after run ./configure:

    Note: Overriding option 'debug' with 'no' (was: 'yes')
    
    Note: Also available for Linux: linux-clang linux-icc
    
    Note: QtSerialBus: Cannot find linux/can.h and linux/can/raw.h Linux headers for socketCAN support.
    
    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
    
    Note: The following modules are not being compiled in this configuration:
        webenginecore
        webengine
        webenginewidgets
    
    WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
    
    Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
    On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
    On macOS, you can use Homebrew's llvm package.
    On Windows, you must set LLVM_INSTALL_DIR to the installation path.
    
    WARNING: QtWebEngine will not be built. Platform unsupported.
    
    WARNING: QtWebEngine will not be built.
    
    WARNING: QtPdf will not be built.
    
    

    What does 'Platform unsupported' mean ? Is there any tutorial for cross-compiling Qt with qtwebengine?


  • Moderators

    Silly question: are you sure you need QtWebEngine? If not, then you can just continue.

    If you want to know why a platform is disabled, look through verbose output of configure - it will print a message when some build condition is not satisfied. Also, this document lists exact requirements an quirks of that module.



  • @sierdzio
    Sorry to bother. I do need QtWebEngine.
    I found that pkg-config is needed to compile qtwebengine. But I encountered 'Cross compiling without sysroot. Disabling pkg-config' when I appended -pkg-config to ./configure. Is sysroot indispensable to cross compile qtwebengine? If so, does it mean that I need to mount the rootfs of my ARM board to host computer and cross compile all dependencies to that sysroot to get Qt with qtwebengine for ARM?


  • Moderators

    I don't know to be honest. I've never cross-compiled the web engine.



  • @sierdzio
    Ok, Thanks. ;)


Log in to reply