Zandronum Server on FreeBSD: Difference between revisions

From Zandronum Wiki
No edit summary
(Update to Heptapod)
Tag: Source edit
 
Line 21: Line 21:
</pre>
</pre>


* Clone [https://bitbucket.org/Torr_Samaho/zandronum the repo]:
* Clone [https://foss.heptapod.net/zandronum/zandronum-stable the repo]:
<pre>
<pre>
hg clone https://bitbucket.org/Torr_Samaho/zandronum && cd zandronum
hg clone https://foss.heptapod.net/zandronum/zandronum-stable && cd zandronum
</pre>
</pre>



Latest revision as of 22:36, 17 December 2023

Warning: This guide hasn't been updated since 2016 and probably won't work on newer versions on FreeBSD.

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://foss.heptapod.net/zandronum/zandronum-stable && cd zandronum
  • Optionally, checkout the latest stable release:
hg update ZA_3.1
#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