Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112913

QtWebEngine compilation issue using Visual Studio 2022

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 5.15.9
    • Build System, WebEngine
    • None
    • Windows 10 Version 22H2
      Visual Studio 2022 Developer Command Prompt v17.5.4
    • Windows

    Description

      Hello!

      I want to report an issue during QtWebEngine build process using Qt 5.15.9. It occurs only with x64 Cross Tools Command Prompt for VS 2022 (Debug mode).

      **********************************************************************
      ** Visual Studio 2022 Developer Command Prompt v17.5.4
      ** Copyright (c) 2022 Microsoft Corporation
      **********************************************************************
      [vcvarsall.bat] Environment initialized for: 'x64'
      
      C:\Windows\System32>cd C:\QtBuild
      
      C:\QtBuild>Advanced_Qt5.X.X_Configure_Single_Module_x86_x64.bat
      For Qt single module build (example: QtWebEngine) with Visual Studio 2017/2019/2022
      ==========================================================================================
      
      Enter Qt out-of-source build path: C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild
      Enter QMake path: C:\Qt\5.15.9\msvc2022_64\bin
      Enter Qt source module path: C:\QtBuild\qt-everywhere-src-5.15.9\qtwebengine
      Info: creating stash file C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild\.qmake.stash
      Info: creating cache file C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild\.qmake.cache
      
      Running configuration tests...
      Checking for architecture supported... yes
      Checking for bison... yes
      Checking for submodule initialized... yes
      Checking for build path without whitespace... yes
      Checking for platform supported...
      Checking for gperf... yes
      Checking for flex... yes
      Checking for python2... C:/Python27/python.exe
      Checking for node.js... true
      Checking for 64bit compiler... yes
      Checking for winversion... yes
      Checking for jumbo build merge limit... 0
      Checking for d-bus... no
      Checking for fontconfig... no
      Checking for libdrm... no
      Checking for system ninja... no
      Checking for xcomposite... no
      Checking for xcursor... no
      Checking for xi... no
      Checking for xkbfile... no
      Checking for xtst... no
      Checking for embedded build... no
      Done running configuration tests.
      
      Configure summary:
      
      Qt WebEngine Build Tools:
        Use System Ninja ....................... no
        Jumbo Build Merge Limit ................ no
        Developer build ........................ no
        Sanitizer .............................. no
      Qt WebEngineCore:
        Embedded build ......................... no
        Full debug information ................. no
        Pepper Plugins ......................... yes
        Printing and PDF ....................... yes
        Proprietary Codecs ..................... no
        Spellchecker ........................... yes
        Native Spellchecker .................... no
        WebRTC ................................. yes
        PipeWire over GIO ...................... no
        Geolocation ............................ yes
        WebChannel support ..................... yes
        Kerberos Authentication ................ yes
        Extensions ............................. yes
      Qt WebEngineQml:
        Support Qt WebEngine Qml ............... yes
        UI Delegates ........................... yes
        Test Support ........................... no
      Qt WebEngineWidgets:
        Support Qt WebEngine Widgets ........... yes
      Qt PDF:
        Support V8 ............................. no
        Support XFA ............................ no
        Support XFA-BMP ........................ no
        Support XFA-GIF ........................ no
        Support XFA-PNG ........................ no
        Support XFA-TIFF ....................... no
        Bitcode support ........................ no
        Use static runtime ..................... no
      Qt PDF Widgets:
        Support Qt PDF Widgets ................. yes
      
      Qt is now configured for building. Just run 'nmake'.
      Once everything is built, you must run 'nmake install'.
      Qt will be installed into 'C:\Qt\5.15.9\msvc2022_64'.
      
      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      
      
      C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild>
      
      [20006/33397] C:\Python27\python.exe ../../../../qtwebengine/src/3rdparty/chromium/mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../../../qtwebengine/src/3rdparty/chromium/ -I ../../../../qtwebengine/src/3rdparty/chromium/ --bytecode_path gen/mojo/public/tools/bindings --filelist=__third_party_blink_public_mojom_mojom_platform_shared__generator___build_toolchain_win_x64__rule..rsp --generate_non_variant_code -g c++ --export_attribute COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) --export_header base/component_export.h
      [20007/33397] C:\Python27\python.exe ../../../../qtwebengine/src/3rdparty/chromium/mojo/public/tools/mojom/mojom_parser.py --input-root C:/QtBuild/qt-everywhere-src-5.15.9/qtwebengine/src/3rdparty/chromium/ --input-root C:/QtBuild/qt-everywhere-src-5.15.9/qtBuild/src/core/debug/gen --output-root C:/QtBuild/qt-everywhere-src-5.15.9/qtBuild/src/core/debug/gen --mojom-file-list=__third_party_blink_public_mojom_mojom_core__parser___build_toolchain_win_x64__rule..rsp --check-imports C:/QtBuild/qt-everywhere-src-5.15.9/qtBuild/src/core/debug/gen/third_party/blink/public/mojom/mojom_core.build_metadata --enable-feature is_win
      ninja: build stopped: subcommand failed.
      NMAKE : fatal error U1077: 'call C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild\src\core\ninja_wrapper.bat -v  -C C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild\src\core\debug QtWebEngineCore' : return code '0x1'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run.Debug' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '( if not exist Makefile.gn_run C:\Qt\5.15.9\msvc2022_64\bin\qmake.exe -o Makefile.gn_run C:\QtBuild\qt-everywhere-src-5.15.9\qtwebengine\src\core\gn_run.pro ) && "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd core\ && ( if not exist Makefile C:\Qt\5.15.9\msvc2022_64\bin\qmake.exe -o Makefile C:\QtBuild\qt-everywhere-src-5.15.9\qtwebengine\src\core\core.pro ) && "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd src\ && ( if not exist Makefile C:\Qt\5.15.9\msvc2022_64\bin\qmake.exe -o Makefile C:\QtBuild\qt-everywhere-src-5.15.9\qtwebengine\src\src.pro ) && "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\nmake.exe" -f Makefile' : return code '0x2'
      Stop.
      
      C:\QtBuild\qt-everywhere-src-5.15.9\qtBuild>
      

      I have Python 2.7.18 version, ninja 1.10.2 installed.

      Any ideas how to solve this error? Thank you.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            cobra91151 Ruslan Sydorvych
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes