[Buildroot] [PATCH v10 6/6] gstreamer1 packages: add support for introspection
Yann E. MORIN
yann.morin.1998 at free.fr
Sun Mar 17 11:38:39 UTC 2019
Adam, All,
On 2019-02-06 04:15 -0500, aduskett at gmail.com spake thusly:
> From: Adam Duskett <Aduskett at gmail.com>
>
> Now that there is support for gobject-introspection, add the appropriate
> configuration options to support compiling against gobject-introspection.
>
> In addition:
> - gst1-plugins-base requires a patch to drop a incorrect reference to sdp when
> compiling the rtsp gir file.
That patch touches Makefile.am, so you need to add:
GST1_PLUGINS_BASE_AUTORECONF = YES
But still, gst1-plugins-base do not build here, with a creepy segfault
in qemu:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/home/ymorin/dev/buildroot/br-goi/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/g-ir-scanner-qemuwrapper: line 11: 16451 Segmentation fault GIO_MODULE_DIR=$(dirname $0)/../lib/gio/modules-dummy /home/ymorin/dev/buildroot/br-goi/output/host/bin/qemu-arm -r 4.20 -L $(dirname $0)/../../ -E LD_LIBRARY_PATH=$GIR_EXTRA_LIBS_PATH:.libs:$(dirname $0)/../lib:$(dirname $0)/../../lib "$@"
If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the .mk file should help.
(typically like this: GIR_EXTRA_LIBS_PATH="$(@D)/.libs")
Command '['/home/ymorin/dev/buildroot/br-goi/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/g-ir-scanner-qemuwrapper', '/home/ymorin/dev/buildroot/br-goi/output/build/gst1-plugins-base-1.14.4/gst-libs/gst/audio/tmp-introspectqe9drlob/GstAudio-1.0', '--introspect-dump=/home/ymorin/dev/buildroot/br-goi/output/build/gst1-plugins-base-1.14.4/gst-libs/gst/audio/tmp-introspectqe9drlob/functions.txt,/home/ymorin/dev/buildroot/br-goi/output/build/gst1-plugins-base-1.14.4/gst-libs/gst/audio/tmp-introspectqe9drlob/dump.xml']' returned non-zero exit status 1.
Regards,
Yann E. MORIN.
> Signed-off-by: Adam Duskett <Aduskett at gmail.com>
> ---
> Changes v1 -> v4:
> - Add patch to series.
>
> Changes v4 -> v5:
> - Changed --enable-introspection=yes to --enable-introspection (Yann)
> - Changed += GIR_EXTRA_LIBS_PATH="$(@D)/gst/.libs:$(@D)/libs/gst/base/.libs"
> to GSTREAMER1_GIR_EXTRA_LIBS_PATH=$(@D)/gst/.libs:$(@D)/libs/gst/base/.libs
>
> Chagnes v5 -> v6:
> - None
>
> Changes v6 -> v7:
> - Refresh for changes since v6.
>
> Changes v7 -> v10:
> - None
>
> .../gst1-plugins-bad/gst1-plugins-bad.mk | 5 ++++
> ...ect-reference-to-gstreamer-sdp-in-Ma.patch | 26 +++++++++++++++++++
> .../gst1-plugins-base/gst1-plugins-base.mk | 5 ++++
> package/gstreamer1/gstreamer1/gstreamer1.mk | 6 +++++
> 4 files changed, 42 insertions(+)
> create mode 100644 package/gstreamer1/gst1-plugins-base/0001-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch
>
> diff --git a/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk b/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
> index ac39f1e5ce..77795d8c69 100644
> --- a/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
> +++ b/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
> @@ -63,6 +63,11 @@ GST1_PLUGINS_BAD_CONF_OPTS += \
>
> GST1_PLUGINS_BAD_DEPENDENCIES = gst1-plugins-base gstreamer1
>
> +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
> +GST1_PLUGINS_BAD_CONF_OPTS += --enable-introspection
> +GST1_PLUGINS_BAD_GIR_EXTRA_LIBS_PATH=$(@D)/gst-libs/gst/allocators/.libs
> +endif
> +
> ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
> # RPI has odd locations for several required headers.
> GST1_PLUGINS_BAD_CONF_ENV += \
> diff --git a/package/gstreamer1/gst1-plugins-base/0001-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch b/package/gstreamer1/gst1-plugins-base/0001-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch
> new file mode 100644
> index 0000000000..07d4d8c476
> --- /dev/null
> +++ b/package/gstreamer1/gst1-plugins-base/0001-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch
> @@ -0,0 +1,26 @@
> +From 4330915d88dc4dd46eb4c28d756482b767c2747f Mon Sep 17 00:00:00 2001
> +From: Alexander Kanavin <alex.kanavin at gmail.com>
> +Date: Mon, 26 Oct 2015 17:30:14 +0200
> +Subject: [PATCH] rtsp: drop incorrect reference to gstreamer-sdp in Makefile.am
> +
> +Upstream-Status: Pending [review on oe-core maillist]
> +Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
> +Signed-off-by: Adam Duskett <aduskett at gmail.com>
> +---
> + gst-libs/gst/rtsp/Makefile.am | 1 -
> + 1 file changed, 1 deletion(-)
> +
> +diff --git a/gst-libs/gst/rtsp/Makefile.am b/gst-libs/gst/rtsp/Makefile.am
> +index 4f6d9f8..0afa370 100644
> +--- a/gst-libs/gst/rtsp/Makefile.am
> ++++ b/gst-libs/gst/rtsp/Makefile.am
> +@@ -79,7 +79,6 @@ GstRtsp- at GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstrtsp- at GST_API_VERS
> + --libtool="$(LIBTOOL)" \
> + --pkg gio-2.0 \
> + --pkg gstreamer- at GST_API_VERSION@ \
> +- --pkg gstreamer-sdp- at GST_API_VERSION@ \
> + --pkg-export gstreamer-rtsp- at GST_API_VERSION@ \
> + --add-init-section="$(INTROSPECTION_INIT)" \
> + --output $@ \
> +--
> +2.6.2
> diff --git a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk
> index fb976f9a94..d788d65495 100644
> --- a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk
> +++ b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk
> @@ -25,6 +25,11 @@ GST1_PLUGINS_BASE_CONF_OPTS += \
>
> GST1_PLUGINS_BASE_DEPENDENCIES = gstreamer1
>
> +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
> +GST1_PLUGINS_BASE_CONF_OPTS += --enable-introspection
> +GST1_PLUGINS_BASE_GIR_EXTRA_LIBS_PATH=$(@D)/gst-libs/gst/tag/.libs:$(@D)/gst-libs/gst/video/.libs:$(@D)/gst-libs/gst/audio/.libs:$(@D)/gst-libs/gst/rtp/.libs
> +endif
> +
> # These plugins are listed in the order from ./configure --help
> ifeq ($(BR2_PACKAGE_ORC),y)
> GST1_PLUGINS_BASE_DEPENDENCIES += orc
> diff --git a/package/gstreamer1/gstreamer1/gstreamer1.mk b/package/gstreamer1/gstreamer1/gstreamer1.mk
> index 76a74a0806..ae22a1985a 100644
> --- a/package/gstreamer1/gstreamer1/gstreamer1.mk
> +++ b/package/gstreamer1/gstreamer1/gstreamer1.mk
> @@ -32,4 +32,10 @@ GSTREAMER1_DEPENDENCIES = \
> libglib2 \
> $(if $(BR2_PACKAGE_LIBUNWIND),libunwind)
>
> +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
> +GSTREAMER1_DEPENDENCIES += gobject-introspection
> +GSTREAMER1_CONF_OPTS += --enable-introspection
> +GSTREAMER1_GIR_EXTRA_LIBS_PATH=$(@D)/gst/.libs:$(@D)/libs/gst/base/.libs
> +endif
> +
> $(eval $(autotools-package))
> --
> 2.20.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list