From patchwork Thu Jul 6 14:33:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107153 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp2246746obb; Thu, 6 Jul 2017 07:34:50 -0700 (PDT) X-Received: by 10.99.185.28 with SMTP id z28mr26979672pge.123.1499351690459; Thu, 06 Jul 2017 07:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499351690; cv=none; d=google.com; s=arc-20160816; b=sbhRzhmKTDYREsaLgr2upEW1YKrLGIdieoz+SKKoH277i4pLsPBivLqVo3imbLrH0Y wGay1lz1XBeXHGj3f21WXqCD7mQf9/Rl/kX7lQpI5HYHfV4eWACtUwNTCPNTf87E7Rh2 WMVwI0H0I3iWLNdnynPTfY2NUL9N91NAQoB4WT6ZLiLQ2aSo9fpMGc48QN5kkdTNayiF R4HKVTf4quko3es86aKhyZ3k2QbmDvkihZhSkcZXz5jr/s6RZvmEdyLmfUvHzJCvAjmr 4DumZhWCH6espaDrBtyvBsjH9SGpwnIL5NxS81dSE3ichw/jcNZYF4kjr1Z1FIIAQKIK yJhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=kl9ufDlKCTv9RkXJBv5wWFURYyHDcQcuBFQTOH9dFOc=; b=NpSzIkmL/udWHLi4CAZSjSNxyINxEgJ8hMsgUuW8cK45GZYb+zUJu8UFwKhpj8Jx1w SaqLD42wiemgmLqiHKTZQiolfuGa2u6Vj4crwMoTuMax79o6FQtg0JCIvsa4OXwT+LE9 mv6B940SEe7Cs+LXxUcxnXqrA2zMM1dKyUOCdkkb3bzDHqs1HzUYunnbLO9M8T+gNSw6 GZ82uPP8MexZDEk8D7BIc3soDGsxNf/9+l9oVL2rnw0lkjd2fFzdiUlWEBAVfeY/eIhc LteAEXOT9ebYnNHp7XxY0+9F3bZo4rPBm6w0xK0TBPK+gE8XnNp+Mu/V8ddlSVj1Wn39 Eoxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=eZzQPc4B; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id k1si93091pfe.104.2017.07.06.07.34.50; Thu, 06 Jul 2017 07:34:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=eZzQPc4B; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3218977D12; Thu, 6 Jul 2017 14:34:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by mail.openembedded.org (Postfix) with ESMTP id D385171DCF for ; Thu, 6 Jul 2017 14:33:45 +0000 (UTC) Received: by mail-pf0-f170.google.com with SMTP id e7so1957464pfk.0 for ; Thu, 06 Jul 2017 07:33:47 -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:in-reply-to:references; bh=o+XhulgOUVxOZqt9rItNfnAjDBNxfjlILm0pavkJo3s=; b=eZzQPc4B/I/VKQCgB7vpx8BqjSt7H6mNqkq6tHeQvqb1msRVwkyKPkgLyq85xdOr9y GZU+R9/uthA4Djr/lSlLT39BkvlXmr4EPXaqcPnGkDMMjuxkNl+Jo8Jz6yLCCClHMnvq i297QfSwm+vRFrYtvvmonJGVL0mZSEQl920wWXZXgtT07IveHF8L3ribWKYv81fc7pBd +3pjbyCBkjlfmny5qNmaMAq53lGYtEpype0sTOoj2ScM84EkfRTt6ZtY3DFep4u3ApSP iOdcEgGzz5Fm6Joia31dgz58b4SjeVKyAEHSYtKNFPZdU+vAeC6h4tMTFtyJITJd3dAl QCMQ== 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:in-reply-to :references; bh=o+XhulgOUVxOZqt9rItNfnAjDBNxfjlILm0pavkJo3s=; b=FxXsDrw0ORqVVxXyRui1x/zWxFZ5AHDcOY/vzxLF0qq8s2RDeC02k3K2/InQ91Mjiz fcYF/PuXj45V1P5BrcUGPZGt+6vi0vt84f6Ma6OPf32LzD3FjB+P/cpj6qdZzazRzJuc d2LjYlKrXgecU4O1d9Bmssug1lN7gbIaBQ0Eou0rwwh1rrhFSrp/SCiW/2HcuDRYLcfZ fQtUUGYtNeAvS6RHBGcgbQ+UUXXH8RjteARVgWof/GLc3jPLQE+pJoAV6mUzLx0eA1Ls 3xANaIoqPrSJlEXfEGhrLbCg9BZM7Ap22HjGaARwSGxw/3YSAj0noDV2h/c/guSFUUG1 Ybkg== X-Gm-Message-State: AIVw111XzRfL6hqVFsHQOlEck/LkJSDm+L6UW+Z1kaj7feb8TfBqfJMA XDSPoBJQYOqyahyC X-Received: by 10.84.132.104 with SMTP id 95mr28690852ple.228.1499351626673; Thu, 06 Jul 2017 07:33:46 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id w66sm1132739pfi.63.2017.07.06.07.33.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 07:33:45 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 6 Jul 2017 07:33:09 -0700 Message-Id: <0ef2355c4904c7632a6e8e3cb08d1c80b92bb423.1499351361.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: References: Subject: [OE-core] [PATCH 08/22] 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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 -- 2.13.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core 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"