diff mbox series

gst-examples: Fix buttons in gtk-play at runtime

Message ID 20250717130938.169424-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series gst-examples: Fix buttons in gtk-play at runtime | expand

Commit Message

Richard Purdie July 17, 2025, 1:09 p.m. UTC
The media player buttons weren't working. At runtime there were warnings
like:

(gtk-play:824): Gtk-WARNING **: 12:37:53.946: Could not find signal handler 'next_button_clicked_cb'.  Did you compile with -rdynamic?

Add the missing linker option to make the buttons work.

[YOCTO #15915]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb | 3 +++
 1 file changed, 3 insertions(+)

Comments

Khem Raj July 17, 2025, 4:59 p.m. UTC | #1
On Thu, Jul 17, 2025 at 6:09 AM Richard Purdie via
lists.openembedded.org
<richard.purdie=linuxfoundation.org@lists.openembedded.org> wrote:
>
> The media player buttons weren't working. At runtime there were warnings
> like:
>
> (gtk-play:824): Gtk-WARNING **: 12:37:53.946: Could not find signal handler 'next_button_clicked_cb'.  Did you compile with -rdynamic?
>
> Add the missing linker option to make the buttons work.
>
> [YOCTO #15915]
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb b/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb
> index 8835b7d97bc..df8fd4bd263 100644
> --- a/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb
> +++ b/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb
> @@ -18,6 +18,9 @@ S = "${UNPACKDIR}/${BP}/subprojects/gst-examples"
>
>  inherit meson pkgconfig features_check
>
> +# gtk-play has runtime errors otherwise
> +TARGET_LDFLAGS += "-rdynamic"
> +

I wonder why other distros do not see this problem. Maybe its due to
OE defaulting to hidden visibility attribute in C++ compiler options

>  UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)"
>
>  ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#220542): https://lists.openembedded.org/g/openembedded-core/message/220542
> Mute This Topic: https://lists.openembedded.org/mt/114202596/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb b/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb
index 8835b7d97bc..df8fd4bd263 100644
--- a/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb
+++ b/meta/recipes-multimedia/gstreamer/gst-examples_1.26.3.bb
@@ -18,6 +18,9 @@  S = "${UNPACKDIR}/${BP}/subprojects/gst-examples"
 
 inherit meson pkgconfig features_check
 
+# gtk-play has runtime errors otherwise
+TARGET_LDFLAGS += "-rdynamic"
+
 UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)"
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"