Unsolved MSVC2017 x86 compiled Qt 5.11.0 error
-
Using MSVC2017 x86 console to compile Qt5.11.0 parameters is as follows:
configure -prefix D:\Qt\5.11.0\qt-msvc-2017-x86 -docdir D:\Qt\Docs\Qt-5.11.0 -openssl -ID:\openssl\include -LD:\openssl\lib -openssl-linked -icu -LD:\icu\lib -ID:\icu\include -debug-and-release ICU_LIBS_DEBUG="-ID:\icu\include -LD:\icu\lib -licuio -licutest -licutu -licuin -liculx -licule -licuuc -licudt" ICU_PREFIX=d:\icu -qt-libpng -qt-libjpeg -opengl dynamic -qt-freetype -qt-freetype -qt-pcre -qt-doubleconversion -nomake examples -nomake tests -mp -qt-assimp ICU_LIBS_RELEASE="-ID:\icu\include -LD:\icu\lib -licuio -licutest -licutu -licuin -liculx -licule -licuuc -licudt" -qt-zlib -ltcg -plugin-manifests -qt-sqlite -system-proxies -pch OPENSSL_LIBS="-LD:\openssl\lib -llibssl -llibcrypto" -recheck-all
Compiler errors occurred during the execution of nmake compilation.
cl -c -FIqt_pch.h -Yuqt_pch.h -Fp.pch\debug\Qt5Cored_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zi -MDd -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\Qt5Cored.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -D_WINDLL -I. -I..\3rdparty\zlib\src -Iglobal -I..\3rdparty\harfbuzz\src -I..\3rdparty\md5 -I..\3rdparty\md4 -I..\3rdparty\sha3 -I..\3rdparty\double-conversion\include -I..\3rdparty\double-conversion\include\double-conversion -I....\include -I....\include\QtCore -I....\include\QtCore\5.11.0 -I....\include\QtCore\5.11.0\QtCore -Itmp -I.moc\debug -I.tracegen\debug -I..\3rdparty\pcre2\src -ID:\openssl\include -ID:\icu\include -I....\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\jack\AppData\Local\Temp\nm44AF.tmp
qcollator_win.cpp
tools\qcollator_win.cpp(65): error C2065:"LocaleID": undeclared identifier
tools\qcollator_win.cpp(71): error C2296: “|=”:illegal, left operand contains "CollatorType" type.
tools\qcollator_win.cpp(74): error C2296: “|=”: illegal, left operand contains "CollatorType" type.
tools\qcollator_win.cpp(77): error C2296: “|=”: illegal, left operand contains "CollatorType" type.
tools\qcollator_win.cpp(98): error C2039: "localeID": not a member of "QCollatorPrivate".
d:\qt\5.11.0\src\qtbase\src\corelib\tools\qcollator_p.h(89): note: see the declaration of "QCollatorPrivate"
tools\qcollator_win.cpp(124): error C2039: “localeID”: not a member of "QCollatorPrivate".
d:\qt\5.11.0\src\qtbase\src\corelib\tools\qcollator_p.h(89): note: see the declaration of "QCollatorPrivate"
tools\qcollator_win.cpp(124): error C2297: “|”: the right operand contains the "CollatorType" type.
tools\qcollator_win.cpp(126): error C2660: “LCMapStringW”: the function does not accept 5 parameters
tools\qcollator_win.cpp(134): error C2039: “localeID”: not a member of "QCollatorPrivate".
d:\qt\5.11.0\src\qtbase\src\corelib\tools\qcollator_p.h(89): note: see the declaration of "QCollatorPrivate"
tools\qcollator_win.cpp(134): error C2297: “|”: the right operand contains the "CollatorType" type.
tools\qcollator_win.cpp(136): error C2660: “LCMapStringW”: the function does not accept 5 parameters
tools\qcollator_win.cpp(151): error C2039: “compare”: not a member of "QByteArray"
d:\qt\5.11.0\src\qtbase\include\qtcore../../src/corelib/io/qiodevice.h(59): note: see the declaration of "QByteArray"
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\cl.EXE"”: Return code "0x2"What are the best ways to solve the above mistakes?