After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794881 - opengl: Missing link to broadcom library when building with RaspberryPi/Dispmanx support
opengl: Missing link to broadcom library when building with RaspberryPi/Dispm...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.14.0
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-04-01 20:07 UTC by Alistair Buxton
Modified: 2018-11-03 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alistair Buxton 2018-04-01 20:07:53 UTC
The majority of GL plugins were recently moved into gst-plugins-base. Subsequently, gst-plugins-bad fails to build if gst-plugins-base is built with dispmanx support.

This happens because dispmanx support requires linking bcm_host. -bad does not know about this library and so the following build error occurs:

.libs/libgstopenglmixers_la-gstopengl.o: In function `plugin_init':
gstopengl.c:(.text+0x10): undefined reference to `bcm_host_init'
collect2: error: ld returned 1 exit status

bcm_host is added to $LIBS in -base configure.ac around line 218.
Comment 1 Nicolas Dufresne (ndufresne) 2018-04-01 20:15:41 UTC
Hopefully I'm correct, but it's gstreamer-opengl that should link against the broadcom library. This way, plugins don't need to care about it. Hence moving this bug to -base.
Comment 2 Alistair Buxton 2018-04-01 20:31:32 UTC
The components in -base already do link against bcm_host, and they work fine.
Comment 3 Alistair Buxton 2018-04-01 21:36:37 UTC
The actual call is from
ext/gl/gstopengl.c

This file explicitly defines extern bcm_host_init and calls it.
Comment 4 Tim-Philipp Müller 2018-04-01 21:55:04 UTC
The only question now is: is this actually still needed or not?
Comment 5 Nicolas Dufresne (ndufresne) 2018-04-01 23:53:21 UTC
Ok I see, if the call is still needed, then yes, we also need to copy back the linking to bcm_host in -bad. I bet this _init() function cannot be called multiple time ...
Comment 6 GStreamer system administrator 2018-11-03 14:20:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/682.