Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot compile Qt 5.15 on windows 10
Qt 6.11 is out! See what's new in the release blog

Cannot compile Qt 5.15 on windows 10

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dr3mro
    wrote on last edited by
    #1

    I have Qt 5.12.9 compiled successfully using MSVC 2017 on windows 10 machine and today I have tried to compile Qt 5.15.0 using MSVC 2019 but it failed

    this is the error message I get

    cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib -I. -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\zlib\src -Iglobal -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md5 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md4 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\sha3 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\double-conversion\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\harfbuzz\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IC:\Qt\5.15.0\src-5.15.0\qtbase\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0\QtCore -I..\..\include\QtCore\5.15.0 -I..\..\include\QtCore\5.15.0\QtCore -Itmp -I.moc\release -I.tracegen\release -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\pcre2\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\Amr\AppData\Local\Temp\qmimemagicrulematcher.obj.6132.62953.jom
    qmimemagicrulematcher.cpp
    qmimetypeparser.cpp
    qjsonparser.cpp
            cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib -I. -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\zlib\src -Iglobal -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md5 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md4 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\sha3 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\double-conversion\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\harfbuzz\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IC:\Qt\5.15.0\src-5.15.0\qtbase\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0\QtCore -I..\..\include\QtCore\5.15.0 -I..\..\include\QtCore\5.15.0\QtCore -Itmp -I.moc\release -I.tracegen\release -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\pcre2\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\Amr\AppData\Local\Temp\qmimemagicrule.obj.6132.63813.jom
    qmimemagicrule.cpp
    qmimeglobpattern.cpp
    qxmlstream.cpp
            cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib -I. -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\zlib\src -Iglobal -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md5 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md4 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\sha3 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\double-conversion\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\harfbuzz\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IC:\Qt\5.15.0\src-5.15.0\qtbase\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0\QtCore -I..\..\include\QtCore\5.15.0 -I..\..\include\QtCore\5.15.0\QtCore -Itmp -I.moc\release -I.tracegen\release -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\pcre2\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\Amr\AppData\Local\Temp\qmimeprovider.obj.6132.64532.jom
    qmimeprovider.cpp
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(88): error C2479: 'QMimeProviderBase::{ctor}': 'allocate( )' is only valid for data items of static extent
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(88): error C2024: 'alignas' attribute applies to variables, data members and tag types only
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(632): error C2065: 'mimetype_database': undeclared identifier
    qxmlutils.cpp
    qcborstreamwriter.cpp
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(633): error C2065: 'mimetype_database': undeclared identifier
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(633): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(633): error C2338: Compressed MIME database is larger than the original size
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(635): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(635): error C2338: Bundled MIME database is too big
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(637): error C2065: 'mimetype_database': undeclared identifier
    C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(638): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
    jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\src\corelib\Makefile.Release [.obj\release\qmimeprovider.obj] Error 2
            C:\Qt\5.15.0\src-5.15.0\build\qtbase\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC --compiler-flavor=msvc --include C:/Qt/5.15.0/src-5.15.0/build/qtbase/src/corelib/.moc/release/moc_predefs.h -IC:/Qt/5.15.0/src-5.15.0/qtbase/mkspecs/win32-msvc -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/corelib -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/zlib/src -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/src/corelib/global -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/md5 -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/md4 -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/sha3 -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/double-conversion/include -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/harfbuzz/src -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/tinycbor/src -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/corelib/.rcc/release -IC:/Qt/5.15.0/src-5.15.0/qtbase/include -IC:/Qt/5.15.0/src-5.15.0/qtbase/include/QtCore -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include/QtCore -IC:/Qt/5.15.0/src-5.15.0/qtbase/include/QtCore/5.15.0 -IC:/Qt/5.15.0/src-5.15.0/qtbase/include/QtCore/5.15.0/QtCore -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include/QtCore/5.15.0 -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include/QtCore/5.15.0/QtCore -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/corelib/tmp -I. -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" --output-json C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\animation\qabstractanimation.h -o .moc\release\moc_qabstractanimation.cpp
    jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\src\corelib\Makefile [release] Error 2
    jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\src\Makefile [sub-corelib-make_first] Error 2
    jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\Makefile [sub-src-make_first] Error 2
    jom: C:\Qt\5.15.0\src-5.15.0\build\Makefile [module-qtbase-make_first] Error 2
    

    and here is my steps

    • install VS 2019 + ATL + MVC + Python 2 x86 and add it into top of path
    • add lib,site-packages,scripts subfolders
    • install LLVM x86
    • install CMAKE and add to PATH
    • install Active Perl and add to Path
    • add env Var LLVM_INSTALL_DIR = C:\Program Files (x86)\LLVM\
    • add env Var CMAKE_PREFIX_PATH = C:\Qt\5.15.0\msvc2019
    • Install Qt for msvc
    • add C:\Qt\Tools\QtCreator\bin to path
    • edit "C:\Qt\Sources\qt-everywhere-src-5.15.0\qtbase\mkspecs\common\msvc-desktop.conf"
    [Before]
    QMAKE_CFLAGS_RELEASE = -O2 -MD
    QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi
    QMAKE_CFLAGS_DEBUG = -Zi -MDd
    
    [After]
    QMAKE_CFLAGS_RELEASE = -O2 -MT
    QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
    QMAKE_CFLAGS_DEBUG = -Zi -MTd
    

    and here is my config

    ..\configure.bat  -release -static -static-runtime -opensource -confirm-license -platform win32-msvc -opengl desktop -no-iconv -no-dbus -no-icu -no-fontconfig -no-freetype -qt-harfbuzz -qt-doubleconversion -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebview -skip qtscript -skip qtwebengine -mp -no-warnings-are-errors -no-qml-debug -strip -sql-sqlite -sql-odbc -ssl -openssl-linked -nomake tools OPENSSL_PREFIX=C:\OpenSSL\MSVC2017s  OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32 -lWS2_32 -lCRYPT32 -llibcrypto -llibssl" -prefix C:\Qt\5.15.0\msvc2019s
    

    then

    jom 
    jom install
    

    here is MSVC config

    ```
    

    "Microsoft.VisualStudio.Component.CoreEditor",
    "Microsoft.VisualStudio.Workload.CoreEditor",
    "Microsoft.VisualStudio.Component.NuGet",
    "Microsoft.Net.Component.4.6.1.TargetingPack",
    "Microsoft.VisualStudio.Component.Roslyn.Compiler",
    "Microsoft.Net.Component.4.8.SDK",
    "Microsoft.Component.MSBuild",
    "Microsoft.VisualStudio.Component.TextTemplating",
    "Microsoft.VisualStudio.Component.IntelliCode",
    "Component.Microsoft.VisualStudio.LiveShare",
    "Microsoft.VisualStudio.Component.VC.CoreIde",
    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
    "Microsoft.VisualStudio.Component.Graphics.Tools",
    "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
    "Microsoft.VisualStudio.Component.Debugger.JustInTime",
    "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
    "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
    "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
    "Microsoft.VisualStudio.Component.VC.CMake.Project",
    "Microsoft.VisualStudio.Component.VC.ATL",
    "Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest",
    "Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest",
    "Microsoft.VisualStudio.Component.VC.ATLMFC",
    "Microsoft.VisualStudio.Component.VC.CLI.Support",
    "Microsoft.VisualStudio.Component.VC.ASAN",
    "Microsoft.VisualStudio.Component.VC.Modules.x86.x64",
    "Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
    "Microsoft.VisualStudio.Component.VC.Llvm.Clang",
    "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang",
    "Microsoft.VisualStudio.Workload.NativeDesktop",
    "Microsoft.VisualStudio.Component.Windows10SDK.19041",
    "Component.GitHub.VisualStudio",
    "Microsoft.VisualStudio.Component.Git"
    ]

    
    
    and finally install python 3.6  as it is needed for Qt creator
    
    any help is really appreciated
    W 1 Reply Last reply
    0
    • Q Offline
      Q Offline
      QuiNo
      wrote on last edited by
      #2

      hello @dr3mro , did found a solution?

      I have the same issue here with Qt 5.15.3 and msvc19.

      Thanks for any help.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by Christian Ehrlicher
        #3

        @QuiNo said in Cannot compile Qt 5.15 on windows 10:

        here with Qt 5.15.3

        Since you've 5.15.3 I assume you've a commercial license so I would suggest to ask the Qt support for help. I would guess the wrong cl.exe is picked up (not the one from msvc 2019)

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          QuiNo
          wrote on last edited by
          #4

          Thanks @Christian-Ehrlicher, I will contact Qt Support.

          1 Reply Last reply
          0
          • D dr3mro

            I have Qt 5.12.9 compiled successfully using MSVC 2017 on windows 10 machine and today I have tried to compile Qt 5.15.0 using MSVC 2019 but it failed

            this is the error message I get

            cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib -I. -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\zlib\src -Iglobal -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md5 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md4 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\sha3 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\double-conversion\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\harfbuzz\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IC:\Qt\5.15.0\src-5.15.0\qtbase\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0\QtCore -I..\..\include\QtCore\5.15.0 -I..\..\include\QtCore\5.15.0\QtCore -Itmp -I.moc\release -I.tracegen\release -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\pcre2\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\Amr\AppData\Local\Temp\qmimemagicrulematcher.obj.6132.62953.jom
            qmimemagicrulematcher.cpp
            qmimetypeparser.cpp
            qjsonparser.cpp
                    cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib -I. -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\zlib\src -Iglobal -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md5 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md4 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\sha3 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\double-conversion\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\harfbuzz\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IC:\Qt\5.15.0\src-5.15.0\qtbase\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0\QtCore -I..\..\include\QtCore\5.15.0 -I..\..\include\QtCore\5.15.0\QtCore -Itmp -I.moc\release -I.tracegen\release -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\pcre2\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\Amr\AppData\Local\Temp\qmimemagicrule.obj.6132.63813.jom
            qmimemagicrule.cpp
            qmimeglobpattern.cpp
            qxmlstream.cpp
                    cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib -I. -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\zlib\src -Iglobal -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md5 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\md4 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\sha3 -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\double-conversion\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\harfbuzz\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\tinycbor\src -I.rcc/release -IC:\Qt\5.15.0\src-5.15.0\qtbase\include -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\src-5.15.0\qtbase\include\QtCore\5.15.0\QtCore -I..\..\include\QtCore\5.15.0 -I..\..\include\QtCore\5.15.0\QtCore -Itmp -I.moc\release -I.tracegen\release -IC:\Qt\5.15.0\src-5.15.0\qtbase\src\3rdparty\pcre2\src -IC:\Qt\5.15.0\src-5.15.0\qtbase\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\Amr\AppData\Local\Temp\qmimeprovider.obj.6132.64532.jom
            qmimeprovider.cpp
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(88): error C2479: 'QMimeProviderBase::{ctor}': 'allocate( )' is only valid for data items of static extent
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(88): error C2024: 'alignas' attribute applies to variables, data members and tag types only
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(632): error C2065: 'mimetype_database': undeclared identifier
            qxmlutils.cpp
            qcborstreamwriter.cpp
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(633): error C2065: 'mimetype_database': undeclared identifier
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(633): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(633): error C2338: Compressed MIME database is larger than the original size
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(635): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(635): error C2338: Bundled MIME database is too big
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(637): error C2065: 'mimetype_database': undeclared identifier
            C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\mimetypes\qmimeprovider.cpp(638): error C2065: 'MimeTypeDatabaseOriginalSize': undeclared identifier
            jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\src\corelib\Makefile.Release [.obj\release\qmimeprovider.obj] Error 2
                    C:\Qt\5.15.0\src-5.15.0\build\qtbase\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -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 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC --compiler-flavor=msvc --include C:/Qt/5.15.0/src-5.15.0/build/qtbase/src/corelib/.moc/release/moc_predefs.h -IC:/Qt/5.15.0/src-5.15.0/qtbase/mkspecs/win32-msvc -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/corelib -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/zlib/src -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/src/corelib/global -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/md5 -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/md4 -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/sha3 -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/double-conversion/include -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/harfbuzz/src -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/3rdparty/tinycbor/src -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/corelib/.rcc/release -IC:/Qt/5.15.0/src-5.15.0/qtbase/include -IC:/Qt/5.15.0/src-5.15.0/qtbase/include/QtCore -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include/QtCore -IC:/Qt/5.15.0/src-5.15.0/qtbase/include/QtCore/5.15.0 -IC:/Qt/5.15.0/src-5.15.0/qtbase/include/QtCore/5.15.0/QtCore -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include/QtCore/5.15.0 -IC:/Qt/5.15.0/src-5.15.0/build/qtbase/include/QtCore/5.15.0/QtCore -IC:/Qt/5.15.0/src-5.15.0/qtbase/src/corelib/tmp -I. -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" --output-json C:\Qt\5.15.0\src-5.15.0\qtbase\src\corelib\animation\qabstractanimation.h -o .moc\release\moc_qabstractanimation.cpp
            jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\src\corelib\Makefile [release] Error 2
            jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\src\Makefile [sub-corelib-make_first] Error 2
            jom: C:\Qt\5.15.0\src-5.15.0\build\qtbase\Makefile [sub-src-make_first] Error 2
            jom: C:\Qt\5.15.0\src-5.15.0\build\Makefile [module-qtbase-make_first] Error 2
            

            and here is my steps

            • install VS 2019 + ATL + MVC + Python 2 x86 and add it into top of path
            • add lib,site-packages,scripts subfolders
            • install LLVM x86
            • install CMAKE and add to PATH
            • install Active Perl and add to Path
            • add env Var LLVM_INSTALL_DIR = C:\Program Files (x86)\LLVM\
            • add env Var CMAKE_PREFIX_PATH = C:\Qt\5.15.0\msvc2019
            • Install Qt for msvc
            • add C:\Qt\Tools\QtCreator\bin to path
            • edit "C:\Qt\Sources\qt-everywhere-src-5.15.0\qtbase\mkspecs\common\msvc-desktop.conf"
            [Before]
            QMAKE_CFLAGS_RELEASE = -O2 -MD
            QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi
            QMAKE_CFLAGS_DEBUG = -Zi -MDd
            
            [After]
            QMAKE_CFLAGS_RELEASE = -O2 -MT
            QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
            QMAKE_CFLAGS_DEBUG = -Zi -MTd
            

            and here is my config

            ..\configure.bat  -release -static -static-runtime -opensource -confirm-license -platform win32-msvc -opengl desktop -no-iconv -no-dbus -no-icu -no-fontconfig -no-freetype -qt-harfbuzz -qt-doubleconversion -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebview -skip qtscript -skip qtwebengine -mp -no-warnings-are-errors -no-qml-debug -strip -sql-sqlite -sql-odbc -ssl -openssl-linked -nomake tools OPENSSL_PREFIX=C:\OpenSSL\MSVC2017s  OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32 -lWS2_32 -lCRYPT32 -llibcrypto -llibssl" -prefix C:\Qt\5.15.0\msvc2019s
            

            then

            jom 
            jom install
            

            here is MSVC config

            ```
            

            "Microsoft.VisualStudio.Component.CoreEditor",
            "Microsoft.VisualStudio.Workload.CoreEditor",
            "Microsoft.VisualStudio.Component.NuGet",
            "Microsoft.Net.Component.4.6.1.TargetingPack",
            "Microsoft.VisualStudio.Component.Roslyn.Compiler",
            "Microsoft.Net.Component.4.8.SDK",
            "Microsoft.Component.MSBuild",
            "Microsoft.VisualStudio.Component.TextTemplating",
            "Microsoft.VisualStudio.Component.IntelliCode",
            "Component.Microsoft.VisualStudio.LiveShare",
            "Microsoft.VisualStudio.Component.VC.CoreIde",
            "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
            "Microsoft.VisualStudio.Component.Graphics.Tools",
            "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
            "Microsoft.VisualStudio.Component.Debugger.JustInTime",
            "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
            "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
            "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
            "Microsoft.VisualStudio.Component.VC.CMake.Project",
            "Microsoft.VisualStudio.Component.VC.ATL",
            "Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest",
            "Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest",
            "Microsoft.VisualStudio.Component.VC.ATLMFC",
            "Microsoft.VisualStudio.Component.VC.CLI.Support",
            "Microsoft.VisualStudio.Component.VC.ASAN",
            "Microsoft.VisualStudio.Component.VC.Modules.x86.x64",
            "Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
            "Microsoft.VisualStudio.Component.VC.Llvm.Clang",
            "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang",
            "Microsoft.VisualStudio.Workload.NativeDesktop",
            "Microsoft.VisualStudio.Component.Windows10SDK.19041",
            "Component.GitHub.VisualStudio",
            "Microsoft.VisualStudio.Component.Git"
            ]

            
            
            and finally install python 3.6  as it is needed for Qt creator
            
            any help is really appreciated
            W Offline
            W Offline
            wangqiuping
            wrote on last edited by
            #5

            @dr3mro I have the same issue here with Qt 5.15.3 and msvc2019. can you share your method final?

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved