Skip to content

Commit f146d80

Browse files
committed
Added some more install instructions
1 parent ba7ebb1 commit f146d80

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

doc/source/quickstart.rst

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ options available.
1515
Installation
1616
------------
1717

18-
The easiest way to install is with pip. You need to have setuptools installed, but then can do::
18+
The easiest way to install is with pip. You need to have setuptools installed, then run::
1919

2020
pip install git+https://github.com/kivy/python-for-android.git@revamp
2121

@@ -34,6 +34,30 @@ Or by direct download::
3434
3535
Then in both cases run ``python setup.py install``.
3636

37+
Dependencies
38+
------------
39+
40+
python-for-android has several dependencies that must be installed,
41+
via your package manager or otherwise. These include:
42+
43+
- git
44+
- ant
45+
- python2
46+
- the Android `SDK <https://developer.android.com/sdk/index.html#Other>`_ and `NDK <https://developer.android.com/ndk/downloads/index.html>`_ (see below)
47+
- a Java JDK (e.g. openjdk-7)
48+
- zlib (including 32 bit)
49+
- libncurses (including 32 bit)
50+
- unzip
51+
- ccache (optional)
52+
53+
On recent versions of Ubuntu and its derivatives you may be able to
54+
install all many of these with::
55+
56+
sudo dpkg --add-architecture i386
57+
sudo apt-get update
58+
sudo apt-get install -y build-essential ccache git zlib1g-dev python2.7 python2.7-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-7-jdk unzip
59+
60+
When installing
3761

3862
Basic use
3963
---------
@@ -48,7 +72,8 @@ You can test that p4a was installed correctly by running
4872
recipes available to be built into your APKs.
4973

5074
Before running any apk packaging or distribution creation, it is
51-
essential to set some env vars. First install the Android SDK and NDK, then:
75+
essential to set some env vars. Make sure you have installed the
76+
Android SDK and NDK, then:
5277

5378
- Set the ``ANDROIDSDK`` env var to the ``/path/to/the/sdk``
5479
- Set the ``ANDROIDNDK`` env var to the ``/path/to/the/ndk``

0 commit comments

Comments
 (0)