1.下载QtCreator13源码:
https://download.qt.io/snapshots/qtcreator/13.0/13.0.0-beta1/installer_source/latest/qt-creator-opensource-src-13.0.0-beta1.zip
2.下载并安装llvm
Release LLVM 17.0.5 · llvm/llvm-project · GitHub
3.系统 要求: Windows 10 (64-bit) or later ,Qt 6.2 or later, Visual Studio 2019,Python 3.5 or later,
Debugging Tools for Windows,LLVM/Clang 14 or later,CMake,Ninja
4.创建编译目录:
进入QtCreator源码目录,创建build文件夹,然后进入build文件夹
5.生成makefile
cmake -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=C:\Qt\Qt-6.6.0;C:\Program Files\LLVM" C:\Users\qt\Desktop\qt-creator-opensource-src-13.0.0-beta1
生成成功
开始编译:cmake --build .
打开VS命令行工具
进入QtCreator源码目录,创建build文件夹,然后进入build文件夹,输入 cmake --build .
安装 : cmake --install .
安装OK后要配置QT环境:
运行效果: