1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-24 09:50:19 +01:00
SpaceCadetPinball/Platform/Linux/BUILD.md
Kowalski Dragon 4db4e5fbcb
Improve linux building (#111)
* Improve Linux platform by adding metadata and improve description

* Improve readme

* Improve metainfo

* Fix wrong desktop file

* Improve readme

* Improve readme

* Appstream doesn't like h1

* Add CMake and Ninja to .gitignore

* Fix issues




3


4

* Revert readme keeping only Linux part

* Change comment on desktop file

* Align metainfo

* Decouple Readme from Linux building instructions
2021-12-24 09:09:40 +03:00

943 B

Building

Install devel packages for SDL2 and SDL2_mixer.\

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.

# On Debian and Ubuntu
sudo apt install cmake build-essential ninja-build libsdl2-dev libsdl2-mixer-dev libsdl2-mixer-2.0-0 libsdl2-2.0-0 fluidsynth

# On Fedora
sudo dnf install cmake ninja-build SDL2 SDL2-devel SDL2_mixer SDL2_mixer-devel fluidsynth fluidsynth-libs mscore-fonts g++

# Build
cmake -GNinja .
ninja

If you can't hear the background music: You need to export the following variable before launching the game like this: export SDL_SOUNDFONT=/path/to/your/soundfont

Fluidsynth will install a default soundfont in the following path: On Fedora: /usr/share/soundfonts/FluidR3_GM.sf2 On Ubuntu/Debian: /usr/share/sounds/sf2/FluidR3_GM.sf2