-
Install CMake on your computer.
-
Append the directory of
cmake.exe
into envPATH
. (If it doesn't)
-
Go to the Releases page to download the zip file.
-
Extract the
ninja.exe
from the zip file. -
Add the directory of
ninja.exe
into envPATH
.NOTE: Personally, I tend to put it in the bin folder of
cmake
.
-
-
Download BuildTools, Community, or Professional...etc.
-
You can either use WinGet command to install.
::Download Visual Studio 2019 BuildTools winget install Microsoft.VisualStudio.2019.BuildTools ::Download Visual Studio 2019 Community winget install Microsoft.VisualStudio.2019.Community
-
Or go to the Official Website page to download the installer.
-
-
Click the following Workloads:
- Desktop development with C++
- Universal Windows Platform development
- Mobile development with C++
-
Append the directory of
vcvarsall.bat
into envPATH
.::Location of vcvarsall.bat. ::For example: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build
-
Install MSYS2 on Windows.
-
You can either use WinGet command to install.
winget install msys2.msys2
-
Or go to the Official Website page to download the installer.
-
-
Install MinGW x64 and MinGW x86 toolchain.
# It is recommended to update the source before installation. pacman -Syu # Install x86 version of MinGW pacman -S mingw-w64-i686-toolchain # Install x64 version of MinGW pacman -S mingw-w64-x86_64-toolchain
-
Install Clang/LLVM on your computer.
-
You can either use WinGet command to install.
::Install x86 version of Clang/LLVM ::Default Install Location: C:\Program Files (x86)\LLVM winget install LLVM.LLVM -a x86 ::Install x64 version of Clang/LLVM ::Default Install Location: C:\Program Files\LLVM winget install LLVM.LLVM -a x64
-
Or go to the Releases page to download the installer.
- LLVM-xxx-win64.exe (for x64 compiler)
- LLVM-xxx-win32.exe (for x86 compiler)
-