Message ID | 20250717130938.169424-1-richard.purdie@linuxfoundation.org |
---|---|
State | New |
Headers | show |
Series | gst-examples: Fix buttons in gtk-play at runtime | expand |
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 --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}"
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(+)