Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.9.0 Beta 1
-
None
-
Windows 10
Visual Studio 2017 (Platformtoolset v141)
Description
Building Qt with Visual Studio 2017 results in the below listed build error in the Webengine module.
It is the same error mentioned here: https://github.com/ClockworkOrigins/clockUtils/pull/1
I applied the mentioned code changes as a hotfix to ninja and compiled WebEngine successfully.
You can find the patches attached
--------- Error Listing (compile output) --------------
[...] ( if not exist Makefile.ninja D:\Toolkits\Qt\build_x86\qtbase\bin\qmake.exe -o Makefile.ninja D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\buildtools\ninja.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile.ninja bootstrapping ninja... warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build. build.cc build_log.cc clean.cc clparser.cc C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\algorithm(946): error C2220: Warnung wird als Fehler interpretiert, es wurde keine object-Datei generiert. C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\algorithm(961): note: Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-Vorlage "_OutIt *std::_Transform_unchecked<char*,char*,int(__cdecl *)(int)>(_InIt,_InIt,_OutIt,_Fn1 &)". with [ _OutIt=char *, _InIt=char *, _Fn1=int (__cdecl *)(int) ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\algorithm(971): note: Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-Vorlage "_OutIt std::_Transform_no_deprecate<_InIt,_OutIt,int(__cdecl *)(int)>(_InIt,_InIt,_OutIt,_Fn1 &)". with [ _OutIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>, _InIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>, _Fn1=int (__cdecl *)(int) ] D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\src\clparser.cc(56): note: Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-Vorlage "_OutIt std::transform<std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,int(__cdecl *)(int)>(_InIt,_InIt,_OutIt,_Fn1)". with [ _OutIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>, _InIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>, _Fn1=int (__cdecl *)(int) ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\algorithm(946): warning C4244: "=": Konvertierung von "int" in "char", möglicher Datenverlust when running: cl /nologo /Zi /W4 /WX /wd4530 /wd4100 /wd4706 /wd4512 /wd4800 /wd4702 /wd4819 /wd4127 /wd4355 /wd4091 /wd4577 /GR- /wd4267 /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /DNINJA_PYTHON="python.exe" /FS /Ox /DNDEBUG /GL -I. -c D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\src\clparser.cc /Fobuild\clparser.obj Traceback (most recent call last): File "D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\configure.py", line 496, in <module> objs += cxx(name) File "D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\configure.py", line 278, in cxx return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs) File "D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\configure.py", line 160, in build self._run_command(self._expand(cmd, local_vars)) File "D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\configure.py", line 185, in _run_command subprocess.check_call(cmdline, shell=True) File "C:\Program Files\Python27\lib\subprocess.py", line 186, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'cl /nologo /Zi /W4 /WX /wd4530 /wd4100 /wd4706 /wd4512 /wd4800 /wd4702 /wd4819 /wd4127 /wd4355 /wd4091 /wd4577 /GR- /wd4267 /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /DNINJA_PYTHON="python.exe" /FS /Ox /DNDEBUG /GL -I. -c D:\Toolkits\Qt\qt-everywhere-enterprise-src-5.9.0-beta\qtwebengine\src\3rdparty\ninja\src\clparser.cc /Fobuild\clparser.obj' returned non-zero exit status 2 Project ERROR: NINJA build error! NMAKE : fatal error U1077: "(": Rückgabe-Code "0x3" Stop. NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2" Stop. NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2" Stop. NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2" Stop.
The mentioned
Attachments
Issue Links
- duplicates
-
QTBUG-59812 Ninja Compile Error with Visual Studio 2017
- Closed