mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-01 06:20:15 +02:00
Add linux build instructions
This commit is contained in:
parent
cb9b7b8862
commit
e492c4849e
1 changed files with 13 additions and 1 deletions
14
README.md
14
README.md
|
@ -69,7 +69,19 @@ Install devel packages for `SDL2` and `SDL2_mixer`.\
|
||||||
Compile with CMake; tested with GCC 10, Clang 11.\
|
Compile with CMake; tested with GCC 10, Clang 11.\
|
||||||
To cross-compile for Windows, install a 64-bit version of mingw and its `SDL2` and `SDL2_mixer` distributions, then use the `mingwcc.cmake` toolchain.
|
To cross-compile for Windows, install a 64-bit version of mingw and its `SDL2` and `SDL2_mixer` distributions, then use the `mingwcc.cmake` toolchain.
|
||||||
|
|
||||||
[](https://repology.org/project/spacecadetpinball/versions)
|
```sh
|
||||||
|
apt update
|
||||||
|
sudo apt install libsdl2-dev libsdl2-mixer-dev
|
||||||
|
|
||||||
|
cd ../path/to/SpaceCadetPinball
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ # gcc
|
||||||
|
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ # clang
|
||||||
|
make -j$(nproc) # Build with all available CPU cores
|
||||||
|
```
|
||||||
|
|
||||||
|
[](https://repology.org/project/spacecadetpinball/versions)
|
||||||
|
|
||||||
Some distributions provide a package in their repository. You can use those for easier dependency management and updates.
|
Some distributions provide a package in their repository. You can use those for easier dependency management and updates.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue