单独编译QT子模块
系统 win
 qt-everywhere-src-5.12.12
下载源码:
 https://download.qt.io/archive/qt/5.12/5.12.12/single/
参考:
 https://doc.qt.io/qt-5/windows-building.html
安装依赖
https://doc.qt.io/qt-5/windows-requirements.html
-  Perl 
-  Python 
-  编译器: 
 GCC (MinGW-builds) ,
 我这里安装了qt5.12.12 mingw64 ,编译器路径是C:\Qt\Qt5.12.12\Tools\mingw730_64\bin
 打开命令行Qt 5.12.12 (MinGW 7.3.0 64-bit)
  
或者这个版本(同上面 Qt 5.12.12 (MinGW 7.3.0 64-bit)的版本,为了与官方默认相同,推荐选择这个,当然更高的版本也是可以的):
 mingw-w64-x86_64-7.3.0-release-posix-seh-rt_v5-rev0.7z
添加环境变量
D:\software\strawberry\perl\bin
 D:\software\jom
 C:\software\CMake\bin
 D:\software\mingw64\x86_64-7.3.0-release-posix-seh-rt_v5-rev0\bin
 D:\software\rubyinstaller-3.4.1-1-x64\bin
编译 qtcore 模块为例
打开命令行 Qt 5.12.12 (MinGW 7.3.0 64-bit)切换到qt源码目录
 执行配置:
 安装目标位置  C:/Qt/5.12.12/core
cd /d D:\workspace\qtproj\qt-everywhere-src-5.12.12
configure  -opensource -confirm-license -debug-and-release  -no-opengl  -nomake tests   -prefix C:/Qt/5.12.12/core  -platform win32-g++   -recheck-all
编译qtcore 模块
mingw32-make -j48 module-qtbase
安装qtcore 到目标位置  C:/Qt/5.12.12/core
mingw32-make install -C qtbase/src/corelib










![[Deep Learning] Anaconda+CUDA+CuDNN+Pytorch(GPU)环境配置-2025](https://i-blog.csdnimg.cn/direct/55fa37ad880a4beab115d3389f3a94cb.png)








