Outils pour utilisateurs

Outils du site


kivy_buildozer_avec_python_2.7

Ceci est une ancienne révision du document !


Table des matières

Kivy: Buildozer avec python 2.7

Python 2.7 c'est fini très bientôt https://pythonclock.org/

Twisted n'est pas entièrement porté en python3 Kivent ne marche pas en python3

Je me fais violence

Nous allons essayer tout ça en python2.7 dans virtualbox.

Préalable suffisant

Installation de dépendances système diverses:

sudo apt-get install autoconf automake build-essential cmake caja-open-terminal libav-tools git python-pip python-dev pkg-config libsdl2-dev python-setuptools

sudo apt-get install ffmpeg libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good

Kivy

Vérifier la version de cython à installer:

sudo pip install -I Cython==0.25
sudo pip install pygame
sudo pip install kivy

Buildozer

debian Stretch 9.4 mars 2018

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential ccache git libncurses5:i386 libstdc++6:i386 libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 python2.7 python2.7-dev openjdk-8-jdk unzip zlib1g-dev zlib1g:i386

sudo apt-get install python-dev openjdk-8-source
sudo apt-get install python-colorama python-sh python-appdirs python-jinja2 python-six
sudo pip install buildozer

Successfully installed buildozer-0.34 pexpect-4.4.0 ptyprocess-0.5.2 virtualenv-15.1.0

Suite et bazar

sudo pip install python-for-android

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 libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-7-jdk unzip ant ccache autoconf libtool

Test avec l'exemple 16 de la doc Kivent

# Android packaging done!
# APK svg_phys-1.5-debug.apk available in the bin directory

Les sources avec les sorties terminal sur github et avec un apk dans le dossier /bin pour tester et jouer !

Installation de twisted

sudo pip install twisted

Error with twisted

Février 2018 Debian 9.2 Stretch

Download error on https://pypi.python.org/simple/incremental/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'incremental' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or download links found for incremental>=16.10.1

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')

[WARNING]: ERROR: /media/data/3D/projets/android_server/.buildozer/android/platform/build/build/python-installs/android_server/bin/python.host failed!
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=android_server --bootstrap=sdl2 --requirements=kivy,twisted --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/data/3D/projets/android_server/.buildozer/android/platform/build

Sert à rien:

sudo pip install incremental
sudo apt-get install python-zopeinterface
sudo apt-get install python-twisted

sudo pip install zopeinterface
sudo pip install twisted

kivy_buildozer_avec_python_2.7.1521809754.txt.gz · Dernière modification : 2018/03/23 12:55 de serge