Zandronum Server on FreeBSD: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 32: Line 32:
* Install dependencies
* Install dependencies
<pre>
<pre>
$ pkg install sdl sqlite3 openssl cmake python3 mercurial
pkg install sdl sqlite3 openssl cmake python3 mercurial
</pre>
</pre>


If you're building '''Zandronum 3.x or higher''':
If you're building '''Zandronum 3.x or higher''':
<pre>
<pre>
$ pkg install gcc5 && export cc=gcc5 && export CXX=g++5
pkg install gcc5 && export cc=gcc5 && export CXX=g++5
</pre>
</pre>


If you're building '''Zandronum 2.x or lower''':
If you're building '''Zandronum 2.x or lower''':
<pre>
<pre>
$ pkg install gcc && export CC=gcc48 && export CXX=g++48
pkg install gcc && export CC=gcc48 && export CXX=g++48
</pre>
</pre>


Line 59: Line 59:
hg update ZA_{{LatestVersion}}
hg update ZA_{{LatestVersion}}
</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>:
<syntaxhighlight lang="cpp">
#include <sys/wait.h>
</syntaxhighlight>


* Generate the CMake files
* Generate the CMake files