Skip to content
dk edited this page Nov 5, 2019 · 6 revisions

Get the XQF's source code

Get the source code (see Downloads), for example using git:

git clone https://github.com/XQF/xqf.git
cd xqf

Requirements

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

Create a build directory

cmake allows out-of-tree compilation, so just create a build directory and go inside:

mkdir build
cd build

Prepare the build

cmake ..

Note: If you are running Debian or Ubuntu, use cmake -DWITH_QSTAT=/usr/bin/quakestat -DCMAKE_INSTALL_PREFIX=/usr ..

Build XQF

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.

Install XQF

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.

Run XQF

xqf