Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Error in building QT 5.15.12 from sources with QtWebEngine on VS2022
QtWS25 Last Chance

Error in building QT 5.15.12 from sources with QtWebEngine on VS2022

Scheduled Pinned Locked Moved Unsolved QtWebEngine
7 Posts 4 Posters 1.4k 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.
  • P Offline
    P Offline
    Prashant Lade
    wrote on last edited by
    #1

    I had issues in compiling Qt 5.15.12 with webengine on VS2022. This thread
    https://forum.qt.io/topic/144522/qtwebengine-compilation-issue-using-visual-studio-2022
    was very helpful to fix this error. I updated my visual studio using available auto updates in my visual studio 2022 and my errors got changed as below. There are 2 possible reasons.

    1. Visual studio 2022 needs some more changes and a patch or update is needed

    2. QtWebEngine code needs a patch to adapt to VS2022 changes.

    Both the problems are not in my control. 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
    ]

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Prashant Lade
      wrote on last edited by
      #2

      This issue is resolved for windows after a patch was delivered by QT team. They will probably publish the patch in next version.
      Thank you all for reading.

      V 1 Reply Last reply
      0
      • P Prashant Lade

        This issue is resolved for windows after a patch was delivered by QT team. They will probably publish the patch in next version.
        Thank you all for reading.

        V Offline
        V Offline
        Vijaykarthikeyan
        wrote on last edited by
        #3

        @Prashant-Lade how you resolved..please tell me

        N 1 Reply Last reply
        0
        • V Vijaykarthikeyan

          @Prashant-Lade how you resolved..please tell me

          N Offline
          N Offline
          neodiz
          wrote on last edited by
          #4

          @Vijaykarthikeyan any news for this topic?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Prashant Lade
            wrote on last edited by
            #5

            Not sure if you have already resolved this topic.
            There is a patch provided by QT support. Also note the link I provided in my original message. That has some valuable information and fixes.

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

              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
                      ]
              

              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
                #7

                Hello!

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

                1 Reply Last reply
                1

                • Login

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