Download and extract the SuperTuxKart assets and the additional dependencies.
Follow the SuperTuxKart documentation for building SuperTuxKart from source.
Use cmake to initialize and build the project.
The target for SuperTuxKart is supertuxkart
.
The unit test target is supertuxkart-test
.
To build REST API for SuperTuxKart on Windows, follow these instructions:
- Clone the project
git clone https://github.com/rpesl/stk-code stk-code
- Download and extract the SuperTuxKart assets. Place the
stk-assets
folder next to thestk-code
folder.
.
├── stk-code
└── stk-assets
- Download the Windows dependencies package from SuperTuxKart - Dependencies latest. For example
dependencies-win-x86_64.zip
. Unzip the file and place the folder insidestk-code
.
.
├── stk-code
│ └── dependencies-win-x86_64
└── stk-assets
- Download and install Visual Studio . Select "Desktop development with C++" in the installer.
- Download CMake from CMake - download page and install it.
- Open CMake and
- Set "Where is the source code" to the path of
stk-code
. - Set "Where to build the binaries" to
.../stk-code/build
. - Press "Configure"; CMake will ask you if it is OK to create the aforementioned directory, press "Yes". CMake will then ask you about your version of Visual Studio. Confirm your selection; CMake will begin creating the required files for the build in the directory.
- After CMake is finished, press the "Generate" button.
- Set "Where is the source code" to the path of
- Navigate to your build directory and open the
SuperTuxKart.sln
file; Visual Studio will now load the solution. - In the "Solution Explorer" on the right, right click on the
supertuxkart
project and select "Set as StartUp project". - Open the "Build" menu and select "Build Solution".
- After building, the game is located at
.../stk-code/build/bin/Debug
, or.../Release
respectively.
- The SuperTuxKart documentation is located in
README-SuperTuxKart.md
- The OpenAPI specification is located in
src/rest-api/REST-API-OpenAPI-specification.yaml
- The REST API source code is located in
src/rest-api
- The REST API test code is located in
src/test/rest-api