Details
Description
Hello, everyone,
For Qt Webengine builds using mingw-w64, Qt Build System print message:
Qt WebEngine on Windows requires a Windows SDK version 10.0.10586 or newer
which isn't true. Qt Webengine unable to be built using mingw-w64 with or without Windows SDK, since this compiler not supported by Chromium.
For Qt Webengine builds using ICC build finishes with error:
( if not exist Makefile.ninja c:\libQT-5.9.1\build\qtbase\bin\qmake.exe -o Makefile.ninja c:\libQT-5.9.1\build\qtwebengine\src\buildtools\ninja.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\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 C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\include\math.h(1574): error C2220: warning treated as error - no 'object' file generated C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\include\math.h(1574): warning C4005: 'HUGE_VALF': macro redefinition C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt\../ucrt/math.h(91): note: see previous definition of 'HUGE_VALF' C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\include\math.h(1576): warning C4005: 'HUGE_VALL': macro redefinition C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt\../ucrt/math.h(92): note: see previous definition of 'HUGE_VALL' C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\include\math.h(1578): warning C4005: 'HUGE_VAL': macro redefinition C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt\../ucrt/math.h(90): note: see previous definition of 'HUGE_VAL' when running: cl /nologo /Zi /W4 /WX /wd4530 /wd4100 /wd4706 /wd4244 /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 .\src\build.cc /Fobuild\build.obj Traceback (most recent call last): File "c:\libQT-5.9.1\build\qtwebengine\src\3rdparty\ninja\configure.py", line 496, in <module> objs += cxx(name) File "c:\libQT-5.9.1\build\qtwebengine\src\3rdparty\ninja\configure.py", line 278, in cxx return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs) File "c:\libQT-5.9.1\build\qtwebengine\src\3rdparty\ninja\configure.py", line 160, in build self._run_command(self._expand(cmd, local_vars)) File "c:\libQT-5.9.1\build\qtwebengine\src\3rdparty\ninja\configure.py", line 185, in _run_command subprocess.check_call(cmdline, shell=True) File "C:\ProgramData\Python64\lib\subprocess.py", line 186, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'cl /nologo /Zi /W4 /WX /wd4530 /wd4100 /wd4706 /wd4244 /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 .\src\build.cc /Fobuild\build.obj' returned non-zero exit status 2 Project ERROR: NINJA build error! NMAKE : fatal error U1077: '(' : return code '0x3' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
since ICC on Windows trying to be MSVC and thus passes Qt Build System checks. This compiler not supported by Chromium too.
PR # 201151 fixes all above.
Alexander