blob: 34f7c2284f34ffab817cecac7bb3d397fbb7abc2 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 9866f51e5e0913f1e453eb574618bf7432f38cb6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 11 Apr 2018 10:46:33 +0800
4Subject: [PATCH] Add -lvchostif to link when using -lEGL on rpi
5
6This is required because libEGL from userland uses sybols
7from this library.
8
9lib/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
12These symbols are provided by libvchostif as seen below
13
14lib/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
18With 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
23Upstream-Status: Pending
24Signed-off-by: Khem Raj <raj.khem@gmail.com>
25Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
26---
27 m4/gst-gl.m4 | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30diff --git a/m4/gst-gl.m4 b/m4/gst-gl.m4
31index 1e97240..ab7774c 100644
32--- a/m4/gst-gl.m4
33+++ b/m4/gst-gl.m4
Brad Bishop15ae2502019-06-18 21:44:24 -040034@@ -275,7 +275,7 @@ case $host in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080035 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--
442.7.4
45