-
进入 Native Tools Command Prompt for VS2017
-
创建一个目录
%DIR%
,cd /d %DIR%
, 这个目录是构建目录 -
运行
PATH\TO\QT\SOURCE\configure.bat -developer-build -confirm-license -debug-and-release -opensource -platform win32-msvc -opengl desktop -static -nomake examples -nomake tests -mp -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -prefix c:\qt\Static\vs2017_x64_5.10.1
, 会在目录下生成构建需要的文件 -
nmake, 然后 nmake install.
That's it.