gstreamer1.0-plugins-bad: disble vulkan when x11/wayland not enabled
PATCH v2 1/1 gstreamer1.0-plugins-bad: disble vulkan when x11/wayland not enabled
When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work
disable vulkan from PACKAGECONFIG when x11 and wayland is not enabled
--- .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +4 -1
@@ -21,10 +21,13 @@ DEPENDS += "gstreamer1.0-plugins-base" inherit gobject-introspection +PACKAGECONFIG_VULKAN ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}" + PACKAGECONFIG ??= " \ ${GSTREAMER_ORC} \ + ${@'${PACKAGECONFIG_VULKAN}' if (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) != '') else ''} \ ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \
Signature · 1 line
2.34.1
Hi Changqing,
Changqing Li via lists.openembedded.org <changqing.li= [email protected]> escreveu (sexta, 8/05/2026 à(s) 03:23):
Quoted 28 lines
When vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workdisable vulkan from PACKAGECONFIG when x11 and wayland is not enabled
Signed-off-by Changqing Li <[email protected]>--- .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)(quoted diff) +0
-0gstreamer1.0-plugins-bad_1.28.2.bb b/meta/recipes-multimedia/gstreamer/ gstreamer1.0-plugins-bad_1.28.2.bb
indexcdf3a20dff..c7f081e25b100644meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +1
-0@@ -21,10 +21,13 @@ DEPENDS += "gstreamer1.0-plugins-base" inherit gobject-introspection +PACKAGECONFIG_VULKAN ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan',d)}"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +2
-0+ PACKAGECONFIG ??= " \ ${GSTREAMER_ORC} \ + ${@'${PACKAGECONFIG_VULKAN}' if (bb.utils.filter('DISTRO_FEATURES',
Quoted 2 lines
'x11 wayland', d) != '') else ''} \
that is a little more difficult to understand than usual, why don't we just use the bb.utils.contains?
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', '${ PACKAGECONFIG_VULKAN}', '', d)
It seems to me that this would work.
Or even the following, dropping the PACKAGECONFIG_VULKAN but then it loses some readability again.
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', '${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}', '', d)
Jose
Quoted 23 lines
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}\
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +1
-1- ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \--
2.34.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#236630):
https://lists.openembedded.org/g/openembedded-core/message/236630
Mute This Topic: https://lists.openembedded.org/mt/119208574/5052612
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Best regards, José Quaresma
Quoted 51 lines · Jose Quaresma
**
*CAUTION: This email comes from a non Wind River email account!*
Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Changqing,Changqing Li via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF1QVVTf7$> <changqing.li <https://urldefense.com/v3/__http://changqing.li__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF_bL7xxg$>[email protected]> escreveu (sexta, 8/05/2026 à(s) 03:23):
When vulkan is enabled in DISTRO_FEATURES without x11 or wayland, do_configure will failed with error: gst-libs/gst/vulkan/meson.build <https://urldefense.com/v3/__http://meson.build__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF42PxkLg$>:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work disable vulkan from PACKAGECONFIG when x11 and wayland is not enabled Signed-off-by: Changqing Li <[email protected]> --- .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF-7hh1lL$> | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF-7hh1lL$> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF-7hh1lL$> index cdf3a20dff..c7f081e25b 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF-7hh1lL$> +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF-7hh1lL$> @@ -21,10 +21,13 @@ DEPENDS += "gstreamer1.0-plugins-base" inherit gobject-introspection +PACKAGECONFIG_VULKAN ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}" + PACKAGECONFIG ??= " \ ${GSTREAMER_ORC} \ + ${@'${PACKAGECONFIG_VULKAN}' if (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) != '') else ''} \that is a little more difficult to understand than usual, why don't we just use the bb.utils.contains?
Quoted 7 lines
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', '${PACKAGECONFIG_VULKAN}', '', d)
It seems to me that this would work.
Or even the following, dropping the PACKAGECONFIG_VULKAN but then it loses some readability again.
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', '${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}', '', d)
I don't use bb.utils.contains because we need any of x11, wayland, not all of them.
I changed to use contains_any to make things more simple in V3
Thanks
//changqing
Quoted 39 lines
Jose
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \ -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#236630): https://lists.openembedded.org/g/openembedded-core/message/236630 <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/236630__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF7cjX7gU$> Mute This Topic: https://lists.openembedded.org/mt/119208574/5052612 <https://urldefense.com/v3/__https://lists.openembedded.org/mt/119208574/5052612__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF9IH9URn$> Group Owner: [email protected] <mailto:openembedded-core%[email protected]> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!YccBDNYEXpz_MPACKZrYS72DaMJ3JFmzaPEFpg61gHblIUtXPjN5cX8_yJyXzKOahC1kLOSSX994Ry4PXOaXF3LviIFg$> [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-Signature · 3 lines
Best regards, José Quaresma
Hi Changqing,
Quoted 21 lines · Changqing Li via lists.openembedded.org
When vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workdisable vulkan from PACKAGECONFIG when x11 and wayland is not enabled
Signed-off-by Changqing Li <[email protected]>--- .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +1
-0@@ -21,10 +21,13 @@ DEPENDS += "gstreamer1.0-plugins-base" inherit gobject-introspection +PACKAGECONFIG_VULKAN ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb DEPENDS += "gstreamer1.0-plugins-base" · line 33
Quoted 10 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +3
-1+ PACKAGECONFIG ??= " \ ${GSTREAMER_ORC} \ + ${@'${PACKAGECONFIG_VULKAN}' if (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) != '') else ''} \ ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \
Should we really build gstreamer-1.0-plugins-bad without vulkan support even if DISTRO_FEATURES contains it? Seems odd to me.
If we can fail the build, then we could probably do:
ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"
Otherwise if this isn't desired, we could go for:
# Vulkan requires a windowing systemPACKAGECONFIG_VULKAN = "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'vulkan', '', d)}"
PACKAGECONFIG ??= "\
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', '${PACKAGECONFIG_VULKAN}', '', d)}"
Cheers,
Quentin
Quoted 45 lines · Quentin Schulz
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Hi Changqing,
Quoted 21 lines · Changqing Li via lists.openembedded.org
When vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workdisable vulkan from PACKAGECONFIG when x11 and wayland is not enabled
Signed-off-by Changqing Li <[email protected]>---
.../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++-1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +0
-1---a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
+++
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bbmeta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +0
-0@@ -21,10 +21,13 @@ DEPENDS += "gstreamer1.0-plugins-base"inherit gobject-introspection
Quoted 14 lines
+PACKAGECONFIG_VULKAN ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}"
+
PACKAGECONFIG ??= " \
${GSTREAMER_ORC} \
+ ${@'${PACKAGECONFIG_VULKAN}' if (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)!= '') else ''} \
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
- ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \
+ ${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \
bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \Should we really build gstreamer-1.0-plugins-bad without vulkan support even if
DISTRO_FEATUREScontains it? Seems odd to me.
Quoted 5 lines
If we can fail the build, then we could probably do:
ANY_OF_DISTRO_FEATURES= "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"
I did like this in the first version, see subject: [gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES]
Quoted 10 lines
Otherwise if this isn't desired, we could go for:
# Vulkan requires a windowing system
PACKAGECONFIG_VULKAN= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'vulkan', '', d)}"PACKAGECONFIG ??= "\
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', '${PACKAGECONFIG_VULKAN}', '', d)}"
This seems more easy to understand, change like this in V3
Thanks
//Changqing
Quoted 2 lines
Cheers,
Quentin
Quoted 47 lines · Changqing Li via lists.openembedded.org
Quoted 45 lines · Quentin Schulz
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Hi Changqing,
Quoted 21 lines · Changqing Li via lists.openembedded.org
When vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workdisable vulkan from PACKAGECONFIG when x11 and wayland is not enabled
Signed-off-by Changqing Li <[email protected]>---
.../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++-1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-multimedia/gstreamer/gstreamer1.0- plugins-bad_1.28.2.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins- bad_1.28.2.bb +0
-1--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins- bad_1.28.2.bbmeta/recipes-multimedia/gstreamer/gstreamer1.0- plugins-bad_1.28.2.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins- bad_1.28.2.bb +0
-0@@ -21,10 +21,13 @@ DEPENDS += "gstreamer1.0-plugins-base"inherit gobject-introspection
Quoted 14 lines
+PACKAGECONFIG_VULKAN ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}"
+
PACKAGECONFIG ??= " \
${GSTREAMER_ORC} \
+ ${@'${PACKAGECONFIG_VULKAN}' if (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)!= '') else ''} \
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
- ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \
+ ${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \
bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \Should we really build gstreamer-1.0-plugins-bad without vulkan support even if
DISTRO_FEATUREScontains it? Seems odd to me.
Quoted 6 lines
Quoted 5 lines
If we can fail the build, then we could probably do:
ANY_OF_DISTRO_FEATURES= "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"I did like this in the first version, see subject: [gstreamer1.0- plugins-bad: add
ANY_OF_DISTRO_FEATURES]
Don't reset the version number when it's for the same feature/fix otherwise it's difficult to keep track of patch history :)
For reference, what Changqing meant to point at was: https://lore.kernel.org/openembedded-core/[email protected]/T/#mf5e87479ea92059c8ade15922b960a57f0471046
Cheers,
Quentin