-
Notifications
You must be signed in to change notification settings - Fork 12
How to build
Get the source code (see Downloads), for example using git
:
git clone https://github.com/XQF/xqf.git
cd xqf
for xqf-1.0.6.2 (subject to change, but this should point you in the right direction)
sudo apt install cmake
sudo apt install libxml2-dev libminizip-dev libreadline-dev libgeoip-dev libx11-dev zlib1g-dev libgtk2.0-dev intltool debhelper
cmake
allows out-of-tree compilation, so just create a build
directory and go inside:
mkdir build
cd build
cmake ..
Note: If you are running Debian or Ubuntu, use cmake -DWITH_QSTAT=/usr/bin/quakestat -DCMAKE_INSTALL_PREFIX=/usr ..
make
Note: If you want to cross compile XQF (for example to compile XQF for arm from an x86 box), you must compile gamesxml2xc
for your build computer first to be able to generate the games.c
file first. When your build/games.c
file is generated from src/games.xml
, just use make
to compile xqf
for your foreign architecture.
make install
Note: If you are using checkinstall
, it was noticed that the --fstrans
option does not work, so you can't use fakeroot
and you must just do something like that: sudo checkinstall
.
xqf