准备⼯作提前安装VS2019,然后安装README⽂件中要求安装依赖⼯具,说明如下Windows:--------Open a command prompt.
Ensure that the following tools can be found in the path:* Supported compiler (Visual Studio 2012 or later,MinGW-builds gcc 4.9 or later)
* Perl version 5.12 or later [http://www.activestate.com/activeperl/]
* Python version 2.7 or later [http://www.activestate.com/activepython/]* Ruby version 1.9.3 or later [http://rubyinstaller.org/]cd configure -prefix %CD%\\qtbase To accelerate the bootstrap of qmake with MSVC, it may be useful to pass\"-make-tool jom\" on the configure command line. If you do not use jom,adding \"/MP\" to the CL environment variable is a good idea.More details follow.Build! 1、解压qt-everywhere-src-5.15.0到D盘 2、修改D:\\qt-everywhere-src-5.15.0\\qtbase\\mkspecs\\common\\msvc-desktop.confQMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_OPTIMIZE -MT QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MTQMAKE_CFLAGS_DEBUG = -Zi -MTd 3、打开x86 Native Tools Command Prompt for VS 2019 (建议管理员权限)cd D:\\qt-everywhere-src-5.15.0D: 4、配置编译参数 configure.bat -static -prefix \"C:\\Qt\\5.15.0\\msvc2019_static\" -confirm-license -opensource -debug-and-release -platform win32-msvc -nomake examples -nomake tests -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -mp5、编译和安装,这⾥使⽤jom需要单独安装D:\\jom_1_1_3\\jom.exe D:\\jom_1_1_3\\jom.exe install 因篇幅问题不能全部显示,请点此查看更多更全内容