-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.build
69 lines (51 loc) · 1.93 KB
/
README.build
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Detailed Android build Instructions:
NOTES:
1) You need a linux workstation (either native or virtual). No graphic
desktop is needed, cmdline only is sufficient.
2) All builds need a working (fairly fast) internet connection and
6 GB of free disk space.
3) You may wish to adapt some parameters in the buildozer.spec file,
especially e.g android.arch or log_level.
Building:
Prepare a virtualenv for python (currently python3.11 or earlier) in the
main directory. Create and enter a virtualenv, and the add required python
packages as listed in ENVreqA.txt:
$ virualenv ENV
$ . ENV/bin/activate
$ pip install -r ENVreqA.txt
(At this point it should be possible to run the game on the desktop by
just typing './main.py' on the command line.)
Then run buildozer. This will take time. You will also need to accept
Google licenses, when running it for the first time.
$ buildozer android debug
If you like to build a release version refer to the documentation of
the python-for-android project.
Prerequisites/Hints (may need root):
Needs python version 3.x up to 3.10 (3.11 is currently not yet
supported by Kivy).
On freshly installed systems you may need to add about the
following packages:
- ant
- autoconf
- build-essential
- gradle (version 7.6.x preferred)
- ccache
- gettext
- javasdk (ubuntu: default jdk, at least java-11)
- virtualenv (python-virtualenv)
- zip
- unzip
- development packages as
- libffi-dev, libltdl-dev, zlib1g-dev
(these requirements may depend from the actually chossen base
installation and also may change in future)
On a 'simple' gentoo installation the following packages had to be
installed in addition:
- dev-python/pip
- dev-python/virtualenv
- dev-python/cython
- dev-media-libs/gstreamer
- dev-vcs/git
- dev-java/ant
For further instructions consult buildozers build instructions.
LB230731.