Building Python for Android (Kivi)
Based on python-for-android documentation, built on Ubuntu 12.10 64-bit.
Install prerequisites:
sudo apt-get install build-essential patch git-core ccache ant python-pip python-dev
On a 64-bit distro:
sudo apt-get install build-essential patch git-core ccache ant pip python-dev
Ensure you have the latest Cython version:
sudo pip install --upgrade cython
Python for Android (the Kivi one) seems to build only with NDK-r7, so the NDK in current Necessitas SDK (NDK-r8b) can't be used. Just download the r7 NDK unpack it somewhere and set the NDK path.
wget http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2 tar xvf android-ndk-r7-linux-x86.tar.bz2
The Android SDK from Necessitas can be used, just make sure API 14 is installed.
cd python-for-android export ANDROIDSDK="<path to some android SDK that has API 14>" export ANDROIDNDK="<path to android ndk>" export ANDROIDNDKVER=r7 export ANDROIDAPI=14 ./distribute.sh -m "pyjnius kivy" -f
Having build issues ?
- try to build on Ubuntu 12.04 with NDK r7
- try the Virtualbox image pre-configured for building Python for Android
Last modified 11 years ago
Last modified on Feb 5, 2013, 2:25:05 PM