mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

work arounds for: meta-oe/meta-oe/recipes-devtools/nodejs/nodejs_20.12.2.bb:do_compile meta-oe/meta-oe/recipes-support/pidgin/pidgin_2.14.2.bb:do_compile meta-oe/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb:do_compile meta-oe/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb:do_compile meta-oe/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb:do_compile meta-oe/meta-python/recipes-devtools/python/python3-gevent_24.2.1.bb:do_compile meta-oe/meta-oe/recipes-support/avro/avro-c++_1.11.3.bb:do_compile meta-oe/meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb:do_compile meta-oe/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb:do_compile meta-oe/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb:do_compile meta-oe/meta-oe/recipes-devtools/heaptrack/heaptrack_1.2.0.bb:do_configure meta-oe/meta-oe/recipes-support/avro/avro-c_1.11.3.bb:do_compile meta-oe/meta-oe/recipes-core/usleep/usleep_1.2.bb:do_compile meta-oe/meta-networking/recipes-protocols/openflow/openflow_git.bb:do_compile meta-oe/meta-oe/recipes-extended/sblim-sfcc/sblim-sfcc_2.2.8.bb:do_compile meta-oe/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb:do_compile meta-oe/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb:do_compile meta-oe/meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb:do_compile meta-oe/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb:do_compile meta-oe/meta-oe/recipes-extended/zsync/zsync-curl_git.bb:do_compile meta-oe/meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb:do_compile meta-oe/meta-oe/recipes-support/openct/openct_0.6.20.bb:do_compile meta-oe/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb:do_compile meta-oe/meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb:do_compile meta-oe/meta-oe/recipes-support/daemontools/daemontools_0.76.bb:do_compile meta-oe/meta-oe/recipes-devtools/libgee/libgee_0.20.6.bb:do_compile meta-oe/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb:do_compile meta-oe/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile meta-oe/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb:do_compile meta-oe/meta-oe/recipes-devtools/glade/glade_3.22.2.bb:do_compile http://errors.yoctoproject.org/Errors/Build/183124/ Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
78 lines
2.7 KiB
BlitzBasic
78 lines
2.7 KiB
BlitzBasic
SUMMARY = "Open source Python library for rapid development of applications \
|
|
that make use of innovative user interfaces, such as multi-touch apps."
|
|
HOMEPAGE = "https://kivy.org/"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d3bc49400e35d5a2279d14c40dcfb09"
|
|
|
|
inherit setuptools3 pkgconfig features_check
|
|
|
|
# Kivy's setup files only look for GLES libraries for Android, iOS, RPi,
|
|
# and mali-based OS's. We need to patch the setup file to tell Kivy setup
|
|
# that our machine has GLES libaries installed as well
|
|
# Also, if using SDL2 as backend, SDL2 needs to be configured with gles
|
|
SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \
|
|
file://0001-add-support-for-glesv2.patch \
|
|
"
|
|
|
|
SRCREV = "9ef218027178115a66b417ae34b21f488bdd3617"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
PACKAGES += "${PN}-examples"
|
|
FILES:${PN}-examples = "/usr/share/kivy-examples"
|
|
|
|
USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}"
|
|
export USE_WAYLAND
|
|
|
|
# if using Wayland, let's use pure Wayland (and not XWayland)
|
|
# so do not build using X11 flag when we detect Wayland
|
|
USE_X11 = " \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \
|
|
bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \
|
|
'0', d), d)}"
|
|
export USE_X11
|
|
|
|
# Use OpenGL ES 2.0 library
|
|
KIVY_GRAPHICS = "gles"
|
|
export KIVY_GRAPHICS
|
|
|
|
KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
|
|
export KIVY_CROSS_SYSROOT
|
|
|
|
REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"
|
|
|
|
ANY_OF_DISTRO_FEATURES = "x11 wayland"
|
|
|
|
DEPENDS += " \
|
|
gstreamer1.0 \
|
|
gstreamer1.0-python \
|
|
libsdl2 \
|
|
libsdl2-ttf \
|
|
libsdl2-image \
|
|
libsdl2-mixer \
|
|
pango \
|
|
python3 \
|
|
python3-cython-native \
|
|
"
|
|
|
|
RDEPENDS:${PN} = " \
|
|
gstreamer1.0 \
|
|
gstreamer1.0-python \
|
|
libsdl2 \
|
|
libsdl2-ttf \
|
|
libsdl2-image \
|
|
libsdl2-mixer \
|
|
pango \
|
|
python3 \
|
|
python3-docutils \
|
|
python3-fcntl \
|
|
python3-image \
|
|
python3-pillow \
|
|
python3-pygments \
|
|
"
|
|
|
|
# http://errors.yoctoproject.org/Errors/Details/766917/
|
|
# python3-kivy/2.3.0/git/kivy/graphics/cgl_backend/cgl_gl.c:4568:52: error: assignment to 'void (*)(GLuint, GLsizei, const GLchar **, const GLint *)' {aka 'void (*)(unsigned int, int, const char **, const int *)'} from incompatible pointer type 'void (*)(GLuint, GLsizei, const GLchar * const*, const GLint *)' {aka 'void (*)(unsigned int, int, const char * const*, const int *)'} [-Wincompatible-pointer-types]
|
|
# python3-kivy/2.3.0/git/kivy/core/window/_window_sdl2.c:8781:23: error: passing argument 1 of 'SDL_SetEventFilter' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
CFLAGS += "-Wno-error=incompatible-pointer-types"
|