Compiling Zandronum on Linux: Difference between revisions
→Compiling: added 3.1 with the latest fmod
(→Compiling: added 3.1 with the latest fmod) |
|||
Line 144: | Line 144: | ||
== Compiling == | == Compiling == | ||
To compile Zandronum client: | To compile Zandronum client: | ||
```3.1``` | |||
<pre> | |||
a='' && [ "$(uname -m)" = x86_64 ] && a=64 | |||
c="$(lscpu -p | grep -v '#' | sort -u -t , -k 2,4 | wc -l)" ; [ "$c" -eq 0 ] && c=1 | |||
cd ~/zandronum_build/zandronum/buildclient && | |||
rm -f output_sdl/liboutput_sdl.so && | |||
if [ -d "../fmodapi44464linux" ]; then | |||
f="-DFMOD_LIBRARY=../fmodapi44464linux/api/lib/libfmodex${a}-4.44.64.so \ | |||
-DFMOD_INCLUDE_DIR=../fmodapi44464linux/api/inc"; else | |||
f='-UFMOD_LIBRARY -UFMOD_INCLUDE_DIR'; fi && | |||
cmake .. -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=OFF -DRELEASE_WITH_DEBUG_FILE=OFF $f && | |||
make -j$c | |||
</pre> | |||
```3.0``` | |||
<pre> | <pre> | ||
a='' && [ "$(uname -m)" = x86_64 ] && a=64 | a='' && [ "$(uname -m)" = x86_64 ] && a=64 |