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

QtCreator13源码windows编译_Ninja

 

2.下载并安装llvm

Release LLVM 17.0.5 · llvm/llvm-project · GitHub 

QtCreator13源码windows编译_LLVM_02

 

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

QtCreator13源码windows编译_Qt_03

 生成成功

QtCreator13源码windows编译_windows_04

 开始编译:cmake --build .

打开VS命令行工具

进入QtCreator源码目录,创建build文件夹,然后进入build文件夹,输入 cmake --build .

QtCreator13源码windows编译_Qt_05

 安装 : cmake --install .

安装OK后要配置QT环境:

QtCreator13源码windows编译_Qt_06

运行效果:

QtCreator13源码windows编译_Ninja_07