使用文档参考
git clone https://github.com/vseasky/VersaAssistant.git
- QT版本 5.14.2
- Download.Qt
- MingW-64/32
打开设置面板,进行工具链配置
配置 CMake
添加 CMake配置
- Release (Qt MinGW 64)
- 工具链选择
Qt MinGW 64
- 构建目录:
build\release\x64
- 环境:
- CMAKE_PREFIX_PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_64;
- PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_64/bin
- 工具链选择
- Debug (Qt MinGW 64)
- 工具链选择
Qt MinGW 64
- 构建目录:
build\debug\x64
- 环境:
- CMAKE_PREFIX_PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_64;
- PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_64/bin
- 工具链选择
- Release (Qt MinGW 32)
- 工具链选择
Qt MinGW 32
- 构建目录:
build\release\x86
- 环境:
- CMAKE_PREFIX_PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_32;
- PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_32/bin
- 工具链选择
- Debug (Qt MinGW 32)
- 工具链选择
Qt MinGW 32
- 构建目录:
build\debug\x86
- 环境:
- CMAKE_PREFIX_PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_32;
- PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_32/bin
- 工具链选择
新建两个模板
- VersaAssistant (64)
- PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_64/bin
- VersaAssistant (32)
- PATH=D:/SoftwareTools/Qt/Qt5.14.2/5.14.2/mingw73_32/bin
清空 build
构建输出目录
重新进行构建
如果出现 VersaAppVersionConfig.h
报错,则需要再次进行重构
然后重新编译即可
输出文件分别在
- build/release/platform/x64/bin
- build/release/platform/x86/bin
- build/debug/platform/x64/bin
- build/debug/platform/x86/bin
windeployqt VersaAssistant.exe