-
Notifications
You must be signed in to change notification settings - Fork 42
/
README
40 lines (29 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
It includes Freeciv 2.6.0
If you don't need to change source code and don't need latest version simply download APK from http://civ.zielm.com
== INSTALLATION ==
Running Freeciv on desktop requires a patched version of SDL2 (with modified alpha blending). To patch SDL 2.0.4, use configure_project/SDL_modify_blending.patch. You also need Curl, SDL2_image and SDL2_ttf.
Dependency installation:
apt-get build-dep -y libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libcurl4-openssl-dev python2.7-dev
apt-get install -y graphviz python-pip mercurial python2.7-dev git-core
pip install Cython==0.15
# for running web/proxy.py
pip install tornado==3.1.1
apt-get install -y python-imaging
pip install pygame
# if on fairly new system
ln -s /usr/bin/aclocal /usr/local/bin/aclocal-1.13
ln -s /usr/bin/automake /usr/local/bin/automake-1.13
# if software renderer needed
apt-get install libgl1-mesa-swx11-dev xvfb
Building for Android requires Android NDK with version r12b.
Configuration:
You need Android SDK >= 26. Add these environment variables:
ANDROID_HOME=<PATH to your SDK installation>
ANDROID_NDK_HOME=<PATH to your NDK installation>
You also need Java8. If this version is not your system default, use JAVA_HOME environment variable.
Build and run on desktop (for debugging):
make run
(Warning: if you break build process you may need to start again with clean repo)
Build for Android:
make -C android debugapk
Upgrade Freeciv: see README.freeciv_upgrade