Re: [kivy-users] Kivy on ASUS TinkerBoard

541 views
Skip to first unread message
Message has been deleted

Pieter van der Meer

unread,
Jun 15, 2018, 2:58:30 AM6/15/18
to kivy-...@googlegroups.com
You sir, are my HERO!



On Fri, Jun 15, 2018 at 3:59 AM, <laouich...@gmail.com> wrote:
Documenting since it took me longer than I'd like to admit.

To get Kivy to run on the Asus TinkerBoard (and I assume this apply to other SBC)

1) Recompile SDL2 with KMS/DRM support
Follow instructions for "Linux" on https://wiki.libsdl.org/Installation#Linux.2FUnix

./configure --disable-video-rpi --disable-video-opengl --enable-video-opengles2 --disable-video-mir --enable-video-kmsdrm && make && make install

2) Launch Kivy app with KIVY_GL_BACKEND=sdl2 as an environment variable

3) Profit

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Pieter van der Meer
System engineer / Owner
Tasty Chips Electronics
www.tastychips.nl

Pieter van der Meer

unread,
Jun 16, 2018, 11:03:35 AM6/16/18
to kivy-...@googlegroups.com
tried it, but still the same rpi_backend is it necessary to deinstall the default sdl package first?

[INFO   ] [Kivy        ] v1.9.1

[INFO   ] [Python      ] v3.5.3 (default, Jan 19 2017, 14:11:04) 

[GCC 6.3.0 20170118]

[INFO   ] [Factory     ] 179 symbols loaded

[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)

[INFO   ] [Text        ] Provider: sdl2

[INFO   ] [OSC         ] using <multiprocessing> 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 <module>

    from kivy.lib.vidcore_lite import bcm, egl


sdl2 - RuntimeError: b'No available video device'

  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 80, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:1893)

  File "kivy/core/window/_window_sdl2.pyx", line 55, in kivy.core.window._window_sdl2._WindowSDL2Storage.die (kivy/core/window/_window_sdl2.c:1479)


Pieter van der Meer

unread,
Jun 16, 2018, 11:53:13 AM6/16/18
to kivy-...@googlegroups.com
apt-get purged the sdl2 package .. then reinstalled kivy and the sdl-ttf, sdl-image, sdl-mixer packages manually with dpkg. no change. very odd.

is it necessary to install all sdl packages manually? 


Pieter van der Meer

unread,
Jun 16, 2018, 12:41:20 PM6/16/18
to kivy-...@googlegroups.com
ok, eventually i just 

apt-get install python3-kivy

using the latest debian apt sources location and that seems to have done the trick.. 

Pieter van der Meer

unread,
Jun 16, 2018, 1:56:08 PM6/16/18
to kivy-...@googlegroups.com
ok.. after much pain i got your special compiled sdl2 working (without tinkeros' terrible software X windows driver, but on direct frame buffer / console)

the trick:

sudo apt purge python3-kivy
apt download libsdl2-ttf-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 python3-kivy-bin python3-kivy-common kivy-examples
sudo dpkg --force-all -i *.deb

that basically allows me to use the custom SDL2 shared lib with all the side libs from debian.. 

thanks! :)

Reply all
Reply to author
Forward
Message has been deleted
0 new messages