Zandronum Server on FreeBSD: Difference between revisions
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) (Update to Heptapod) Tag: Source edit |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Warning|This guide hasn't been updated since 2016 and probably won't work on newer versions on FreeBSD.}} | |||
{| | |||
== Compiling == | == Compiling == | ||
* Install dependencies | * Install dependencies | ||
Line 52: | Line 21: | ||
</pre> | </pre> | ||
* Clone [https:// | * Clone [https://foss.heptapod.net/zandronum/zandronum-stable the repo]: | ||
<pre> | <pre> | ||
hg clone https:// | hg clone https://foss.heptapod.net/zandronum/zandronum-stable && cd zandronum | ||
</pre> | </pre> | ||
Line 62: | Line 31: | ||
</pre<noinclude></noinclude>> | </pre<noinclude></noinclude>> | ||
* Append this line after the other <code>#include</code>s near the top of <code>src/sdl/i_system.cpp</code>: | * Append this line after the other <code>#include</code>s near the top of <code>src/sdl/i_system.cpp</code> (see {{Issue|2815|Include <sys/wait.h> in sdl/i_system.cpp}}): | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
#include <sys/wait.h> | #include <sys/wait.h> | ||
Line 69: | Line 38: | ||
* Generate the CMake files | * Generate the CMake files | ||
<pre> | <pre> | ||
cd .. && cmake -DCMAKE_BUILD_TYPE=Release - | mkdir ../build && cd ../build && cmake -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=1 -DCMAKE_CXX_FLAGS="-fpermissive" ../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
- Clone the repo:
hg clone https://foss.heptapod.net/zandronum/zandronum-stable && cd zandronum
- Optionally, checkout the latest stable release:
hg update ZA_3.1
- Append this line after the other
#include
s near the top ofsrc/sdl/i_system.cpp
(see Issue 2815: Include <sys/wait.h> in 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