[Interest] Qt 5.13 QtWebEngine GN Error

Allan Sandfeld Jensen kde at carewolf.com
Tue Apr 23 20:56:36 CEST 2019


On Dienstag, 23. April 2019 19:45:14 CEST Oliver Niebuhr wrote:
> Hi.
> 
> I am constantly running into the following Error:
> 
> Project MESSAGE:
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\build\gen.py
> --no-last-commit-position --out-path
> C:/QtSrcx64/qtwebengine/src/3rdparty/gn/out/Release --cc "C:\Program
> Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64\cl.exe"
> --cxx "C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64\cl.exe"
> --ld "C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64\link.exe"
> [1/11] CXX tools/gn/xml_element_writer.obj
> [2/11] CXX util/sys_info.obj
> [3/11] CXX util/semaphore.obj
> [4/11] CXX util/ticks.obj
> [5/11] CXX util/msg_loop.obj
> [6/11] CXX util/exe_path.obj
> [7/11] CXX util/worker_pool.obj
> [8/11] CXX tools/gn/substitution_writer.obj
> FAILED: tools/gn/substitution_writer.obj
> ninja -t msvc -- C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64\cl.exe
> /nologo /showIncludes /FC @tools/gn/substitution_writer.obj.rsp /c
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools/gn/substitution_writer.cc
> /Fotools/gn/substitution_writer.obj
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 91): error C2039: 'string': is not a member of 'std'
> C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\vector(19):
> note: see declaration of 'std'
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 91): error C3646: 'ApplyPatternToSourceAsString': unknown override specifier
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h
> (92): error C2059: syntax error: 'const'
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 95): error C2238: unexpected token(s) preceding ';'
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 117): error C2039: 'string': is not a member of 'std'
> C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\vector(19):
> note: see declaration of 'std'
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 117): error C2065: 'string': undeclared identifier
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 117): error C2923: 'std::vector': 'string' is not a valid template type
> argument for parameter '_Ty'
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h(
> 117): error C3203: 'allocator': unspecialized class template can't be used
> as a template argument for template parameter '_Alloc', expected a real
> type
> C:\qt5srcgit\qt5\qtwebengine\src\3rdparty\gn\tools\gn\substitution_writer.h
> (137): error C2039: 'string': is not a member of 'std'
> [...shortened here...]
> 
> I am not sure if this is a already known Issue or if the Chromium
> Version coming with Qt 5.13 is not compatible with VS 2019?
> 
None of Qt WebEngine versions are compatible with VS 2019. If you had managed 
to build GN you would have run into our hardcoded check that you are using a 
known compatible compiler. 

You need the following changes that have gone to 5.12 first:

https://codereview.qt-project.org/259283
https://codereview.qt-project.org/259285/

"Fortunately" most of the changes in VS 2019 were introduced gradually in VS 
2017, so it was only a single very minor change.

'Allan





More information about the Interest mailing list