On Tue, May 31, 2022 at 1:54 PM Richard Purdie < [email protected]> wrote:
> On Tue, 2022-05-31 at 21:06 +0200, Markus Volk wrote: > > This fixes "Could not initialize egl display" in libsdl2 apps for > > wayland without DISTRO_FEATURE x11 > > > > Signed-off-by: Markus Volk <[email protected]> > > --- > > meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 8 +++++--- > > 1 file changed, 5 insertions(+), 3 deletions(-) > > > > diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb > b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb > > index 8519e7f732..e057b5cbbc 100644 > > --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb > > +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb > > @@ -56,14 +56,16 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF > -DSDL_ARTS=OFF \ > > > > # opengl packageconfig factored out to make it easy for distros > > # and BSP layers to pick either (desktop) opengl, gles2, or no GL > > -PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', > d)}" > > +PACKAGECONFIG_GL ?= " \ > > + ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', > d)} \ > > + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'gles2', > '', d)} \ > > +" > > > > PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}" > > PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', > 'x11', d)} ${PACKAGECONFIG_GL}" > > PACKAGECONFIG ??= " \ > > ${PACKAGECONFIG_GL} \ > > - ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio > x11', d)} \ > > - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', > '', d)} \ > > + ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11 > wayland', d)} \ > > ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ > > " > > PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," > > If you have opengl, x11 and wayland in DISTRO_FEATURES, does that cause > an issue? It would seem to change the config? Right I think wayland + gles + no x11 is a config of its own It should check that > > > Cheers, > > Richard > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#166335): https://lists.openembedded.org/g/openembedded-core/message/166335 Mute This Topic: https://lists.openembedded.org/mt/91458802/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
