1.前言
qt opensource 下载地址:http://download.qt.io/archive/qt/5.14/5.14.2/
一般在windows 编译qt 有两种方案:
1. mingw32 + g++
2. windows 自带的编译器 cl.exe
2.mingw-32 g++ 编译
采用mingw-32 和 g++ 编译.
1. mingw32 环境配置 (请自行百度)
2. 配置源码
2.1. 进入源码目录配置
.\configure -prefix E:\thrid-dll\Qt-5-15 -debug-and-release -platform win32-g++ -shared -opensource
错误原因请查看
https://sourceware.org/legacy-ml/cygwin/2015-12/msg00121.html
direct.h 在某些机器中POSIX 不支持.所以采用第二种.
3.windows自带编译器
windwos 编译器一般需要安装 visual studio ,本人安装的是 visual studio 2019 preview 版本.