wxwidgets: Fix building without x11
Quoted 11 lines · Scott Murray via lists.openembedded.org
Building with wayland and opengl in
DISTRO_FEATURESwithout x11 as well was giving the error:wxwidgets: PACKAGECONFIG[no_gui] Conflict package config 'opengl' set in PACKAGECONFIG.
Upon some investigation, it looks like wxwidgets now supports building against Gtk's Wayland support, so we can also enable it if wayland is in
DISTRO_FEATURES. For OpenGL, however, wxwidgets seems to have a dependency on libglu, so theDISTRO_FEATUREScheck has been changed to only enable it by default if both x11 and opengl are configured.
Quoted 4 lines
Signed-off-by Scott Murray <[email protected]>--- meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
I hadn't checked the list before sending this, I'd be okay with Robert's similar fix instead, though enabling building with wayland support seems like it potentially could be useful to somebody.
Quoted 18 lines
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +3
-3@@ -43,9 +43,9 @@ EXTRA_OECMAKE:append:libc-musl = " \ -DHAVE_LOCALE_T=OFF \ " -# All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) -PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \ +# OpenGL support currently seems tied to using libglu, which requires x11 +PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ " PACKAGECONFIG:remove:class-native = "opengl"
Quoted 14 lines · Scott Murray
Quoted 11 lines · Scott Murray via lists.openembedded.org
Building with wayland and opengl in
DISTRO_FEATURESwithout x11 as well was giving the error:wxwidgets: PACKAGECONFIG[no_gui] Conflict package config 'opengl' set in PACKAGECONFIG.
Upon some investigation, it looks like wxwidgets now supports building against Gtk's Wayland support, so we can also enable it if wayland is in
DISTRO_FEATURES. For OpenGL, however, wxwidgets seems to have a dependency on libglu, so theDISTRO_FEATUREScheck has been changed to only enable it by default if both x11 and opengl are configured.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Scott Murray <[email protected]>--- meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)I hadn't checked the list before sending this, I'd be okay with Robert's similar fix instead, though enabling building with wayland support seems like it potentially could be useful to somebody.
I have taken the latter fix since it was fixing wayland too.
Quoted 28 lines
Quoted 9 lines
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +0
-0@@ -43,9 +43,9 @@ EXTRA_OECMAKE:append:libc-musl = " \ -DHAVE_LOCALE_T=OFF \ "meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb EXTRA_OECMAKE:append:libc-musl = " \ · line 51
Quoted 10 lines
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +3
-3-# All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) -PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \ +# OpenGL support currently seems tied to using libglu, which requires x11 +PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ " PACKAGECONFIG:remove:class-native = "opengl"-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#96483): https://lists.openembedded.org/g/openembedded-devel/message/96483
Mute This Topic: https://lists.openembedded.org/mt/90338460/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 20 lines · Khem Raj
Quoted 19 lines · Scott Murray
Quoted 15 lines · Scott Murray via lists.openembedded.org
Building with wayland and opengl in
DISTRO_FEATURESwithout x11 as well was giving the error:wxwidgets: PACKAGECONFIG[no_gui] Conflict package config 'opengl' set in PACKAGECONFIG.
Upon some investigation, it looks like wxwidgets now supports building against Gtk's Wayland support, so we can also enable it if wayland is in
DISTRO_FEATURES. For OpenGL, however, wxwidgets seems to have a dependency on libglu, so theDISTRO_FEATUREScheck has been changed to only enable it by default if both x11 and opengl are configured.Signed-off-by Scott Murray <[email protected]>--- meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 5 lines
Quoted 3 lines
I hadn't checked the list before sending this, I'd be okay with Robert's similar fix instead, though enabling building with wayland support seems like it potentially could be useful to somebody.
I have taken the latter fix since it was fixing wayland too.
The fix looks good to me, thanks.
// Robert
Quoted 29 lines
Quoted 29 lines
Quoted 10 lines
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +0
-0@@ -43,9 +43,9 @@ EXTRA_OECMAKE:append:libc-musl = " \ -DHAVE_LOCALE_T=OFF \ "meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb EXTRA_OECMAKE:append:libc-musl = " \ · line 51
Quoted 10 lines
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +3
-3-# All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) -PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \ +# OpenGL support currently seems tied to using libglu, which requires x11 +PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ " PACKAGECONFIG:remove:class-native = "opengl"-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#96483): https://lists.openembedded.org/g/openembedded-devel/message/96483
Mute This Topic: https://lists.openembedded.org/mt/90338460/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-