Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot native build QtWebengine on Qt5.12.0
Forum Updated to NodeBB v4.3 + New Features

Cannot native build QtWebengine on Qt5.12.0

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ezkiel
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        E Offline
        E Offline
        ezkiel
        wrote on last edited by
        #3

        @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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you show the configuration options you used ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply
          0
          • SGaistS SGaist

            Can you show the configuration options you used ?

            E Offline
            E Offline
            ezkiel
            wrote on last edited by
            #5

            @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
            
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • E Offline
                E Offline
                ezkiel
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved