Issues with building an app with Buildozer on OSX

64 views
Skip to first unread message

James Golding

unread,
Sep 4, 2019, 4:44:23 AM9/4/19
to Kivy users support
Hi all

I've developed the start of an app using PyCharm (Python 3.7) and Kivy, which runs will within the PyCharm environment. I want to be able to build the APK using Buildozer, to check how it looks on a phone. To do that, I am using:

- Buildozer 0.39
- Android NDK r19c
- Cython 0.29.13

These were installed using the pip3.7 command (from some previous advice that I received. Using that certainly got rid of some of the errors I used to receive, which were based on Buildozer trying to use Python 2.7 instead.

To build, I use the command 'buildozer android debug' in the terminal window. However, I am still getting a number of warnings and errors and I just can't get the build to work. These are the warnings i seem to get:

[WARNING]: Maximum recommended NDK version is 17c

[WARNING]: Newer NDKs may not be fully supported by p4a.

[WARNING]: Cython for python3 missing. If you are building for  a python 3 target (which is the default) then THINGS WILL BREAK.

[WARNING]: Missing executable: libtoolize is not installed


I also get one major error, which is where the build fails:


[ERROR]:   Build failed: Couldn't find executable for CC. This indicates a problem locating the arm-linux-androideabi-gcc executable in the Android NDK, not that you don't have a normal compiler installed. Exiting.


I am really not sure what is going wrong, so I would be very grateful for any help you can give me, so that I can get Buildozer to build my APK. I have attached the buildozer.spec file, as well as the buildozer error log, as I've called it. It's just the full OSX terminal printout for the build, showing the warnings and errors. I hope it's useful in seeing where I am going wrong.


Thanks!

Buildozer Error Log
buildozer.spec

Alexander Taylor

unread,
Sep 4, 2019, 2:46:41 PM9/4/19
to Kivy users support
Use NDK 17c, or try python-for-android master.

James Golding

unread,
Sep 4, 2019, 3:49:21 PM9/4/19
to Kivy users support
I did try NDK 17c and unfortunately that comes up with the same errors. It was actually the one I used before I tried r20 and subsequently r19c. I realised that r20 might be too new and that p4a might not support it properly yet.

I don't think I've tried python-for-android master yet, so I'll give it a go later. What's the difference with that and the one installed with the latest buildozer?

Alexander Taylor

unread,
Sep 4, 2019, 5:47:44 PM9/4/19
to kivy-...@googlegroups.com

It works with NDK 20 and has some other fixes.

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/edvA9GLrtco/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/57126249-4c52-4bab-8908-3c6e2a6325b0%40googlegroups.com.

James Golding

unread,
Sep 5, 2019, 1:04:20 AM9/5/19
to Kivy users support
So I've tried your suggestions and unfortunately it still doesn't work. I get different errors now. I've attached the logs for those.

Firstly, when I run buildozer android debug, I get the error: no module named 'silex' and this has never appeared before.

When I then try to install silex, using pip3.7, I get the error 'pypandoc module not found' and again, this has never appeared before.

Can you explain what those mean and why they are coming up now? I feel like I am going round in circles a bit with this. Every day there's a new error and I'm just not sure why.

Thanks!
To unsubscribe from this group and all its topics, send an email to kivy-...@googlegroups.com.
Buildozer Error Log - pypandoc module not found
Buildozer Error Log - No Module Named 'Silex'
Reply all
Reply to author
Forward
0 new messages