Buildozer problems under Ubuntu 12.10 and 12.04

173 views
Skip to first unread message

Jacek Nowak

unread,
Feb 17, 2014, 5:44:41 AM2/17/14
to kivy-...@googlegroups.com
Is there a recommended and working way to install and use buildozer? I've been fighting with this for a few days now and cannot get it to work.

Here are my findings:
I use VirtualBox to set up ubuntu VM. I've tried Ubuntu 12.04 and 12.10 and both versions are giving me different results.

Ubuntu 12.10:

I install fresh instance of Ubuntu 12.10, install updates that pop up, install guest additions. Then I install python-pygame and after that kivy 1.8.0 (stable). When I try to run my application after these steps I get the issue reported here (for MacOS though): http://kivy.org/docs/installation/troubleshooting-macosx.html. The difference is that pygame itself works fine for me, no issues when importing it manually. Another peculiar thing is that when I install buildozer with prerequisites and try to generate android package for my app, it gets generated. I did not try to deploy it though so I don't know if it works. I figure that there is no chance for it to work if it does not even work in my dev environment.

Ubuntu 12.04:

I tried to use this script to install buildozer. It fails at the beginning, because libgl1-mesa-dev and libgles2-mesa-dev won't install saying that they depend on libgles2-mesa. If I install libgles2-mesa manually, it installs and its possible to go on with the script, but the system won't start anymore (it hangs during startup). I tried to ignore those packages and go on, but running buildozer after that ends up the same way as described below.

So I used the instructions given here: http://inclem.net/2014/01/12/kivy-crash-course/2_building_an_android_apk/ and managed to install everything finally. But then when I run buildozer, it ends up with the error reported already here:
https://github.com/kivy/buildozer/issues/73

And reinstalling or trying to upgrade cython (as suggested in the issue) does not help.

Did anybody actually manage to get buildozer to work with kivy 1.8.0 or 1.8.1 under Ubuntu? Or maybe I should use some other linux version/distro for this? I'm flexible, just want to build a VM capable of generating APK's with buildozer.

Ben Rousch

unread,
Feb 17, 2014, 6:33:43 AM2/17/14
to kivy-...@googlegroups.com
I use it every day with Ubuntu (you tried one of my install scripts 12.04). In your first case, that error is nearly always a case of your OpenGL not being enabled in your virtual machine, or - on Windows - being unavailable due to your video drivers not supporting OpenGL ES 2.

In your second case, I've used the install script a number of times on Ubuntu virtual machines without problems. Mesa is a 3D graphics engine, so my guess is that your OpenGL or drivers are insufficient or not enabled for the VM.

In either case, it points to an OpenGL problem.

Interestingly, you don't need working OpenGL to generate an APK. I generally do my APK creation on a headless server. So the APK you created might work fine.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Jacek Nowak

unread,
Feb 17, 2014, 8:34:17 AM2/17/14
to kivy-...@googlegroups.com
Thanks for quick answer.
How can I diagnose the OpenGL problems to find why kivy does not run at all on my Ubuntu 12.10 VM? I ran glxgears and it works fine, pygame itself imports ok. glxgears and kivy shows these warnings though:

OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table

Kivy gives additional OpenGL warning:

OpenGL Warning: glXChooseVisual: ignoring attribute 0x22

Any idea what I am missing?

Ben Rousch

unread,
Feb 17, 2014, 9:23:40 AM2/17/14
to kivy-...@googlegroups.com
I'm afraid I don't know much about the specifics of OpenGL, but I assume that support for it in the VM would rely on support for it in the host OS. So make sure you're using current drivers in your Windows 7 or 8, OSX, or Linux host. 


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jacek Nowak

unread,
Feb 17, 2014, 9:34:10 AM2/17/14
to kivy-...@googlegroups.com
Well, kivy installed on Ubuntu 12.04 VM on the same host (Windows7) works fine. Kivy installed on Ubuntu 12.10 does not work. My guess would be that this is not a host OS issue. Anyway if this doesn't get solved I can develop my app on one VM with Ubuntu 12.04 and generate APK's on another VM with Ubuntu 12.10. 

Jacek Nowak

unread,
Feb 19, 2014, 2:21:31 AM2/19/14
to kivy-...@googlegroups.com
I verified that on Ubuntu12.10, although kivy is not working properly, the APK generated fine and works on my phone. The scipt I used to install buildozer (my game is an early prototype, no audio support yet at all):

sudo apt-get install -y python-pygame
sudo add-apt-repository ppa:kivy-team/kivy
#sudo add-apt-repository ppa:kivy-team/kivy-daily
sudo apt-get update
sudo apt-get install -y python-kivy
sudo apt-get install -y build-essential git openjdk-7-jdk python-pip libgl1-mesa-dev libgles2-mesa-dev zlib1g-dev python-dev

sudo pip install -U cython
sudo pip install -U virtualenv
sudo pip install -U buildozer


Reply all
Reply to author
Forward
0 new messages