Zandronum Server on FreeBSD

From Zandronum Wiki
Revision as of 19:23, 22 August 2016 by DrinkyBird (talk | contribs)

It is possible to run a Zandronum server on FreeBSD.

Binary Packages

csnxs provides binary packages for FreeBSD, which are available on his archive.

Before you use these packages, you must install dependencies:

$ pkg install sdl sqlite3 openssl

If asked to install pkg, do so.

Package List

Note: Packages in green are the latest stable build, and packages in yellow are the latest beta build.

Version i386 x86_64
3.0-alpha-160814-2010 zandronum-server-freebsd-x86_64-3.0-alpha-160814-2010.txz / with-debug
2.1.2 zandronum-server-freebsd-x86_64-2.1.2.txz

Once downloaded, use tar xf to extract the package into a new directory.

Compiling

  • Install dependencies
pkg install sdl sqlite3 openssl cmake python3 mercurial

If you're building Zandronum 3.x or higher:

pkg install gcc5 && export cc=gcc5 && export CXX=g++5

If you're building Zandronum 2.x or lower:

pkg install gcc && export CC=gcc48 && export CXX=g++48
  • Create your working dir:
mkdir zabuild && cd zabuild
hg clone https://bitbucket.org/Torr_Samaho/zandronum && cd zandronum
  • Optionally, checkout the latest stable release:
hg update ZA_3.1
  • Append this line after the other #includes near the top of src/sdl/i_system.cpp:
#include <sys/wait.h>
  • Generate the CMake files
mkdir ../build && cd ../build && cmake -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=1 -DCMAKE_CXX_FLAGS="-fpermissive" ../zandronum
  • Build it
make -j$(nproc)
  • Assuming it all went well, you should have these files in your current directory:
    • zandronum-server
    • zandronum-server.debug
    • zandronum.pk3
    • skulltag_actors.pk3