Jump to content

Compiling the Zandronum server on a Raspberry Pi: Difference between revisions

m
Edit tons of stuff foir the raspberry pi and added my bitbucket link to replace torr's till the new release of zandronum
No edit summary
m (Edit tons of stuff foir the raspberry pi and added my bitbucket link to replace torr's till the new release of zandronum)
Line 1: Line 1:
{{WarningBox|The following article is for Zandronum 2.1.2. It probably won't work on the latest release ({{LatestVersion}}).}}
It is possible to compile <code>zandronum-server</code> on a Raspberry Pi. It is mostly the same as [[Compiling Zandronum on Linux|compiling on Linux]], but we have to disable some things first.  
It is possible to compile <code>zandronum-server</code> on a Raspberry Pi. It is mostly the same as [[Compiling Zandronum on Linux|compiling on Linux]], but we have to disable some things first.  


Line 14: Line 12:
* Access to a terminal on your Raspberry Pi.
* Access to a terminal on your Raspberry Pi.


This guide was written for the Raspberry Pi Model 2B, but should work on all models.
This guide was written for the Raspberry Pi Model 4B, but should work on all older models.


== Install Dependencies ==
== Install Dependencies ==
Line 20: Line 18:
=== Raspbian ===
=== Raspbian ===
   $ sudo apt-get install build-essential zlib1g-dev libsdl1.2-dev libjpeg-dev \
   $ sudo apt-get install build-essential zlib1g-dev libsdl1.2-dev libjpeg-dev \
     nasm tar libbz2-dev libgtk2.0-dev cmake mercurial libfluidsynth-dev libgl1-mesa-dev \
     nasm tar libbz2-dev libgtk2.0-dev cmake git libfluidsynth-dev libgl1-mesa-dev \
     libssl-dev
     libssl-dev


=== Arch Linux ARM ===
=== Arch Linux ARM ===
   $ sudo pacman -S --needed gcc make zlib sdl libjpeg-turbo nasm tar bzip2 gtk2 cmake mercurial \
   $ sudo pacman -S --needed gcc make zlib sdl libjpeg-turbo nasm tar bzip2 gtk2 cmake git \
     fluidsynth mesa glu openssl
     fluidsynth mesa glu openssl


Line 33: Line 31:


Clone the Zandronum repository:
Clone the Zandronum repository:
     $ hg clone https://bitbucket.org/Torr_Samaho/zandronum .
     $ git clone https://doomjoshuaboy@bitbucket.org/doomjoshuaboy/zandronum-rpi.git.
 
Get the latest stable release (for other versions replace <code>"max(tagged())"</code> with one of the tags found in [https://bitbucket.org/Torr_Samaho/zandronum the repository]):
    $ hg update -cr "max(tagged())"
 
Apply patch that fixes compilation under Raspberry Pi:
    $ wget -O raspi.patch "https://gist.githubusercontent.com/csnxs/0e4ce613a5d1736ead593500ca5a9df0/raw/330a41c796bdca88b5040bedf9e6a568ec567e7f/-" && \
      hg import --no-commit raspi.patch && \
      rm raspi.patch


Create and <code>cd</code> to the directory where build files will be outputted:
Create and <code>cd</code> to the directory where build files will be outputted: