译好的下载链接
Qt5.15.8-Windows-x86-VS2017
Qt5.15.8-Windows-x86-64-VS2017
Qt5.15.8-Windows-x86-VS2019
Qt5.15.8-Windows-x86-64-VS2019
1.准备win10SDK:
安装 Windows SDK 10.0.18362 使用VS019即可自动安装该SDK
Windows SDK 10.0.18362
Windows SDK 10.0.17763
2.准备qt源码
qt-everywhere-opensource-src-5.15.7.zip
3.安装 ActivePerl
C:\Perl64
(安装包暂无)
4.准备python 2
下载 安装 python-2.7.18.msi
安装位置 C:\Python27
这里特别注意python2环境不要配置错误
可以在命令行中检测下,环境是否正常
(安装包暂无)
5.准备 安装 GnuWin32
安装位置:D:\GnuWin32
D:\win_flex_bison
(安装包暂无)
6.安装 Win64OpenSSL
openssl
7.安装 ICU4C
icu4c-68-2-Win64-MSVC2019
D:\icu4c
8.安装 libclang
也可以不编译qt的 qdoc.exe模块,如不编译,则不需要配置下面的环境
libclang-release_120-based-windows-vs2019_64.7z
D:\libclang
9.编译qt源码的配置命令:
在该窗口中输入:
configure -opensource -confirm-license -verbose -platform win32-msvc2019 -release -mp -icu -qt-pcre -qt-zlib -openssl -opengl dynamic -qt-freetype -qt-harfbuzz -qt-libpng -qt-libjpeg -no-sql-mysql -qt-sqlite -qt-tiff -qt-webp -webengine-proprietary-codecs -nomake tests -nomake examples -prefix "D:\Qt\Qt5.15.7\5.15.7\msvc2019_64" -skip qtdoc -skip qtquickcontrols -skip qtscript -skip qtxmlpatterns -I D:\icu4c\include -L D:\icu4c\lib64 -I D:\openssl\include -L D:\openssl\lib
注意:这里虽然配置了libclang的路径在path中但是实际上编译链接会报错,所以需要在configure中取指定一下:
-I D:\libclang\include -L D:\libclang\lib
编译:
nmake && nmake install
注意:
编译好的qt包中无WebEngine
卷 DATA 的文件夹 PATH 列表
卷序列号为 DECA-502C
D:.
└─5.15.7
└─msvc2019_64
├─bin
├─doc
│ ├─config
│ └─global
│ ├─externalsites
│ ├─includes
│ │ └─standardpath
│ ├─includes-online
│ └─template
│ ├─images
│ ├─scripts
│ └─style
├─include
│ ├─ActiveQt
│ │ └─5.15.7
│ │ └─ActiveQt
│ │ └─private
│ ├─Qt3DAnimation
│ │ └─5.15.7
│ │ └─Qt3DAnimation
│ │ └─private
│ ├─Qt3DCore
│ │ └─5.15.7
│ │ └─Qt3DCore
│ │ └─private
│ ├─Qt3DExtras
│ │ └─5.15.7
│ │ └─Qt3DExtras
│ │ └─private
│ ├─Qt3DInput
│ │ └─5.15.7
│ │ └─Qt3DInput
│ │ └─private
│ ├─Qt3DLogic
│ │ └─5.15.7
│ │ └─Qt3DLogic
│ │ └─private
│ ├─Qt3DQuick
│ │ └─5.15.7
│ │ └─Qt3DQuick
│ │ └─private
│ ├─Qt3DQuickAnimation
│ │ └─5.15.7
│ │ └─Qt3DQuickAnimation
│ │ └─private
│ ├─Qt3DQuickExtras
│ │ └─5.15.7
│ │ └─Qt3DQuickExtras
│ │ └─private
│ ├─Qt3DQuickInput
│ │ └─5.15.7
│ │ └─Qt3DQuickInput
│ │ └─private
│ ├─Qt3DQuickRender
│ │ └─5.15.7
│ │ └─Qt3DQuickRender
│ │ └─private
│ ├─Qt3DQuickScene2D
│ │ └─5.15.7
│ │ └─Qt3DQuickScene2D
│ │ └─private
│ ├─Qt3DRender
│ │ └─5.15.7
│ │