From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mail.openembedded.org (Postfix) with ESMTP id 85C1B601F2 for ; Tue, 6 Jun 2017 23:59:17 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id f27so25714348pfe.0 for ; Tue, 06 Jun 2017 16:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=svn77VS+UokAoLuEGM4qoEeh+Rzx3Iv6gkNJa6op7pY=; b=Y/bDlqG8nXu1OIWopkabE33hf4zwj3xrxWfsZJ1UHKpDLBOAa6D9phntiZ0OVZRsL8 xz27J4VgvFXaSfq3rb8q6ZWln4OWUprECBOy7UIdG1cc132eMk2pzMjGoLYQzLT54v1j vHlF1VLhwjP2InqZneFZP/mF8MjEDpDQLSy3knzPCO7Y8mt1PhJ+6NgESo7Yy9nKnqTH v1zpd2X+Qp8yCG0TmMcI0TkaDeSmZns38KsjHhyzJubtwIc9Yb7xPDvWAzjm/XFt43CY wuRMwHJ7hWwu0wK9dB2MvH6ivQe3Sa58oWQusdDIfibzPlc5UhOfFogYAxmtFEfuMF7M 1c1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=svn77VS+UokAoLuEGM4qoEeh+Rzx3Iv6gkNJa6op7pY=; b=G7waL8yU+MC84BgwEyXEF+926iSPSHT8eNPZEguVfO1Hvrwiy4Y0c/KWUOleWdkqkv zLN45TqrTEx4mAFMRuYHOozE2k+mfb6P3u4td5Ip/mlOxnjNj6cwmMRGHNPANqlY/+eB MAzxQ+p091Mkt97MK2Xy7Zn5aOXD3rajKY9oDr6VNfFRmCb8yWu1La8qLzcHSHfhku6a xh7e+lSnY1YbPm6c4zLrQ9m8Fk4iRwGX7bWWI2Z/aaUJyM9+K89T5+F73djacPDze+cy NVjhOM1b+CYKhiwChwimqc4WDeSkkOkoVIJ3QsYoTCFGu359P0+pU1bAs9rmCWEZyXwL GMrw== X-Gm-Message-State: AODbwcByx3PFxkjuJSGJfoneRazHnToONm6ttMBFvqCOgqziOBuf6DI4 wDMkMbPxyyh+YcZw X-Received: by 10.99.8.1 with SMTP id 1mr25043124pgi.15.1496793558767; Tue, 06 Jun 2017 16:59:18 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::748]) by smtp.gmail.com with ESMTPSA id u85sm14000424pfg.73.2017.06.06.16.59.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Jun 2017 16:59:17 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 6 Jun 2017 16:59:08 -0700 Message-Id: <20170606235909.41352-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.0 Subject: [PATCH 1/2] gstreamer1.0-plugins-bad: Fix missing library with bcm egl X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2017 23:59:18 -0000 userland graphics driver provided libegl for rpi depends upon symbols from vchostif library, therefore add it to linker cmdline helps with loadng gst-gl plugins on rpi Signed-off-by: Khem Raj --- .../link-with-libvchostif.patch | 35 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch new file mode 100644 index 0000000000..c382b17586 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch @@ -0,0 +1,35 @@ +Add -lvchostif to link when using -lEGL on rpi + +This is required because libEGL from userland uses sybols +from this library. + +lib/libEGL.so.1.0.0 121: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add + 1552: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add + +These symbols are provided by libvchostif as seen below + +lib/libvchostif.so + 252: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add + 809: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add + +With this explicit link, plugins fail during runtime + +(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 +(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 + +Signed-off-by: Khem Raj + +Upstream-Status: Pending +Index: gst-plugins-bad-1.10.4/configure.ac +=================================================================== +--- gst-plugins-bad-1.10.4.orig/configure.ac ++++ gst-plugins-bad-1.10.4/configure.ac +@@ -785,7 +785,7 @@ case $host in + HAVE_EGL=yes + HAVE_GLES2=yes + HAVE_EGL_RPI=yes +- EGL_LIBS="-lbcm_host -lvcos -lvchiq_arm" ++ EGL_LIBS="-lbcm_host -lvchostif -lvcos -lvchiq_arm" + EGL_CFLAGS="" + AC_DEFINE(USE_EGL_RPI, [1], [Use RPi platform]) + ]) diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb index 0bb4053e43..def03a9b81 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb @@ -18,6 +18,7 @@ SRC_URI = " \ file://0001-smoothstreaming-implement-adaptivedemux-s-get_live_s.patch \ file://0001-smoothstreaming-use-the-duration-from-the-list-of-fr.patch \ file://0001-mssdemux-improved-live-playback-support.patch \ + file://link-with-libvchostif.patch \ " SRC_URI[md5sum] = "2757103e57a096a1a05b3ab85b8381af" SRC_URI[sha256sum] = "23ddae506b3a223b94869a0d3eea3e9a12e847f94d2d0e0b97102ce13ecd6966" -- 2.13.0