Skip to content

MikeLauer/stk-code

 
 

Repository files navigation

REST API for SuperTuxKart

Additional dependencies

Build instructions

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.

Building on Windows

To build REST API for SuperTuxKart on Windows, follow these instructions:

  1. Clone the project git clone https://github.com/rpesl/stk-code stk-code
  2. Download and extract the SuperTuxKart assets. Place the stk-assets folder next to the stk-code folder.
    .
    ├── stk-code
    └── stk-assets
  1. Download the Windows dependencies package from SuperTuxKart - Dependencies latest. For example dependencies-win-x86_64.zip. Unzip the file and place the folder inside stk-code.
    .
    ├── stk-code
    │   └── dependencies-win-x86_64
    └── stk-assets
  1. Download and install Visual Studio . Select "Desktop development with C++" in the installer.
  2. Download CMake from CMake - download page and install it.
  3. 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.
  4. Navigate to your build directory and open the SuperTuxKart.sln file; Visual Studio will now load the solution.
  5. In the "Solution Explorer" on the right, right click on the supertuxkart project and select "Set as StartUp project".
  6. Open the "Build" menu and select "Build Solution".
  7. After building, the game is located at .../stk-code/build/bin/Debug, or .../Release respectively.

Documentation

  • The SuperTuxKart documentation is located in README-SuperTuxKart.md
  • The OpenAPI specification is located in src/rest-api/REST-API-OpenAPI-specification.yaml

Directory structure

  • The REST API source code is located in src/rest-api
  • The REST API test code is located in src/test/rest-api

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.2%
  • C 21.0%
  • CMake 3.3%
  • Objective-C 2.2%
  • HTML 0.6%
  • GLSL 0.4%
  • Other 1.3%