Re: [meta-arago][master][PATCH v2 1/2] gstreamer1.0-plugins-good: Add QT6 PACKAGECONFIG support

Andrew Davis <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arago
Message-ID <[email protected]>
On 1/16/26 8:37 AM, Jeevan via lists.yoctoproject.org wrote:
> GStreamer's Qt6 qmlgl plugin enables video rendering in Qt6/QML applications
> by providing GstGLVideoItem QML element. This plugin is essential for
> integrating GStreamer pipelines with Qt6 Quick/QML user interfaces.
> 
> Enable Qt6 PACKAGECONFIG to build the qmlgl plugin when qt6-layer is present
> utilizing dynamic-layer.
> 
> Signed-off-by: Telukula Jeevan Kumar Sahu <[email protected]>
> ---
>   meta-arago-extras/conf/layer.conf                     |  4 ++++
>   .../gstreamer/gstreamer1.0-plugins-good_1.26-qt6.inc  | 11 +++++++++++
>   .../gstreamer1.0-plugins-good_1.26.%.bbappend         |  4 ++++
>   3 files changed, 19 insertions(+)
>   create mode 100644 meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26-qt6.inc
>   create mode 100644 meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.%.bbappend
> 
> diff --git a/meta-arago-extras/conf/layer.conf b/meta-arago-extras/conf/layer.conf
> index 3927a913..1a4a5bdd 100644
> --- a/meta-arago-extras/conf/layer.conf
> +++ b/meta-arago-extras/conf/layer.conf
> @@ -22,3 +22,7 @@ LAYERDEPENDS_meta-arago-extras = " \
>       networking-layer \
>       openembedded-layer \
>   "
> +
> +BBFILES_DYNAMIC += " \
> +    qt6-layer:${LAYERDIR}/dynamic-layers/qt6-layer/recipes*/*/*.bbappend \
> +"
> diff --git a/meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26-qt6.inc b/meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26-qt6.inc
> new file mode 100644
> index 00000000..e30440e1
> --- /dev/null
> +++ b/meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26-qt6.inc
> @@ -0,0 +1,11 @@
> +PACKAGECONFIG:append = " qt6"
> +
> +QT6WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
> +
> +PACKAGECONFIG[qt6] = "-Dqt6=enabled, -Dqt6=disabled, qtbase qtbase-native qtdeclarative qttools-native ${QT6WAYLANDDEPENDS}"

This part could be sent upstream to oe-core master.

Andrew

> +
> +# Qt tools like rcc, moc and uic are located in /usr/libexec, instead of
> +# /usr/bin, which is not in PATH by default.
> +do_configure:prepend:class-target() {
> +	export PATH=${STAGING_DIR_NATIVE}${libexecdir}:$PATH
> +}
> diff --git a/meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.%.bbappend b/meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.%.bbappend
> new file mode 100644
> index 00000000..27426f4d
> --- /dev/null
> +++ b/meta-arago-extras/dynamic-layers/qt6-layer/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.%.bbappend
> @@ -0,0 +1,4 @@
> +GSTREAMER1p0_PLUGINS_GOOD_1p26_QT6 = ""
> +GSTREAMER1p0_PLUGINS_GOOD_1p26_QT6:arago = "gstreamer1.0-plugins-good_1.26-qt6.inc"
> +
> +require ${GSTREAMER1p0_PLUGINS_GOOD_1p26_QT6}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.