Closed ckaldemeyer closed 2 years ago
I am using this in a gitlab pipeline:
image: python:3.9
before_script:
- apt-get update
# install buildozer dependencies
- apt-get -y install git zip unzip python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
# install openjdk-13-jdk manually
# https://computingforgeeks.com/install-oracle-java-13-on-ubuntu-debian/
- apt-get -y install -y curl
- curl -O https://download.java.net/java/GA/jdk13/5b8a42f3905b406298b72d750b6919f6/33/GPL/openjdk-13_linux-x64_bin.tar.gz
- tar xvf openjdk-13_linux-x64_bin.tar.gz
- mv jdk-13 /opt/
- tee /etc/profile.d/jdk13.sh <<EOF
- export JAVA_HOME=/opt/jdk-13
- export PATH=\$PATH:\$JAVA_HOME/bin
- EOF
- source /etc/profile.d/jdk13.sh
- echo $JAVA_HOME
- java -version
# fix error "Aidl not found, please install it." in build process
#- apt-get -y install build-essential
#- apt-get -y install libstdc++6
# https://stackoverflow.com/questions/55902147/buildozer-not-finding-aidl
# https://stackoverflow.com/questions/45901878/why-does-buildozer-show-aidl-not-found-please-install-it-even-after-i-inst
- apt-get -y install android-sdk
#- apt-get -y install aidl
# install python packages
- pip install --user --upgrade buildozer
- export "PATH=$PATH:~/.local/bin/" >> ~/.bashrc # add buildozer to PATH
- pip install --user --upgrade Cython==0.29.19 virtualenv
- export "PATH=$PATH:/root/.local/bin" >> ~/.bashrc # add cython to PATH
- pip install --user kivy kivymd
run-buildozer:
script:
# create a new user to run all buildozer commands because
# it does not like to be run as root user
- adduser --disabled-password my_user
- chown -R my_user:my_user /root # add rights to access /root/.buildozer
#- su -m my_user -c "buildozer init" # run only once initially
- su -m my_user -c "buildozer android debug"
- su -m my_user -c "buildozer android clean"
only:
- main
What am I missing?
Hi @RobertFlatt and thanks for your answer. The "Confirmation question" comes from the invokation of buildozer android debug
.
Can you provide an example on how to invoke this command correctly (with a confirmation via "Yes") or provide a full example the contains the installation of all requirements?
I have now used the docker image: https://github.com/kivy/buildozer#buildozer-docker-image Thanks anyway!
Who can I solve this problem in windows as "sudo apt-get" command. I didn't known how to paste these commands where???
sudo apt-get update sudo apt-get install build-essential sudo apt-get install libstdc++6 sudo apt-get install aidl
Where do we use this?
Who can I solve this problem in windows as "sudo apt-get" command. I didn't known how to paste these commands where???
sudo apt-get update sudo apt-get install build-essential sudo apt-get install libstdc++6 sudo apt-get install aidl
Who can I solve this problem in windows as "sudo apt-get" command. I didn't known how to paste these commands where???
sudo apt-get update sudo apt-get install build-essential sudo apt-get install libstdc++6 sudo apt-get install aidl
You have to use these in Linux otherwise you have to install WSL
Aidl is installed automatically (it is part of the Google tools) when Buildozer first runs.
This automatic install will fail if you don't accept the Google licence agreement. See link in a post above from me about what to do if you did not accept the license agreement.
Buildozer runs on Linux, as a previous answer says if you use Windows you must install WSL and run Buildozer from there.
Versions
Description
When I run buildozer errors of missing packages occur.
buildozer.spec
Command:
Spec file:
Logs
Error