Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D8A12E00BAB; Thu, 10 Aug 2017 01:13:51 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [62.149.156.73 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Greylist: delayed 69 seconds by postgrey-1.32 at yocto-www; Thu, 10 Aug 2017 01:13:49 PDT Received: from smtpcmd0873.aruba.it (smtpcmd0873.aruba.it [62.149.156.73]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E6C45E00B77 for ; Thu, 10 Aug 2017 01:13:49 -0700 (PDT) Received: from [192.168.73.215] ([94.36.12.223]) by smtpcmd08.ad.aruba.it with bizsmtp id vLCd1v00s4okcMq01LCeGL; Thu, 10 Aug 2017 10:12:39 +0200 To: meta-freescale@yoctoproject.org References: <1498554612-9917-1-git-send-email-carol.zhu@nxp.com> From: Pierluigi Passaro Message-ID: Date: Thu, 10 Aug 2017 10:12:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1498554612-9917-1-git-send-email-carol.zhu@nxp.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1502352759; bh=H+xOLw25hJRE852QuBoYh3WhkbN2Zyv2BGAMNX8zDMo=; h=Subject:To:From:Date:MIME-Version:Content-Type; b=dmrW3/iTSR/QDb4timFvqkWvhWCTtofmnfx2TH/WZAbtFtF9yjBlikHz3f1DFGncr gy0WOsO3ZSiGoJMLkkl+u2ReLgO8A7UKnYHf+97JrmBZfDxR6xtRmhf3gRvU/0N5Vs OHKi8Y7xkrmL/46gVNwPm7sV58U2Rt4jlnF8INK3M4pkB9TxXY2vronUFDqW7z6EQK U2ziqBFYJ3jC5+Czf/JRA/xsGn7jtuXW3rx5pOPJBn59woAJ7sBk50REPtFVhSKXxC 0eBFrEzZj3ClF/NQtcugbI/BZ39ai2yPSvCUjLZp7gNoVYdV6lqb1K17U9g0tmSp13 UQjiXxIxBhHrQ== Subject: Re: [PATCH] qtbase: Fix QT5.8 build error "Platform not recognized" in egl header X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 08:13:51 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Hi, it looks that qtwayland is still failing to build with error "Platform not recognized" in egl header. Anyone tried it in pyro with distro=fslc-wayland? Thanks Regards PJ On 27/06/2017 11:10, Yuqing Zhu wrote: > Gain the platform value through pkg-config > and pass it through QMAKE_CFLAGS_EGL. > > Signed-off-by: Yuqing Zhu > --- > ...-build-error-when-egl-headers-need-platfo.patch | 30 ++++++++++++++++++++++ > .../qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 4 ++- > 2 files changed, 33 insertions(+), 1 deletion(-) > create mode 100644 dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch > > diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch > new file mode 100644 > index 0000000..c99c047 > --- /dev/null > +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch > @@ -0,0 +1,30 @@ > +From 3f9703fecd670b36030e1093466f6d11b370c19f Mon Sep 17 00:00:00 2001 > +From: Yuqing Zhu > +Date: Mon, 27 Mar 2017 15:33:35 +0800 > +Subject: [PATCH] egl.prf: Fix build error when egl headers need platform > + definition > + > +Gain the value through pkg-config and pass it through QMAKE_CFLAGS_EGL. > + > +Signed-off-by: Yuqing Zhu > +--- > + mkspecs/features/egl.prf | 6 ++++++ > + 1 file changed, 6 insertions(+) > + > +diff --git a/mkspecs/features/egl.prf b/mkspecs/features/egl.prf > +index 9fa0c9e..85d5852 100644 > +--- a/mkspecs/features/egl.prf > ++++ b/mkspecs/features/egl.prf > +@@ -1,3 +1,9 @@ > ++# egl headers need a definition > ++PKG_CONFIG = $$pkgConfigExecutable() > ++PKGCONFIG_CFLAGS = $$system($$PKG_CONFIG --cflags egl) > ++PKGCONFIG_CFLAGS = $$find(PKGCONFIG_CFLAGS, ^-D.*) > ++QMAKE_CFLAGS_EGL = $$PKGCONFIG_CFLAGS > ++ > + INCLUDEPATH += $$QMAKE_INCDIR_EGL > + LIBS_PRIVATE += $$QMAKE_LIBS_EGL > + QMAKE_CFLAGS += $$QMAKE_CFLAGS_EGL > +-- > +1.9.1 > + > diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend > index ff120b7..a0bb301 100644 > --- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend > +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend > @@ -6,7 +6,9 @@ > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" > > SRC_URI_append_use-mainline-bsp = " file://Environment-variable-enabling-the-workaround-FBO-rea.patch" > -SRC_URI_append_imxgpu2d = "file://0014-Add-IMX-GPU-support.patch" > +SRC_URI_append_imxgpu2d = "file://0014-Add-IMX-GPU-support.patch \ > + file://0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch \ > +" > SRC_URI_append_imxgpu3d = " \ > ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ > 'file://0015-Add-eglfs-to-IMX-GPU.patch \