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

Cannot native build QtWebengine on Qt5.12.0



  • Hi everyone,
    I'm trying to compile Qt5.12 from source with the following configuration (native linux, gcc 4.8.5):

    configure  -qt-pcre -prefix /usr/local/qt5_12_0  -opensource -confirm-license -make libs -nomake tests -reduce-exports -release -skip qtwebchannel -skip qtwayland -skip qtserialbus -webengine-embedded-build
    

    And the following warning appears:

    Using gcc version 4.8, but at least gcc version 5 is required to build Qt WebEngine.
    QtWebEngine will not be built.
    
    

    The warning is clear about what is happening, the main problem seems to be Chromium that needs a newer gcc.
    Is there a way to somehow bypass this requirement?
    I tried replacing the src/qtwebengine/src/3rdparty/ folder with the 5.10's 3rd party sources, but no luck, compiler crash.

    Any idea will be appreciated!
    Thanks


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Then you should checkout an older branch of the module that can still be build with such an old version of GCC. Do take into account that you won't have all the latest security patches of Chromium doing so.



  • @SGaist thanks for your answer, I did as you suggested:
    checkout qtWebengine to version 5.10

    Then tried to build again, this time no gcc version error but this:

    `/home/ubuntu/QTBuild/Qt5.12/buildpc/qtwebengine/src/buildtools'
    ( test -e Makefile.gn || /home/ubuntu/QTBuild/Qt5.12/buildpc/qtbase/bin/qmake -o Makefile.gn /home/ubuntu/QTBuild/Qt5.12/src/qtwebengine/src/buildtools/gn.pro ) && make -f Makefile.gn 
    
    Usage: bootstrap.py [options]
    
    bootstrap.py: error: no such option: --shadow
    Project ERROR: GN build error!
    
    

    Ideas?
    Thanks


  • Lifetime Qt Champion

    Can you show the configuration options you used ?



  • @SGaist
    I used the following config:

    configure  -qt-pcre -prefix /usr/local/qt5_12_0  -opensource -confirm-license -make libs -nomake tests -reduce-exports -release -skip qtwebchannel -skip qtwayland -skip qtserialbus -webengine-embedded-build
    

  • Lifetime Qt Champion

    I would try to first build the module without any special flags.



  • I've found what I was missing: checking out to a matching branch for the 3rdparty repo.
    Now I can compile it without any trouble using webengine v5.10.


Log in to reply