Outils pour utilisateurs

Outils du site


archives:kivy_buildozer_pour_creer_une_application_android_avec_un_script_python

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
kivy_buildozer_pour_creer_une_application_android_avec_un_script_python [2019/01/03 18:49] – [Kivy: Buildozer pour créer une application Android avec un script python] sergearchives:kivy_buildozer_pour_creer_une_application_android_avec_un_script_python [2019/12/26 09:38] (Version actuelle) – ↷ Page déplacée de archive:kivy_buildozer_pour_creer_une_application_android_avec_un_script_python à archives:kivy_buildozer_pour_creer_une_application_android_avec_un_script_python serge
Ligne 1: Ligne 1:
-======Kivy: Buildozer pour créer une application Android avec un script python======+======Archive: Buildozer pour créer une application Android avec un script python======
  
 <WRAP center round box 50% centeralign> <WRAP center round box 50% centeralign>
Ligne 6: Ligne 6:
  
 <WRAP center round info centeralign 50%> <WRAP center round info centeralign 50%>
-**Valable sur Debian Buster 10**+**Testé sur Debian Buster 10 Alpha 3 en Janvier 2019**\\ 
 </WRAP> </WRAP>
  
-===== Tout pour Debian Buster=====+===== Ressources ===== 
 +  * [[https://github.com/kivy/buildozer|Buildozer sur GitHub]] 
 +  * [[http://buildozer.readthedocs.io/en/latest/installation.html|Installation]]
  
-  sudo dpkg --add-architecture i386 +=====Tous les problèmes avec buildozer===== 
-  sudo apt-get update+==== Cython ==== 
 +**Je ne comprends absolument pas pourquoi il faut cython en python3 et non pas cython3 !!!!!!!!!!!!!!!!!!**
  
-===Logiciels=== +=====Contexte pour python 3===== 
-  sudo apt-get install filezilla terminator caja-open-terminal grsync gparted geany geany-plugins ncdu git thunderbird blender inkscape vlc gimp audacity gdebi keepassxc geeqie blender simple-scan gnome-system-tools cups locales +  * **https://github.com/kivy/kivy/wiki/Android-SDK-NDK-Information**
  
-===System=== +  SDK 20 / API 24 NDK 14b Python 3.7
-  sudo apt-get install libsdl2-dev zlib1g-dev pkg-config autoconf automake cmake dkms libtool libsdl2-2.0-0 ccache openjdk-8-jdk unzip ffmpeg libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good libncurses5:i386 libstdc++6:i386 libgtk2.0-0:i386 libpangox-1.0-0:i386 libidn11:i386 zlib1g:i386 openjdk-8-source libssl-dev openssl gcc libpangoxft-1.0-0:i386 adb libtool build-essential python3-pip python3-dev python3-six libpython3-all-dev python3-all python3-all-dev python3-virtualenv virtualenv +
- +
-===N'existe plus=== +
-  libav-tools +
-   +
-=== Python 3.7 === +
-**Successfully installed** +
-\\ MarkupSafe-1.1.0 appdirs-1.4.3 colorama-0.4.1 jinja2-2.10 sh-1.12.14 +
-  sudo pip3 install jinja2 appdirs sh colorama setuptools +
- +
-**cython3: 0.28.4-1** +
-  sudo apt-get install cython3  +
-   +
-**Building wheels for collected packages:**  +
-\\ pyyaml, bs4, twisted, kivy, pyjnius, Kivy-Garden +
-Installing collected packages: pyyaml, soupsieve, beautifulsoup4, bs4, unidecode, lxml, attrs, Automat, PyHamcrest, constantly, hyperlink, incremental, zope.interface, twisted, numpy, opencv-python, Kivy-Garden, docutils, pygments, kivy, pygame, ptyprocess, pexpect, buildozer, pyjnius +
- +
-**Successfully installed** +
- +
-Automat-0.7.0 Kivy-Garden-0.1.4 PyHamcrest-1.9.0 attrs-18.2.0 beautifulsoup4-4.7.0 bs4-0.0.1 buildozer-0.37 constantly-15.1.0 docutils-0.14 hyperlink-18.0.0 incremental-17.5.0 kivy-1.10.1 lxml-4.2.6 numpy-1.15.4 opencv-python-3.4.5.20 pexpect-4.6.0 ptyprocess-0.6.0 pygame-1.9.4 pygments-2.3.1 pyjnius-1.1.4 pyyaml-3.13 soupsieve-1.6.1 twisted-18.9.0 unidecode-1.0.23 zope.interface-4.6.0 +
- +
-  sudo pip3 install pyyaml bs4 unidecode lxml twisted numpy opencv-python kivy pygame buildozer pyjnius +
- +
-===Doc github=== +
-<code> +
-# via pip (latest stable, recommended) +
-sudo pip install buildozer +
- +
-# latest dev version +
-sudo pip install https://github.com/kivy/buildozer/archive/master.zip +
-# Successfully installed buildozer-0.38.dev0 +
- +
-# git clone, for working on buildozer +
-git clone https://github.com/kivy/buildozer +
-cd buildozer +
-python setup.py build +
-sudo pip install -e . +
-</code> +
- +
-=== Ressources === +
-  * [[https://github.com/kivy/buildozer|Buildozer sur GitHub]] +
-  * [[http://buildozer.readthedocs.io/en/latest/installation.html|Installation]]+
  
 ===== Compilation d'un projet ===== ===== Compilation d'un projet =====
Ligne 84: Ligne 45:
 # (list) Permissions # (list) Permissions
 android.permissions = INTERNET,CHANGE_WIFI_MULTICAST_STATE,ACCESS_NETWORK_STATE,ACCESS_WIFI_STATE android.permissions = INTERNET,CHANGE_WIFI_MULTICAST_STATE,ACCESS_NETWORK_STATE,ACCESS_WIFI_STATE
 +
 +# SDK 20 / API 26 / NDK 15c / Python 3.7
 +android.api = 26
 +android.sdk = 20
 +android.ndk = 15c
 +android.sdk_path = /media/data/src_android/android-sdk-20
 +android.ndk_path = /media/data/src_android/android-ndk-r15c
  
 # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86 # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
Ligne 114: Ligne 82:
 </code> </code>
  
-==== Exemple ==== 
-  * [[https://github.com/sergeLabo/TapOSC/blob/master/buildozer.spec|Un buildozer.spec de TapOSC sur GitHub]] 
  
 ==== Compilation du apk ==== ==== Compilation du apk ====
Ligne 129: Ligne 95:
 ===== Debug de l'*.apk si l'application ne se lance pas ===== ===== Debug de l'*.apk si l'application ne se lance pas =====
  
-==== Kivy Launcher ==== 
-Cette méthode n'exécute pas le apk, mais lance le main.py. Utilisez logcat. 
-  * [[https://play.google.com/store/apps/details?id=org.kivy.pygame&hl=en|Méthode insuffisante]] 
  
 ==== Suivre tout ce qui se passe sur le téléphone avec logcat ==== ==== Suivre tout ce qui se passe sur le téléphone avec logcat ====
Ligne 143: Ligne 106:
  
  
- 
-==== Problème avec UTF-8 dans .kv ==== 
-* **A vérifier si c'est toujours actuel en 2019 avec python 3 par défaut !** 
- 
-Dans truc.kv: 
-<code python> 
-    Label: 
-        id: Titre 
-        font_size:  root.width/28 
-        text: self.titre.text 
-</code> 
-Dans main.py: 
- 
-<code python> 
-class Machin(Screen): 
-    titre = ObjectProperty() 
- 
-    # Dans le __init__() ou ailleurs 
-    self.titre.text = "éèàùê" 
-</code> 
  
  
-===== Un jeu qui marche ===== 
-  * **[[https://wiki.labomedia.org/index.php/Multi_Pong|Multi Pong]]** 
  
  
-{{tag>kivy sb}}+{{tag>archive sb}}
archives/kivy_buildozer_pour_creer_une_application_android_avec_un_script_python.1546541347.txt.gz · Dernière modification : 2019/01/03 18:49 de serge