sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential ccache git zlib1g-dev python2.7 python2.7-dev
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo pip install colorama appdirs sh jinja2 six
sudo pip install --upgrade colorama
sudo apt-get install pkg-config autoconf automake libtool
sudo apt-get install software-properties-common
sudo apt-get install cython #installs 0.21.1
sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo chmod -R 777 /usr/share/kivi-examples/ #install made it Read-Only Rootsudo pip install --upgrade buildozer #installs 0.32
sudo easy_install buildozer #just in case?
sudo pip install python-for-android #0.4? java -version #reports 1.8.0_121
buildozer init
buildozer -v android debug
buildozer -v android_new debug
git clone https://github.com/kivy/buildozer.git
cd buildozer
sudo python setup.py install
cd ..
sudo pip install Cython==0.25.2 #kivy 1.9.2.dev0 required Cython >= 0.23
git clone https://github.com/kivy/kivy
cd kivy
sudo python setup.py install
sudo apt-get install oracle-java7-installer java -version
sudo apt-get install oracle-java7-set-default
sudo update-alternatives --config java
pip install python-for-android
pip install git+https://github.com/kivy/python-for-android.git
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential git zlib1g-dev python2.7 python2.7-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-7-jdk unzip ant ccache
nano ~/.bashrc
# Adjust the paths!
export ANDROIDSDK="$HOME/Documents/android-sdk-21"
export ANDROIDNDK="$HOME/Documents/android-ndk-r10e"
export ANDROIDAPI="14" # Minimum API version your application require
export ANDROIDNDKVER="r10e" # Version of the NDK you installed
p4a apk --private $HOME/code/myapp --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy
p4a apk --private $HOME/code/myapp --package=org.example.myapp --name "My SDL2 application" --version 0.1 --bootstrap=sdl2 --requirements=your_requirements
p4a clean_all
p4a clean_builds && p4a clean_dists
p4a recipes
p4a clean_recipe_build RECIPENAME p4a clean_dists # then rebuild your distribution
mkdir -p p4a-recipes/myrecipe touch p4a-recipes/myrecipe/__init__.py
pip install --upgrade buildozer
sudo apt-get install python2.7-dev
sudo pip install --upgrade cython
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential ccache git lib32z1 libncurses5:i386 libstdc++6:i386 python2.7
sudo apt-get install python-kivy
buildozer init
buildozer -v android debug
sudo nano -c /usr/local/lib/python2.7/dist-packages/buildozer-0.33.dev0-py2.7.egg/buildozer/targets/android.py
with io.open(project_fn, 'w', encoding='utf-8') as fd:
fd.writelines((line.encode('utf-8') for line in content))
for index, ref in enumerate(references):
fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))
# # recreate the project.properties
# with io.open(project_fn, 'w', encoding='utf-8') as fd:
# try:
# fd.writelines((line.encode('utf-8') for line in content))
# except:
# fd.writelines(content)
# if not content[-1].endswith(u'\n'):
# fd.write(u'\n')
# for index, ref in enumerate(references):
# fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))
Nenhum comentário:
Postar um comentário