- Install the prerequisites:
- Visual Studio 2019 with the C++ toolchain
- CMake 3.20+
- Clone the repo recursively:
git clone --recurse-submodules https://github.com/fordcars/OttoMatic-VR
- Download SDL2-devel-2.0.16-VC.zip and extract the contents into the extern folder
- Download OpenVR SDK 1.16.8 and extract the contents into the extern folder.
- Prep the Visual Studio solution:
cmake -G "Visual Studio 16 2019" -A x64 -S . -B build
- Now you can open
build/OttoMatic.sln
in Visual Studio, or you can just go ahead and build the game:cmake --build build --config Release
- The game gets built in
build/Release/OttoMatic.exe
. Enjoy!
- Install the prerequisites from your package manager:
- Any C++20 compiler
- CMake 3.13+
- SDL2 development library (e.g. "libsdl2-dev" on Ubuntu, "sdl2" on Arch, "SDL-devel" on Fedora)
- OpenGL development libraries (e.g. "libgl1-mesa-dev" on Ubuntu)
- Clone the repo recursively:
git clone --recurse-submodules https://github.com/fordcars/OttoMatic-VR
- Build the game:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build
- The game gets built in
build/Release/OttoMatic
. Enjoy!
Clone the repo recursively, then run python3 build.py
to execute the build steps described in this document and package up the game.
build.py is the script that is used by the CI setup to produce builds. If you want to build the game manually instead, read on.