Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 9866f51e5e0913f1e453eb574618bf7432f38cb6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 11 Apr 2018 10:46:33 +0800 |
| 4 | Subject: [PATCH] Add -lvchostif to link when using -lEGL on rpi |
| 5 | |
| 6 | This is required because libEGL from userland uses sybols |
| 7 | from this library. |
| 8 | |
| 9 | lib/libEGL.so.1.0.0 121: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add |
| 10 | 1552: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add |
| 11 | |
| 12 | These symbols are provided by libvchostif as seen below |
| 13 | |
| 14 | lib/libvchostif.so |
| 15 | 252: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add |
| 16 | 809: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add |
| 17 | |
| 18 | With this explicit link, plugins fail during runtime |
| 19 | |
| 20 | (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 |
| 21 | (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 |
| 22 | |
| 23 | Upstream-Status: Pending |
| 24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 25 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> |
| 26 | --- |
| 27 | m4/gst-gl.m4 | 2 +- |
| 28 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 29 | |
| 30 | diff --git a/m4/gst-gl.m4 b/m4/gst-gl.m4 |
| 31 | index 1e97240..ab7774c 100644 |
| 32 | --- a/m4/gst-gl.m4 |
| 33 | +++ b/m4/gst-gl.m4 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 34 | @@ -275,7 +275,7 @@ case $host in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 35 | HAVE_EGL=yes |
| 36 | HAVE_GLES2=yes |
| 37 | HAVE_EGL_RPI=yes |
| 38 | - EGL_LIBS="-lbcm_host -lvcos -lvchiq_arm" |
| 39 | + EGL_LIBS="-lbcm_host -lvchostif -lvcos -lvchiq_arm" |
| 40 | EGL_CFLAGS="" |
| 41 | AC_DEFINE(USE_EGL_RPI, [1], [Use RPi platform]) |
| 42 | ]) |
| 43 | -- |
| 44 | 2.7.4 |
| 45 | |