Outils pour utilisateurs

Outils du site


kivy_buildozer_avec_python_2.7

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
kivy_buildozer_avec_python_2.7 [2018/03/22 08:09] – créée sergekivy_buildozer_avec_python_2.7 [2019/12/26 09:38] (Version actuelle) – ↷ Liens modifiés en raison d'un déplacement. serge
Ligne 1: Ligne 1:
-=====Kivy: Buildozer avec python 2.7===== +======Archive: Buildozer avec python 2.7====== 
-**Python 2.7 c'est fini très bientôt https://pythonclock.org/**+<WRAP center round box 60% centeralign> 
 +**{{tagpage>kivy|Toutes les pages Kivy}}** 
 +</WRAP>
  
-Twisted n'est pas entièrement porté en python3 Kivent ne marche pas en python3+<WRAP center round box 60%> 
 +**Python 2.7 c'est fini très bientôt [[https://pythonclock.org/|Python2 c'est fini dans ...]]** 
 +Mais comme guido n'est plus là, twitter réussira peut-être à le conserver !!!
  
-====== Je me fais violence ======+Cette page ne concerne que python 2.7 Pour python 3.5, voir la page **[[archives:kivy_buildozer_pour_creer_une_application_android_avec_un_script_python|Buildozer avec python 3.5]]**
  
-Nous allons essayer tout ça en python2.7 dans virtualbox.+Utiliser VirtualBox avec 2 systèmes invités différents si vous utilisez python3.5 et python2.7 pour divers projets
  
-====== Préalable suffisant ======+Twisted n'est pas entièrement porté en python3. Kivent ne marche pas en python3. 
 +</WRAP> 
 +===== Préalable suffisant =====
  
-Installation de dépendances système diverses:+Installation de dépendances systèmes diverses:
  
 <code> <code>
- +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 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
-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+
 </code> </code>
-====== Kivy ======+===== Kivy =====
  
 Vérifier la version de cython à installer: Vérifier la version de cython à installer:
  
-  * https://kivy.org/docs/installation/installation-linux.html#cython+  * [[https://kivy.org/docs/installation/installation-linux.html#cython|Version de cython]]
  
-''%%sudo pip install -I Cython==0.25%%''\\ +<code> 
-''%%sudo pip install pygame%%''\\ +sudo pip install --upgrade cython==0.23 
-''%%sudo pip install kivy%%''+sudo pip install pygame 
 +sudo pip install kivy 
 +</code>
  
-====== Buildozer ======+===== Buildozer =====
  
 debian Stretch 9.4 mars 2018 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%%'' 
  
 <code> <code>
-sudo apt-get install python-dev openjdk-8-source +sudo dpkg --add-architecture i386 
-sudo apt-get install python-colorama python-sh python-appdirs python-jinja2 python-six+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 openjdk-8-source libssl-dev openssl 
 +sudo pip install colorama sh appdirs jinja2 six pyopenssl
 sudo pip install buildozer sudo pip install buildozer
 </code> </code>
-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 =====+===== 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 [[https://github.com/sergeLabo/kivent_example_16|sur github]]** et avec un apk dans le dossier /bin pour tester et jouer ! **Les sources avec les sorties terminal [[https://github.com/sergeLabo/kivent_example_16|sur github]]** et avec un apk dans le dossier /bin pour tester et jouer !
  
-====== Installation de twisted ======+===== Twisted =====
  
-''%%sudo pip install twisted%%''+<code>sudo pip install twisted</code>
  
-===== Error with twisted =====+ 
 +==== Error ====
  
 Février 2018 Debian 9.2 Stretch Février 2018 Debian 9.2 Stretch
Ligne 77: Ligne 73:
 # 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 # 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
 </code> </code>
-Sert à rien: 
  
-''%%sudo pip install incremental%%''\\ +===Post stackoverflow pour une solution=== 
-''%%sudo apt-get install python-zopeinterface%%''\\ +[[https://stackoverflow.com/questions/49707807/buildozer-with-twisted-fails-because-it-cannot-find-incremental|Buildozer with twisted fails because it cannot find incremental]] 
-''%%sudo apt-get install python-twisted%%''+ 
 +[[https://github.com/sergeLabo/androidserver2|Sources androidserver2 on github]]
  
-''%%sudo pip install zopeinterface%%''\\ 
-''%%sudo pip install twisted%%'' 
  
-{{tag>kivy}}+{{tag>sb archive}}
kivy_buildozer_avec_python_2.7.1521706150.txt.gz · Dernière modification : 2018/03/22 08:09 de serge