Presumably this isn’t expected to work, but I’m trying to install gstreamer from source on a Raspberry Pi 3B with Ubuntu MATE 16.04.5 LTS/Xenial using the Blue Robotics companion computer setup_gst.sh
script.
I need the hardware-accelerated omxh264enc
h264 encoder. There’s no binary available. I’ve used the script before on Raspbian, but want to run a couple ROS nodes on my companion and I’m having a lot of trouble getting ROS Kinetic built with the required packages on Raspbian.
I’ve had two problems so far with the script. First was the absence of libdirac-dev
in the apt install portion of the script. I took it out for now (as I can’t figure out how to install it on my version Ubuntu MATE)
Without that, it makes a lot of progress, but ultimately fails trying to build GstGL-1.0.gir
:
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['../../../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/home/computername/src/gstreamer/gst-plugins-bad/gst-libs/gst/gl/tmp-introspectDfxeqO/GstGL-1.0', '-export-dynamic', '-I/opt/vc/include', '-I/opt/vc/include/interface/vcos/pthreads', '-I/opt/vc/include/interface/vmcs_host/linux', '-Wno-error', '-Wno-redundant-decls', '-I/opt/vc/include', '-I/opt/vc/include/interface/vcos/pthreads', '-I/opt/vc/include/interface/vmcs_host/linux', '-I/opt/vc/include', '-I/opt/vc/include/interface/vcos/pthreads', '-I/opt/vc/include/interface/vmcs_host/linux', '-Wno-error', '-Wno-redundant-decls', '-I/opt/vc/include', '-I/opt/vc/include/interface/vcos/pthreads', '-I/opt/vc/include/interface/vmcs_host/linux', '-L/opt/vc/lib', '-L/opt/vc/lib', 'tmp-introspectDfxeqO/home/computername/src/gstreamer/gst-plugins-bad/gst-libs/gst/gl/tmp-introspectDfxeqO/GstGL-1.0.o', '-L.', 'libgstgl-1.0.la', '-L/usr/local/lib', '-lgio-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lgstvideo-1.0', '-lgstbase-1.0', '-lgstreamer-1.0', '-lgobject-2.0', '-lglib-2.0']' returned non-zero exit status 1
Makefile:1694: recipe for target 'GstGL-1.0.gir' failed
make[5]: *** [GstGL-1.0.gir] Error 1
make[5]: Leaving directory '/home/computername/src/gstreamer/gst-plugins-bad/gst-libs/gst/gl'
I’m curious if this is a known issue and has a known solution, or if anyone on the forum has a good, working recipe for building gstreamer from source on Ubuntu MATE 16.04.
Also, what’s libdirac-dev
used for and might it be causing the problem? Finding very little info on how to get it installed, if it’s possible.
I don’t care about building it from source if I don’t have to. So if anyone has another way to getting access to omxh264enc
or an alternative on Ubuntu Mate 16.04 (can’t upgrade the distro AFAIK, because I need ROS Kinetic) that would also be great.