2020-03-30 11:52 PM
I'm writing an Yocto recipe to integrate Kivy (kivy.org) into the st-image-weston image for STM32MP157C-DK2.
Main questions:
1) Is there recommended GUI framework for openSTLinux, beside QT (license issues).
2) Did someone ever add Kivy successfully to openSTLinux?
3) Has someone solutions for my isuse (below)?
What I did so far for Kivy:
- Using Kivy source from https://pypi.org/project/Kivy
- Write recipe (see below) for two versions of Kivy
Results:
-- for version 1.11.1 --> many issues of dependencies (gstreamer, sdl2, ..)
-- for version 1.10.1 --> Seems better as it has less dependencies. But Cython is missing, even though it has been added to st-image-weston.bb
python3-kivy_1.10.1.bb:
SUMMARY = "kivy for Python"
LICENSE = "MIT"
PYPI_PACKAGE = "Kivy"
# version 1.11.1
#LIC_FILES_CHKSUM = "file://LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87"
#SRC_URI[md5sum] = "638c6ca80dd079e2576b4acc56597669"
#SRC_URI[sha256sum] = "4d0e596f74271e901b551f77661dde238df4765484fce9f5d1c72e8022984e84"
# version 1.10.1
LIC_FILES_CHKSUM = "file://LICENSE;md5=70245b0153f62e27619400a6e88e1263"
SRC_URI[md5sum] = "4f3a0b977b8c3a63f3a6780e783c65d5"
inherit pypi
inherit setuptools3
DEPENDS = "python-cython python-pip"
added to st-image-weston.bb:
CORE_IMAGE_EXTRA_INSTALL += "python3-pip"
CORE_IMAGE_EXTRA_INSTALL += "python3-cython"
The recipe for the GUI applications contains:
RDEPENDS_${PN} = "python3-kivy"
Update:
I also asked @ Kivy support. They told me that dependencies are cython, sdl2 (and image, ttf) and opengl headers.
To use EGL they said that it would need some specific code to do the interface.
As my time is limited, I will look for another framework.
Thanks in advance.
Led