Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Webengine Build Tools: How to use system gn(.exe) instead of building from source
Forum Updated to NodeBB v4.3 + New Features

Webengine Build Tools: How to use system gn(.exe) instead of building from source

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 1.3k 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.
  • S Offline
    S Offline
    swenp
    wrote on last edited by
    #1

    Hi,
    I'm struggling to build qtwebengine using 5.15.11-lts-lgpl on windows.
    I can build qt without the webengine module but building with the latter always fails when building the gn.exe needed to build chromium.
    I noticed that somehow I can configure the build to use the system gn:
    9f604098-adcc-4979-9e34-13998ab7023b-grafik.png
    How can this be done? I already downloaded a working gn.exe and it is in the path.
    I also checked the different configure.json for a parameter but couldn't find one.
    Any hints?
    Thanks,
    swenp

    S 1 Reply Last reply
    0
    • S swenp

      Hi,
      I'm struggling to build qtwebengine using 5.15.11-lts-lgpl on windows.
      I can build qt without the webengine module but building with the latter always fails when building the gn.exe needed to build chromium.
      I noticed that somehow I can configure the build to use the system gn:
      9f604098-adcc-4979-9e34-13998ab7023b-grafik.png
      How can this be done? I already downloaded a working gn.exe and it is in the path.
      I also checked the different configure.json for a parameter but couldn't find one.
      Any hints?
      Thanks,
      swenp

      S Offline
      S Offline
      swenp
      wrote on last edited by
      #2

      Update:
      It's a feature that needs to be activated by "-feature-webengine-system-gn".
      But although the Configure summary now reads "Use System Gn.......yes" gn still starts to compile and fails. So I'm one step further but still stuck.

      jsulmJ 1 Reply Last reply
      0
      • S swenp

        Update:
        It's a feature that needs to be activated by "-feature-webengine-system-gn".
        But although the Configure summary now reads "Use System Gn.......yes" gn still starts to compile and fails. So I'm one step further but still stuck.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @swenp said in Webengine Build Tools: How to use system gn(.exe) instead of building from source:

        gn still starts to compile and fails

        Posting the error could help

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          swenp
          wrote on last edited by
          #4

          Sorry, my bad.
          I started building modules qtbase and qtdeclarative.
          After that went fine I try to build module-qtwebengine, that stops while in
          qtwebengine\src\core:

          ( if not exist Makefile.gn_run C:\qt5-build\qtbase\bin\qmake.exe -o Makefile.gn_run C:\qt5\qtwebengine\src\core\gn_run.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run
          Project ERROR: Visual Studio compiler version "17.0" is not supported by gn.
          NMAKE : fatal error U1077: '( if not exist Makefile.gn_run C:\qt5-build\qtbase\bin\qmake.exe -o Makefile.gn_run C:\qt5\qtwebengine\src\core\gn_run.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run' : return code '0x3'
          Stop.
          NMAKE : fatal error U1077: 'cd core\ && ( if not exist Makefile C:\qt5-build\qtbase\bin\qmake.exe -o Makefile C:\qt5\qtwebengine\src\core\core.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd src\ && ( if not exist Makefile C:\qt5-build\qtbase\bin\qmake.exe -o Makefile C:\qt5\qtwebengine\src\src.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd qtwebengine\ && ( if not exist Makefile C:\qt5-build\qtbase\bin\qmake.exe -o Makefile C:\qt5\qtwebengine\qtwebengine.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
          Stop.
          

          The exact call that produces the error is

           ( if not exist Makefile.gn_run C:\qt5-build\qtbase\bin\qmake.exe -o Makefile.gn_run C:\qt5\qtwebengine\src\core\gn_run.pro )
          

          I checked the gn_run.pro file and the build stops at the line

          gn_args = $$gnWebEngineArgs()
          

          A line with

          message($$gnWebEngineArgs()) 
          

          will also print the message

          Project ERROR: Visual Studio compiler version "17.0" is not supported by gn.
          

          and stops the build.

          jsulmJ 1 Reply Last reply
          0
          • S swenp

            Sorry, my bad.
            I started building modules qtbase and qtdeclarative.
            After that went fine I try to build module-qtwebengine, that stops while in
            qtwebengine\src\core:

            ( if not exist Makefile.gn_run C:\qt5-build\qtbase\bin\qmake.exe -o Makefile.gn_run C:\qt5\qtwebengine\src\core\gn_run.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run
            Project ERROR: Visual Studio compiler version "17.0" is not supported by gn.
            NMAKE : fatal error U1077: '( if not exist Makefile.gn_run C:\qt5-build\qtbase\bin\qmake.exe -o Makefile.gn_run C:\qt5\qtwebengine\src\core\gn_run.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run' : return code '0x3'
            Stop.
            NMAKE : fatal error U1077: 'cd core\ && ( if not exist Makefile C:\qt5-build\qtbase\bin\qmake.exe -o Makefile C:\qt5\qtwebengine\src\core\core.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
            Stop.
            NMAKE : fatal error U1077: 'cd src\ && ( if not exist Makefile C:\qt5-build\qtbase\bin\qmake.exe -o Makefile C:\qt5\qtwebengine\src\src.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
            Stop.
            NMAKE : fatal error U1077: 'cd qtwebengine\ && ( if not exist Makefile C:\qt5-build\qtbase\bin\qmake.exe -o Makefile C:\qt5\qtwebengine\qtwebengine.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
            Stop.
            

            The exact call that produces the error is

             ( if not exist Makefile.gn_run C:\qt5-build\qtbase\bin\qmake.exe -o Makefile.gn_run C:\qt5\qtwebengine\src\core\gn_run.pro )
            

            I checked the gn_run.pro file and the build stops at the line

            gn_args = $$gnWebEngineArgs()
            

            A line with

            message($$gnWebEngineArgs()) 
            

            will also print the message

            Project ERROR: Visual Studio compiler version "17.0" is not supported by gn.
            

            and stops the build.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @swenp said in Webengine Build Tools: How to use system gn(.exe) instead of building from source:

            Project ERROR: Visual Studio compiler version "17.0" is not supported by gn

            This seems to be the issue. You need to find out what compiler version gn supports.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            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