-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iMX8 support needed - Please help #7232
Comments
I'm only aware of one person on discord who mentioned they are using Kivy on that platform. So I'd suggest you ask them if they have any insights: https://discord.com/channels/423249981340778496/490493814281338890/771097327380463616. But as a thought, I wouldn't use python3-kivy package as that is old by now and probably won't work on that platform. Instead, I'd install kivy from scratch (I'd use the RPi install instructions as a guide). |
Thank you for the reply. I will tried accessing the channel on discord, but it is not allowing me to see the chats. can you help me on this? And I tried compiling it using source also but it fails due to platform not supported |
Even though this thread is a bit old by now I haven't found a solution anywhere on the net, so I'll post what I got to work in the hopes that it will help someone else. After a couple of days of compiling and testing I've finally gotten kivy to run om i.IMX8. I'm using the VAR-SOM-MX8M-MINI from Variscite, with Yocto Hardknott. As far as I can tell there are two issues with the default options: The steps that worked for me are;
gives the following output on my system
In a production environment these steps should preferably be written as bitbake recipes, but I'm posting this here as a pointer for now. |
Hi @wileur
And my Kivy build log show it is on wayland too.
I put full log at discord |
Hi @WolsYang, I'll give it a try in yocto myself as I also need it automated. The solution above was more of a proof that it could be done, but not so practical. I'll report back when I get it working. |
Hi @wileur , The flag you add, some is already in the recipe.
Then when you try to build, may get X11error, you need to remove this feature in python3-kivy_%.bbappend. |
Since I follow wileur step ' Build SDL2 from source '.
|
I've now successfully built and deployed kivy completely through yocto. I'm using Variscite's imx8mm and their provided build system so my recipes are likely a bit different from yours, bu here is what I did: There was no python3-kivy recipe so I grabbed the one from openembedded, python3 including the patch for GLES.
The .bbappend contains the same exports as in my post above:
I also added a .bbappend file for libsdl2 in
Not sure if the PACKAGECONFIG override is needed but I didn't want to dig deeper in the image features at the moment. in my layer.conf I added the recipes:
I built the image, run the test and got the same result as in my post above.
|
It seems like you got Kivy itself to work now! |
I try to ask this question on Kivy Discord but seems like no one knows what's going on. :'(
If get X11 error, add this to python3-kivy_%.bbappend.
|
Just an update on kivy on yocto, it was reported in this discord thread that kivy has a hard time playing video, even with the basic example from https://stackoverflow.com/a/54119556, but gst works fine. |
Hello Team and fellow guys !
We are using kivy for long time and have developed many applications based on kivy and all were running without any issues these days. Recently one of our requirements come with Ubuntu porting on ARM like iMX8M based SBC. We successfully installed kivy with the following command "sudo apt-get install python3-kivy". Yet while running kivy we encounter the following error:
[INFO ] [OSC ] using for socket
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[CRITICAL] [Window ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name 'bcm'
File "/usr/lib/python3/dist-packages/kivy/core/init.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in
from kivy.lib.vidcore_lite import bcm, egl
sdl2 - TypeError: expected bytes, str found
File "/usr/lib/python3/dist-packages/kivy/core/init.py", line 67, in core_select_lib
cls = cls()
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 138, in init
super(WindowSDL, self).init()
File "/usr/lib/python3/dist-packages/kivy/core/window/init.py", line 722, in init
self.create_window()
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 237, in create_window
self.fullscreen, resizable, state)
File "kivy/core/window/_window_sdl2.pyx", line 94, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:2204)
x11 - ImportError: No module named 'kivy.core.window.window_x11'
File "/usr/lib/python3/dist-packages/kivy/core/init.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
[CRITICAL] [App ] Unable to get a Window, abort.
While I searched around the forums, I came a fact that the Kivy runs only on RPI and not on other arm based platforms with ubuntu. So is there any way to run the kivy in iMX platforms?
Kindly help me out. Thanks in advance
The text was updated successfully, but these errors were encountered: