GNOME Bugzilla – Bug 794881
opengl: Missing link to broadcom library when building with RaspberryPi/Dispmanx support
Last modified: 2018-11-03 14:20:45 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.
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.
The components in -base already do link against bcm_host, and they work fine.
The actual call is from ext/gl/gstopengl.c This file explicitly defines extern bcm_host_init and calls it.
The only question now is: is this actually still needed or not?
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 ...
-- 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.