[meta-freescale] [PATCH] qtbase: Fix QT5.8 build error "Platform not recognized" in egl header

Pierluigi Passaro pierluigi.passaro at phoenixsoftware.it
Thu Aug 10 01:12:37 PDT 2017


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 <carol.zhu at nxp.com>
> ---
>   ...-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 <carol.zhu at nxp.com>
> +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 <carol.zhu at nxp.com>
> +---
> + 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 \


More information about the meta-freescale mailing list