Skip to content

Commit

Permalink
doc: add instructions to build on Windows using LLVM MinGW from power…
Browse files Browse the repository at this point in the history
…shell/cmd (#5180)
  • Loading branch information
EYH0602 authored Oct 16, 2024
1 parent 7a25743 commit 4f69a2b
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ and unpack the archive into the `stk-code` directory. Download `i686` if you use
*Note: To avoid confusion between releases and versions, refer to this table:*
Visual Studio Release | Version
----------------------|------------
Visual Studio 2019| 16
Visual Studio 2017| 15
Visual Studio 2015| 14
Visual Studio 2013| 13
| Visual Studio Release | Version |
| --------------------- | ------- |
| Visual Studio 2019 | 16 |
| Visual Studio 2017 | 15 |
| Visual Studio 2015 | 14 |
| Visual Studio 2013 | 13 |
## Building SuperTuxKart on Windows (from PowerShell/Command line)
Expand Down Expand Up @@ -226,6 +226,23 @@ and unpack the archive into the `stk-code` directory. Download `i686` if you com
C:\llvm-mingw\ninja.exe
```
### Building SuperTuxKart on Windows using LLVM MinGW (from PowerShell/Command line)
Do the above steps 1 to 6 to setup the required dependencies.
7. Once inside the build directory; run CMake to start the compilation process:
```cmd
cmake .. -G Ninja -DLLVM_ARCH="x86_64" -DLLVM_PREFIX=C:\llvm-mingw -DCMAKE_MAKE_PROGRAM=C:\llvm-mingw\ninja.exe -DUSE_WIIUSE=OFF -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-llvm-mingw.cmake"
```
2. Now that CMake finished configuring and creating the necessary files for the build, run the build command in the same directory:
```cmd
C:\llvm-mingw\ninja.exe
```
SuperTuxKart can now be run as `bin\supertuxkart.exe`.
## Building SuperTuxKart on macOS
Expand Down

0 comments on commit 4f69a2b

Please sign in to comment.