Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Add -lvchostif to link when using -lEGL on rpi |
| 2 | |
| 3 | This is required because libEGL from userland uses sybols |
| 4 | from this library. |
| 5 | |
| 6 | lib/libEGL.so.1.0.0 121: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add |
| 7 | 1552: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add |
| 8 | |
| 9 | These symbols are provided by libvchostif as seen below |
| 10 | |
| 11 | lib/libvchostif.so |
| 12 | 252: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add |
| 13 | 809: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add |
| 14 | |
| 15 | With this explicit link, plugins fail during runtime |
| 16 | |
| 17 | (gst-plugin-scanner:571): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstomx.so': Error relocating /usr/lib/libgstgl-1.0.so.0: vc_dispmanx_element_add: symbol not found |
| 18 | (gst-plugin-scanner:571): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstopengl.so': Error relocating /usr/lib/libgstgl-1.0.so.0: vc_dispmanx_element_add: symbol not found |
| 19 | |
| 20 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 21 | |
| 22 | Upstream-Status: Pending |
| 23 | Index: gst-plugins-bad-1.10.4/configure.ac |
| 24 | =================================================================== |
| 25 | --- gst-plugins-bad-1.10.4.orig/configure.ac |
| 26 | +++ gst-plugins-bad-1.10.4/configure.ac |
| 27 | @@ -785,7 +785,7 @@ case $host in |
| 28 | HAVE_EGL=yes |
| 29 | HAVE_GLES2=yes |
| 30 | HAVE_EGL_RPI=yes |
| 31 | - EGL_LIBS="-lbcm_host -lvcos -lvchiq_arm" |
| 32 | + EGL_LIBS="-lbcm_host -lvchostif -lvcos -lvchiq_arm" |
| 33 | EGL_CFLAGS="" |
| 34 | AC_DEFINE(USE_EGL_RPI, [1], [Use RPi platform]) |
| 35 | ]) |