Can Buildozer work on a Raspberry Pi

493 views
Skip to first unread message

Erik van Elten

unread,
Sep 29, 2015, 10:39:35 AM9/29/15
to Kivy users support
I'm running Kivy on a Rpi2 with the new official touchscreen. Magic! Lots of fun!

But, when I tried to build an APK in order to check out MyFirstUltraCoolApp on my Android tablet, Buildozer gives me this:

==========================================================================
pi@raspberrypi ~/Work/Grid $ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Create directory /home/pi/.buildozer
# Create directory /home/pi/.buildozer/cache
# Create directory .buildozer
# Create directory bin
# Create directory /home/pi/Work/Grid/.buildozer/applibs
# Create directory /home/pi/.buildozer/android/platform/android/platform
# Create directory .buildozer/android/platform
# Create directory .buildozer/android/app
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian `dpkg' package management program version 1.16.16 (armhf).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/bin/keytool
# Install platform
# Cwd /home/pi/Work/Grid/.buildozer/android/platform
Cloning into 'python-for-android'...
# Android ANT is missing, downloading
# Run 'tar xzf apache-ant-1.9.4-bin.tar.gz'
# Cwd /home/pi/.buildozer/android/platform
# Apache ANT installation done.
# Android SDK is missing, downloading
# Unpacking Android SDK
# Run 'tar xzf android-sdk_r21-linux.tgz'
# Cwd /home/pi/.buildozer/android/platform
# Rename /home/pi/.buildozer/android/platform/android-sdk-linux to /home/pi/.buildozer/android/platform/android-sdk-21
# Android SDK installation done.
# Android NDK is missing, downloading
# Unpacking Android NDK
# Run 'tar xjf android-ndk-r9c-linux-x86.tar.bz2'
# Cwd /home/pi/.buildozer/android/platform
# Rename /home/pi/.buildozer/android/platform/android-ndk-r9c to /home/pi/.buildozer/android/platform/android-ndk-r9c
# Android NDK installation done.
# Run '/home/pi/.buildozer/android/platform/android-sdk-21/tools/android list sdk -u -e'
# Cwd /home/pi/.buildozer/android/platform
SWT folder '/home/pi/.buildozer/android/platform/android-sdk-21/tools/lib/arm' does not exist.
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
# Command failed: /home/pi/.buildozer/android/platform/android-sdk-21/tools/android list sdk -u -e
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

==========================================================================

I'm stuck here. There is no /arm folder in /home/pi/.buildozer/android/platform/android-sdk-21/tools/lib but there was no warning of any kind when I installed BD...

Googling on this subject got me confused on a much higher level ;-)

Anyone with a clue?

Alexander Taylor

unread,
Sep 29, 2015, 2:31:39 PM9/29/15
to Kivy users support
I don't think it can work on the raspberry pi, as the android build tools don't work on arm.
Reply all
Reply to author
Forward
0 new messages