Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More detailed instructions to compile under GNU/Linux #239

Open
cpcbegin opened this issue Feb 28, 2025 · 1 comment
Open

More detailed instructions to compile under GNU/Linux #239

cpcbegin opened this issue Feb 28, 2025 · 1 comment

Comments

@cpcbegin
Copy link

Instructions to compile under GNU/Linux are incomplete, just say the libraries needed but not the necessary commands.

@miaucl
Copy link

miaucl commented Mar 2, 2025

Quick chatGPT prompt, there you go :)

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

Make sure to paste your .dat files (see #233)

PR #242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants