Compiling the Freeciv-Web server

This page explains how to compile the Freeciv server running at https://www.freecivweb.org in order to use it with native clients. You need a Linux machine based on a recent version of Ubuntu.
First, update your system:
 sudo apt update && sudo apt dist-upgrade
Then install the dependencies:
 sudo apt install git autoconf libtool gettext \
 build-essential libcurl4-openssl-dev zlib1g-dev \
 libreadline-dev libbz2-dev liblzma-dev libgtk-3-dev \
 qt5-default \
 libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-ttf-dev \
 libicu-dev libsqlite3-dev libjansson-dev
You're now ready to fetch the code. Do it by running:
 git clone --depth 1 https://github.com/Lexxie9952/fcw.org-server.git
Change directory to the folder containing the code:
 cd fcw.org-server/freeciv/freeciv
Generate the build files:
 ./autogen.sh --enable-client=gtk3,qt --disable-delta-protocol --enable-json --with-project-definition=../freeciv-web.project --enable-fcweb
After autogen finishes, you can run the actual compilation:
 make -j$(nproc)
It will take some time, grab a cup of coffee and be patient.
Once this command completes, you can run the server by doing:
 ./fcser
Clients can be started with one of the following command lines:
 ./fcgui
 ./client/freeciv-gtk3
 ./client/freeciv-qt
In this setup, the clients can't start the server by themselves so you'll need to do it manually, then use "Connect to network game". Your server should be listed automatically.
When opening a new terminal (for example to start the server and the client...), all you need to do is:
 cd fcw.org-server/freeciv/freeciv
Please refer to the Server Manual for instructions about using the server.