Debian

SRB2 version featured in the article: 2.2.9

If the current version number varies from the one featured in the article, using these instructions can cause unexpected issues.

    Building from source code

    1. Download and install all of the necessary components:

    sudo apt install git make libsdl2-dev libsdl2-mixer-dev nasm libpng-dev zlib1g libupnp-dev libgme-dev libgme0 libopenmpt-dev upx-ucl libcurl4-gnutls-dev build-essential

    2. Download the SRB2 source code and access the directory its source code is in:

    git clone https://github.com/STJr/SRB2/ && cd SRB2

    3. Build SRB2:

    make -C src/ LINUX64=1 LIBGME_LDFLAGS=-lgme LIBGME_CFLAGS=

    4. Access the directory the newly-compiled binary is in:

    cd bin

    5. Rename the binary and move it to the default location for executable files:

    sudo mv lsdl2srb2 /usr/local/bin/srb2

    6. Create a local SRB2 directory where some SRB2 data will be stored:

    cd && mkdir .srb2 && cd .srb2

    7. Download SRB2 libraries:

    wget https://github.com/STJr/SRB2/releases/download/SRB2_release_2.2.9/SRB2-v229-Full.zip

    8. Extract them and delete the zip file:

    unzip "SRB2-v229-Full.zip" '*.pk3' '*.dta' '*.dat' 'models/**/*' && rm -r SRB2-v229-Full.zip

    9. Create a directory for SRB2 libraries:

    sudo mkdir -p /usr/local/share/games/SRB2

    10. Move all the libraries over to a global directory:

    find . -maxdepth 1 \( -name '*.pk3' -o -name '*.dta' \) -exec sudo mv "{}" /usr/local/share/games/SRB2 \;

    11. Move the SRB2 icon to a specific directory so that it can be seen in the shortcut file:

    cd && mkdir .icons ; mv SRB2/srb2.png $HOME/.icons/srb2.png

    12. The source code folder is no longer needed, the command below deletes it:

    rm -r SRB2

    13. Download the shortcut file:

    wget https://nzarx.github.io/srb2/srb2.desktop

    14. Move said shortcut file to the local shortcut directory:

    mv srb2.desktop .local/share/applications/srb2.desktop

That is all you need to do! You can now launch and play Sonic Robo Blast 2.
Go back