Problems building current GStreamer on Raspberry Pi 2B

J. Krieg bellum07 at googlemail.com
Wed Dec 30 14:09:26 UTC 2020


Hello,

since the GStreamer version 1.14.4 shipped with Paspberry Pi OS is
fairly outdated and I want to try a newer version of tsdemux,
I tried to build the most recent version of gstreamer on my Raspberry
Pi 2B with a 2020-12-02-raspios-buster-armhf-lite image using
gst-build.
Therefore I followed the steps outlined in
https://gitlab.freedesktop.org/gstreamer/gst-build/blob/master/README.md
I only need the base, good and bad plugins so I tried to disable most
of the other optional components by using the following command:

~/meson-0.56.0/meson.py \
  -Ddevtools=disabled \
  -Ddoc=disabled \
  -Dexamples=disabled \
  -Dges=disabled \
  -Dgst-examples=disabled \
  -Dintrospection=disabled \
  -Dlibav=disabled \
  -Dlibnice=disabled \
  -Dnls=disabled \
  -Dorc=disabled \
  -Dpython=disabled \
  -Drtsp_server=disabled \
  -Dtests=disabled \
  -Dtls=disabled \
  -Dugly=disabled \
  build

which succeeded successfully.

But when I start ninja -C build I get the following error after a while:

pi at raspberrypi:~/gstreamer/gst-build $ ninja -C build
ninja: Entering directory `build'
[1121/1886] Linking target
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so
FAILED: subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so
cc  -o subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/meson-generated_.._gstrpicam-enum-types.c.o
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/gstrpicamsrc.c.o
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/gstrpicamsrcdeviceprovider.c.o
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/RaspiCapture.c.o
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/RaspiCamControl.c.o
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/RaspiPreview.c.o
subprojects/gst-plugins-good/sys/rpicamsrc/libgstrpicamsrc.so.p/RaspiCLI.c.o
-Wl,--no-undefined -shared -fPIC -Wl,--start-group
-Wl,-soname,libgstrpicamsrc.so -Wl,-Bsymbolic-functions
subprojects/gstreamer/gst/libgstreamer-1.0.so.0.1900.0
subprojects/gstreamer/libs/gst/base/libgstbase-1.0.so.0.1900.0
subprojects/gst-plugins-base/gst-libs/gst/video/libgstvideo-1.0.so.0.1900.0
-Wl,--no-as-needed /usr/lib/arm-linux-gnueabihf/libglib-2.0.so
/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so -Wl,--export-dynamic
/usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so -pthread -lm
/opt/vc/lib/libmmal_core.so /opt/vc/lib/libmmal_util.so
/opt/vc/lib/libmmal_vc_client.so /opt/vc/lib/libvcos.so
/opt/vc/lib/libvchostif.a /opt/vc/lib/libbcm_host.so -Wl,--end-group
'-Wl,-rpath,$ORIGIN/../../../gstreamer/gst:$ORIGIN/../../../gstreamer/libs/gst/base:$ORIGIN/../../../gst-plugins-base/gst-libs/gst/video:/opt/vc/lib'
-Wl,-rpath-link,/home/pi/gstreamer/gst-build/build/subprojects/gstreamer/gst
-Wl,-rpath-link,/home/pi/gstreamer/gst-build/build/subprojects/gstreamer/libs/gst/base
-Wl,-rpath-link,/home/pi/gstreamer/gst-build/build/subprojects/gst-plugins-base/gst-libs/gst/video
-Wl,-rpath-link,/opt/vc/lib
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in
function `use_gencmd_service':
vc_vchi_gencmd.c:(.text+0xb4): undefined reference to `vchi_service_use'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in
function `release_gencmd_service':
vc_vchi_gencmd.c:(.text+0x128): undefined reference to `vchi_service_release'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in
function `vc_vchi_gencmd_init':
vc_vchi_gencmd.c:(.text+0x298): undefined reference to `vchi_service_open'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in
function `vc_gencmd_stop':
vc_vchi_gencmd.c:(.text+0x350): undefined reference to `vchi_service_close'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in
function `vc_gencmd_send_list':
vc_vchi_gencmd.c:(.text+0x47c): undefined reference to `vchi_msg_queue'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in
function `vc_gencmd_read_response':
vc_vchi_gencmd.c:(.text+0x594): undefined reference to `vchi_msg_dequeue'
collect2: error: ld returned 1 exit status
[1126/1886] Compiling C object
subprojects/gst-plugins-good/sys/v4l2/libgstvideo4linux2.so.p/gstv4l2object.c.o
ninja: build stopped: subcommand failed.

I tried it both with 1.19.0.1 and 1.18.2 and got the same error.

What's going wrong here and how can I fix it?
Any help would be greatly appreciated.

Thanks,
Joerg


More information about the gstreamer-devel mailing list