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. QtWebEngine compilation issue using Visual Studio 2022
QtWS25 Last Chance

QtWebEngine compilation issue using Visual Studio 2022

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 2.3k Views
  • 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.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by Cobra91151
    #1

    Hello!

    I have an issue during QtWebEngine build process using Qt 5.15.9. It occurs only with VS 2022 compiler.

    Output:

    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 think, the issue occurs with this line: mojom_core.build_metadata --enable-feature is_win
    QtWebEngine compiles successfully using Visual Studio 2019 compiler. This issue is only related to Visual Studio 2022 compiler. Any ideas how to fix it? Is there any patch which fixes this error? Thanks in advance.

    kkoehneK 1 Reply Last reply
    0
    • Cobra91151C Cobra91151

      @kkoehne

      Hello!

      Yes, I created this bug report: https://bugreports.qt.io/browse/QTBUG-112913
      Additionally, I reported this issue here: https://developercommunity.visualstudio.com/t/QtWebEngine-5159-compilation-issue-usi/10344580

      The same issue occurs when building QtWebEngine in release mode:

      [18673/32474] 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 --export_attribute PLATFORM_EXPORT --export_header third_party/blink/renderer/platform/platform_export.h --filelist=__third_party_blink_public_mojom_mojom_platform_blink__generator___build_toolchain_win_x64__rule..rsp -g c++ --variant blink --typemap gen/third_party/blink/public/mojom/mojom_platform_blink__type_mappings --for_blink
      [18674/32474] 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/release/gen --output-root C:/QtBuild/qt-everywhere-src-5.15.9/qtBuild/src/core/release/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/release/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\release 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.Release' : return code '0x2'
      

      Full log: https://mega.nz/file/oF4DEaRD#LCMd7tc1w4pJEGNZQgI9oM1dwIaPA3popolAGeg6V_g
      I will check out if this issue is fixed or not in the Visual Studio 2022 version 17.6 Preview 4. Thanks.

      kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #4

      @Cobra91151 alright, your full log actually shows the original error message:

      FAILED: obj/ui/accessibility/accessibility/ax_table_info.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DAX_IMPLEMENTATION -DUSE_AURA=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DVK_USE_PLATFORM_WIN32_KHR -DUSE_EGL -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC "-DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\"" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DVK_USE_PLATFORM_WIN32_KHR -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -Igen/third_party/dawn/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine/src/3rdparty/chromium/gpu -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /MD /wd4267 /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc /Foobj/ui/accessibility/accessibility/ax_table_info.obj /Fd"obj/ui/accessibility/accessibility_cc.pdb"
      ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2039: 'string': is not a member of 'std'
      ../../../../qtwebengine/src/3rdparty/chromium\base/optional.h(947): note: see declaration of 'std'
      ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C3646: 'ToString': unknown override specifier
      ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2059: syntax error: '('
      ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2238: unexpected token(s) preceding ';'
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(516): error C2039: 'ToString': is not a member of 'ui::AXTableInfo'
      ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_tree.h(27): note: see declaration of 'ui::AXTableInfo'
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(516): error C2270: 'ToString': modifiers not allowed on nonmember functions
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(519): error C2065: 'row_count': undeclared identifier
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(520): error C2065: 'col_count': undeclared identifier
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): error C2065: 'cell_ids': undeclared identifier
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): error C2672: 'std::max': no matching overloaded function found
      C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(51): note: could be '_Ty std::max(std::initializer_list<_Elem>)'
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: '_Ty std::max(std::initializer_list<_Elem>)': could not deduce template argument for 'std::initializer_list<_Elem>' from 'int'
      C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(48): note: or       '_Ty std::max(std::initializer_list<_Elem>,_Pr)'
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: '_Ty std::max(std::initializer_list<_Elem>,_Pr)': expects 2 arguments - 1 provided
      C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(41): note: or       'const _Ty &std::max(const _Ty &,const _Ty &) noexcept(<expr>)'
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: 'const _Ty &std::max(const _Ty &,const _Ty &) noexcept(<expr>)': expects 2 arguments - 1 provided
      C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(31): note: or       'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept(<expr>)'
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept(<expr>)': expects 3 arguments - 1 provided
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(527): error C2065: 'row_count': undeclared identifier
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(529): error C2065: 'col_count': undeclared identifier
      ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(530): error C2065: 'cell_ids': undeclared identifier
      

      And with this, it's also easier to find a patch. E.g. https://github.com/microsoft/vcpkg/commit/668bf87fc5c58d2ba1ef34013f2c4e85e7dd2eff

      Director R&D, The Qt Company

      Cobra91151C 1 Reply Last reply
      2
      • Cobra91151C Cobra91151

        Hello!

        I have an issue during QtWebEngine build process using Qt 5.15.9. It occurs only with VS 2022 compiler.

        Output:

        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 think, the issue occurs with this line: mojom_core.build_metadata --enable-feature is_win
        QtWebEngine compiles successfully using Visual Studio 2019 compiler. This issue is only related to Visual Studio 2022 compiler. Any ideas how to fix it? Is there any patch which fixes this error? Thanks in advance.

        kkoehneK Offline
        kkoehneK Offline
        kkoehne
        Moderators
        wrote on last edited by
        #2

        @Cobra91151 , related: https://bugreports.qt.io/browse/QTBUG-112913 (probably also filed by you)?

        I don't know whether there's a direct fix. But two comments:

        • Microsoft nowadays guarantees some binary compatibility between MSVC 2019 and MSVC 2022. That is, you should be able to use MSVC 2022 for your own application, even if you continue building qtwebengine with 2019 (see also https://learn.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-170).
        • In QTBUG-112913, it looks like you're trying a debug build. THis can be brittle, as Qt WebEngine is so large. Have you tried a release build?

        Director R&D, The Qt Company

        Cobra91151C 1 Reply Last reply
        0
        • kkoehneK kkoehne

          @Cobra91151 , related: https://bugreports.qt.io/browse/QTBUG-112913 (probably also filed by you)?

          I don't know whether there's a direct fix. But two comments:

          • Microsoft nowadays guarantees some binary compatibility between MSVC 2019 and MSVC 2022. That is, you should be able to use MSVC 2022 for your own application, even if you continue building qtwebengine with 2019 (see also https://learn.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-170).
          • In QTBUG-112913, it looks like you're trying a debug build. THis can be brittle, as Qt WebEngine is so large. Have you tried a release build?
          Cobra91151C Offline
          Cobra91151C Offline
          Cobra91151
          wrote on last edited by
          #3

          @kkoehne

          Hello!

          Yes, I created this bug report: https://bugreports.qt.io/browse/QTBUG-112913
          Additionally, I reported this issue here: https://developercommunity.visualstudio.com/t/QtWebEngine-5159-compilation-issue-usi/10344580

          The same issue occurs when building QtWebEngine in release mode:

          [18673/32474] 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 --export_attribute PLATFORM_EXPORT --export_header third_party/blink/renderer/platform/platform_export.h --filelist=__third_party_blink_public_mojom_mojom_platform_blink__generator___build_toolchain_win_x64__rule..rsp -g c++ --variant blink --typemap gen/third_party/blink/public/mojom/mojom_platform_blink__type_mappings --for_blink
          [18674/32474] 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/release/gen --output-root C:/QtBuild/qt-everywhere-src-5.15.9/qtBuild/src/core/release/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/release/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\release 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.Release' : return code '0x2'
          

          Full log: https://mega.nz/file/oF4DEaRD#LCMd7tc1w4pJEGNZQgI9oM1dwIaPA3popolAGeg6V_g
          I will check out if this issue is fixed or not in the Visual Studio 2022 version 17.6 Preview 4. Thanks.

          kkoehneK 1 Reply Last reply
          0
          • Cobra91151C Cobra91151

            @kkoehne

            Hello!

            Yes, I created this bug report: https://bugreports.qt.io/browse/QTBUG-112913
            Additionally, I reported this issue here: https://developercommunity.visualstudio.com/t/QtWebEngine-5159-compilation-issue-usi/10344580

            The same issue occurs when building QtWebEngine in release mode:

            [18673/32474] 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 --export_attribute PLATFORM_EXPORT --export_header third_party/blink/renderer/platform/platform_export.h --filelist=__third_party_blink_public_mojom_mojom_platform_blink__generator___build_toolchain_win_x64__rule..rsp -g c++ --variant blink --typemap gen/third_party/blink/public/mojom/mojom_platform_blink__type_mappings --for_blink
            [18674/32474] 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/release/gen --output-root C:/QtBuild/qt-everywhere-src-5.15.9/qtBuild/src/core/release/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/release/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\release 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.Release' : return code '0x2'
            

            Full log: https://mega.nz/file/oF4DEaRD#LCMd7tc1w4pJEGNZQgI9oM1dwIaPA3popolAGeg6V_g
            I will check out if this issue is fixed or not in the Visual Studio 2022 version 17.6 Preview 4. Thanks.

            kkoehneK Offline
            kkoehneK Offline
            kkoehne
            Moderators
            wrote on last edited by
            #4

            @Cobra91151 alright, your full log actually shows the original error message:

            FAILED: obj/ui/accessibility/accessibility/ax_table_info.obj
            ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DAX_IMPLEMENTATION -DUSE_AURA=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DVK_USE_PLATFORM_WIN32_KHR -DUSE_EGL -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC "-DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\"" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DVK_USE_PLATFORM_WIN32_KHR -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -Igen/third_party/dawn/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine/src/3rdparty/chromium/gpu -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /MD /wd4267 /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc /Foobj/ui/accessibility/accessibility/ax_table_info.obj /Fd"obj/ui/accessibility/accessibility_cc.pdb"
            ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2039: 'string': is not a member of 'std'
            ../../../../qtwebengine/src/3rdparty/chromium\base/optional.h(947): note: see declaration of 'std'
            ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C3646: 'ToString': unknown override specifier
            ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2059: syntax error: '('
            ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2238: unexpected token(s) preceding ';'
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(516): error C2039: 'ToString': is not a member of 'ui::AXTableInfo'
            ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_tree.h(27): note: see declaration of 'ui::AXTableInfo'
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(516): error C2270: 'ToString': modifiers not allowed on nonmember functions
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(519): error C2065: 'row_count': undeclared identifier
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(520): error C2065: 'col_count': undeclared identifier
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): error C2065: 'cell_ids': undeclared identifier
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): error C2672: 'std::max': no matching overloaded function found
            C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(51): note: could be '_Ty std::max(std::initializer_list<_Elem>)'
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: '_Ty std::max(std::initializer_list<_Elem>)': could not deduce template argument for 'std::initializer_list<_Elem>' from 'int'
            C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(48): note: or       '_Ty std::max(std::initializer_list<_Elem>,_Pr)'
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: '_Ty std::max(std::initializer_list<_Elem>,_Pr)': expects 2 arguments - 1 provided
            C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(41): note: or       'const _Ty &std::max(const _Ty &,const _Ty &) noexcept(<expr>)'
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: 'const _Ty &std::max(const _Ty &,const _Ty &) noexcept(<expr>)': expects 2 arguments - 1 provided
            C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(31): note: or       'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept(<expr>)'
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept(<expr>)': expects 3 arguments - 1 provided
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(527): error C2065: 'row_count': undeclared identifier
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(529): error C2065: 'col_count': undeclared identifier
            ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(530): error C2065: 'cell_ids': undeclared identifier
            

            And with this, it's also easier to find a patch. E.g. https://github.com/microsoft/vcpkg/commit/668bf87fc5c58d2ba1ef34013f2c4e85e7dd2eff

            Director R&D, The Qt Company

            Cobra91151C 1 Reply Last reply
            2
            • kkoehneK kkoehne

              @Cobra91151 alright, your full log actually shows the original error message:

              FAILED: obj/ui/accessibility/accessibility/ax_table_info.obj
              ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DAX_IMPLEMENTATION -DUSE_AURA=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DVK_USE_PLATFORM_WIN32_KHR -DUSE_EGL -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC "-DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\"" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DGR_GL_FUNCTION_TYPE=__stdcall -DVK_USE_PLATFORM_WIN32_KHR -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -Igen/third_party/dawn/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine/src/3rdparty/chromium/gpu -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../qtwebengine/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /MD /wd4267 /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc /Foobj/ui/accessibility/accessibility/ax_table_info.obj /Fd"obj/ui/accessibility/accessibility_cc.pdb"
              ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2039: 'string': is not a member of 'std'
              ../../../../qtwebengine/src/3rdparty/chromium\base/optional.h(947): note: see declaration of 'std'
              ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C3646: 'ToString': unknown override specifier
              ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2059: syntax error: '('
              ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_table_info.h(101): error C2238: unexpected token(s) preceding ';'
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(516): error C2039: 'ToString': is not a member of 'ui::AXTableInfo'
              ../../../../qtwebengine/src/3rdparty/chromium\ui/accessibility/ax_tree.h(27): note: see declaration of 'ui::AXTableInfo'
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(516): error C2270: 'ToString': modifiers not allowed on nonmember functions
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(519): error C2065: 'row_count': undeclared identifier
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(520): error C2065: 'col_count': undeclared identifier
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): error C2065: 'cell_ids': undeclared identifier
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): error C2672: 'std::max': no matching overloaded function found
              C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(51): note: could be '_Ty std::max(std::initializer_list<_Elem>)'
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: '_Ty std::max(std::initializer_list<_Elem>)': could not deduce template argument for 'std::initializer_list<_Elem>' from 'int'
              C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(48): note: or       '_Ty std::max(std::initializer_list<_Elem>,_Pr)'
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: '_Ty std::max(std::initializer_list<_Elem>,_Pr)': expects 2 arguments - 1 provided
              C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(41): note: or       'const _Ty &std::max(const _Ty &,const _Ty &) noexcept(<expr>)'
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: 'const _Ty &std::max(const _Ty &,const _Ty &) noexcept(<expr>)': expects 2 arguments - 1 provided
              C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\utility(31): note: or       'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept(<expr>)'
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(522): note: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept(<expr>)': expects 3 arguments - 1 provided
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(527): error C2065: 'row_count': undeclared identifier
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(529): error C2065: 'col_count': undeclared identifier
              ../../../../qtwebengine/src/3rdparty/chromium/ui/accessibility/ax_table_info.cc(530): error C2065: 'cell_ids': undeclared identifier
              

              And with this, it's also easier to find a patch. E.g. https://github.com/microsoft/vcpkg/commit/668bf87fc5c58d2ba1ef34013f2c4e85e7dd2eff

              Cobra91151C Offline
              Cobra91151C Offline
              Cobra91151
              wrote on last edited by
              #5

              @kkoehne

              Great!
              I have successfully built the QtWebEngine using VS 2022. The issue is resolved. Thank you.

              1 Reply Last reply
              0
              • Cobra91151C Cobra91151 has marked this topic as solved on
              • P Offline
                P Offline
                Prashant Lade
                wrote on last edited by
                #6

                This thread was very helpful to fix this error. I updated my visual studio using available auto updates in my visual studio 2022 and my errors gone away. However, I started getting new errors for chromium as below.

                I think there is still some issue in this. I am trying to build QT with webengine for 5.15.12 (LTS).

                Can someone help me fix this problem? Any other suggestions?

                FAILED: obj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj
                ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DPERFETTO_IMPLEMENTATION -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/perfetto -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../3rdparty/chromium/third_party/jsoncpp/source/include -I../../3rdparty/chromium/third_party/zlib /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /MD /TP /wd4577 /GR- /c ../../3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
                ../../3rdparty/chromium/third_party/perfetto\src/trace_processor/storage/metadata.h(63): warning C4068: unknown pragma 'GCC'
                ../../3rdparty/chromium/third_party/perfetto\src/trace_processor/storage/stats.h(192): warning C4068: unknown pragma 'GCC'
                ../../3rdparty/chromium/third_party/perfetto\src/trace_processor/tables/macros_internal.h(143): warning C4068: unknown pragma 'GCC'
                C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\include\algorithm(8002): error C2672: 'swap': no matching overloaded function found
                C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\include\sstream(907): note: could be 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept'
                C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\include\algorithm(8002): note: 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_stringstream<_Elem,_Traits,_Alloc> &' from 'T'
                with
                [
                T=perfetto::trace_processor::TimestampedTracePiece
                ]

                Cobra91151C 1 Reply Last reply
                0
                • P Prashant Lade referenced this topic on
                • P Prashant Lade

                  This thread was very helpful to fix this error. I updated my visual studio using available auto updates in my visual studio 2022 and my errors gone away. However, I started getting new errors for chromium as below.

                  I think there is still some issue in this. I am trying to build QT with webengine for 5.15.12 (LTS).

                  Can someone help me fix this problem? Any other suggestions?

                  FAILED: obj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj
                  ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DPERFETTO_IMPLEMENTATION -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/perfetto -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../3rdparty/chromium/third_party/jsoncpp/source/include -I../../3rdparty/chromium/third_party/zlib /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /MD /TP /wd4577 /GR- /c ../../3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
                  ../../3rdparty/chromium/third_party/perfetto\src/trace_processor/storage/metadata.h(63): warning C4068: unknown pragma 'GCC'
                  ../../3rdparty/chromium/third_party/perfetto\src/trace_processor/storage/stats.h(192): warning C4068: unknown pragma 'GCC'
                  ../../3rdparty/chromium/third_party/perfetto\src/trace_processor/tables/macros_internal.h(143): warning C4068: unknown pragma 'GCC'
                  C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\include\algorithm(8002): error C2672: 'swap': no matching overloaded function found
                  C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\include\sstream(907): note: could be 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept'
                  C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\include\algorithm(8002): note: 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_stringstream<_Elem,_Traits,_Alloc> &' from 'T'
                  with
                  [
                  T=perfetto::trace_processor::TimestampedTracePiece
                  ]

                  Cobra91151C Offline
                  Cobra91151C Offline
                  Cobra91151
                  wrote on last edited by
                  #7

                  @Prashant-Lade

                  Hello, @Prashant-Lade!

                  I have the same issue when building QtWebEngine 5.15.14 using VS 2022:

                  [11502/33396] ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DPERFETTO_IMPLEMENTATION -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/zlib /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /wd4117 /D__DATE__= /D__TIME__= /D__TIMESTAMP__= /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /Od /Ob0 /GF /Zi /MDd /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
                  FAILED: obj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj
                  ninja -t msvc -e environment.x64 -- "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64/cl.exe" /nologo /showIncludes -DUSE_AURA=1 -DTOOLKIT_QT -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DPERFETTO_IMPLEMENTATION -Igen -I../../../../qtwebengine/src/3rdparty/chromium -I../../../../qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine/src/3rdparty/chromium/third_party/zlib /Gy /FS /bigobj /utf-8 /Zc:sizedDealloc- /wd4117 /D__DATE__= /D__TIME__= /D__TIMESTAMP__= /W4 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4003 /Od /Ob0 /GF /Zi /MDd /TP /wd4577 /GR- /c ../../../../qtwebengine/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc /Foobj/third_party/perfetto/src/trace_processor/storage_minimal/trace_sorter.obj /Fd"obj/third_party/perfetto/src/trace_processor/storage_minimal_cc.pdb"
                  C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/storage/metadata.h(63): warning C4068: unknown pragma 'GCC'
                  C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/storage/stats.h(192): warning C4068: unknown pragma 'GCC'
                  C:\QtBuild\qt-everywhere-src-5.15.14\qtwebengine\src\3rdparty\chromium\third_party\perfetto\src/trace_processor/tables/macros_internal.h(143): warning C4068: unknown pragma 'GCC'
                  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): error C2672: 'swap': no matching overloaded function found
                  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\sstream(961): note: could be 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept'
                  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\algorithm(8100): note: 'void std::swap(std::basic_stringstream<_Elem,_Traits,_Alloc> &,std::basic_stringstream<_Elem,_Traits,_Alloc> &) noexcept': could not deduce template argument for 'std::basic_stringstream<_Elem,_Traits,_Alloc> &' from 'T'
                          with
                          [
                              T=perfetto::trace_processor::TimestampedTracePiece
                          ]
                  

                  Have you fixed this issue? Can you provide the link for this patch provided by QT support?
                  Thanks.

                  1 Reply Last reply
                  0
                  • Cobra91151C Offline
                    Cobra91151C Offline
                    Cobra91151
                    wrote on last edited by
                    #8

                    Hello!

                    I have added this patch: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/505412
                    And successfully built QtWebEngine 5.15.14 for Visual Studio 2022. This issue is resolved.

                    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