Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
Qt Creator 12.0.0
-
None
-
Windows 10 and VS2022,
The GitHub commit we used 29811f8.
Description
Qt Creator failed to build with errors C2039, C2061, C3668, C2259 on MSVC on Windows, could you please help look at this issue or provide some workarounds? Thanks in advance.
Steps to reproduce:
- Download the Download attachment: localhelpmanager.i
- Open x64 Native Tools Command Prompt for VS 2022.
- cl.exe /nologo /TP
external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -MD /wd4573 /W3 -Zc:__cplusplus -permissive-utf-8 -std:c++17 -c .\localhelpmanager.i
Error Msg:
[Please see the attached log for detailed log]
F:\gitP\qt-creator\qt-creator\build_amd64>cl.exe /nologo /TP external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -MD /wd4573 /W3 -Zc:__cplusplus -permissive -utf-8 -std:c++17 -c .\localhelpmanager.i
localhelpmanager.i
F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(74): error C2039: 'FindFlags': is not a member of 'Core'
F:\gitP\qt-creator\qt-creator\src\plugins\coreplugin/find/textfindconstants.h(12): note: see declaration of 'Core'
F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(74): error C2061: syntax error: identifier 'FindFlags'
F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(74): error C3668: 'Help::Internal::WebEngineHelpViewer::findText': method with override specifier 'override' did not override any base class methods
F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): error C2259: 'Help::Internal::WebEngineHelpViewer': cannot instantiate abstract class
F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(57): note: see declaration of 'Help::Internal::WebEngineHelpViewer'
F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: due to following members:
F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: 'bool Help::Internal::HelpViewer::findText(const QString &,Utils::FindFlags,bool,bool,bool *)': is abstract
F:\gitP\qt-creator\qt-creator\src\plugins\help\helpviewer.h(57): note: see declaration of 'Help::Internal::HelpViewer::findText'
F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): error C2259: 'Help::Internal::WebEngineHelpViewer': cannot instantiate abstract class
F:\gitP\qt-creator\qt-creator\src\plugins\help\webenginehelpviewer.h(57): note: see declaration of 'Help::Internal::WebEngineHelpViewer'
F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: due to following members:
F:\gitP\qt-creator\qt-creator\src\plugins\help\localhelpmanager.cpp(323): note: 'bool Help::Internal::HelpViewer::findText(const QString &,Utils::FindFlags,bool,bool,bool *)': is abstract
F:\gitP\qt-creator\qt-creator\src\plugins\help\helpviewer.h(57): note: see declaration of 'Help::Internal::HelpViewer::findText'