HELP BUILDOZER

165 views
Skip to first unread message

Jonathas Robison

unread,
Aug 2, 2023, 4:14:42 PM8/2/23
to Kivy users support
► Install buildozer:
sudo-apt-get install git
git clone https://github.com/kivy/buildozer.git


cd buildozer
sudo apt-get update
sudo apt-get install python3
sudo apt-get install -y python3-setuptools
sudo python3 setup.py install
cd ..

sudo apt-get install openjdk-8-jdk
sudo apt-get install unzip
sudo apt install python3 python3-pip ipython3
sudo apt install cython
sudo apt-get install autoconf
sudo apt install build-essential libltdl-dev libffi-dev libssl-dev python-dev
sudo pip3 install --upgrade cython
sudo apt-get install zip
buildozer init

► Build & Deployment
buildozer android debug deploy run logcat


esse seria o passo correto pra instalar o buildozer e suas dependencias? depoius add os arquivos para colpialar no raiz?

Robert

unread,
Aug 2, 2023, 5:00:32 PM8/2/23
to Kivy users support
No, follow the instructions in the documentation.

1) Install Buildozer with pip  https://github.com/kivy/buildozer/blob/master/docs/source/installation.rst

2) Install the dependencies  https://github.com/kivy/buildozer/blob/master/docs/source/installation.rst#android-on-ubuntu-2004-and-2204-64bit   (your openjdk-8 will not work,  use 11 or 17)

3) don't use sudo for pip

4) Cython must be 0.29.33

5) The Google translate of the 2nd question was strange, I didn't understand.  Perhaps this is what you want to know, try "Hello World" like this https://github.com/Android-for-Python/Android-for-Python-Users#try-hello-world

6) There is a lot of information here https://github.com/Android-for-Python/Android-for-Python-Users

Jonathas Robison

unread,
Aug 2, 2023, 6:21:52 PM8/2/23
to Kivy users support
jhow@DESKTOP-PTERMOT:~$ cd appadm
jhow@DESKTOP-PTERMOT:~/appadm$ pip3 install --user --upgrade buildozer
Collecting buildozer
  Downloading buildozer-1.5.0-py3-none-any.whl (86 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.9/86.9 KB 2.0 MB/s eta 0:00:00
Collecting pexpect
  Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 KB 5.2 MB/s eta 0:00:00
Collecting sh
  Downloading sh-2.0.4-py3-none-any.whl (38 kB)
Requirement already satisfied: virtualenv in /home/jhow/.local/lib/python3.10/site-packages (from buildozer) (20.24.2)
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: filelock<4,>=3.12.2 in /home/jhow/.local/lib/python3.10/site-packages (from virtualenv->buildozer) (3.12.2)
Requirement already satisfied: distlib<1,>=0.3.7 in /home/jhow/.local/lib/python3.10/site-packages (from virtualenv->buildozer) (0.3.7)
Requirement already satisfied: platformdirs<4,>=3.9.1 in /home/jhow/.local/lib/python3.10/site-packages (from virtualenv->buildozer) (3.10.0)
Installing collected packages: ptyprocess, sh, pexpect, buildozer
  WARNING: The scripts buildozer and buildozer-remote are installed in '/home/jhow/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed buildozer-1.5.0 pexpect-4.8.0 ptyprocess-0.7.0 sh-2.0.4
jhow@DESKTOP-PTERMOT:~/appadm$ buildozer init

Robert

unread,
Aug 2, 2023, 8:29:13 PM8/2/23
to Kivy users support
In previous linked docs  https://github.com/kivy/buildozer/blob/master/docs/source/installation.rst#android-on-ubuntu-2004-and-2204-64bit  it says:

# add the following line at the end of your ~/.bashrc file export PATH=$PATH:~/.local/bin/

(and if you are not familiar with Linux, you need to open a new shell)

Reply all
Reply to author
Forward
0 new messages