Fix the following error: -Compiling waylandeglclientbufferintegration.cpp .. The included file: eglplatform.h: fatal error: X11/Xlib.h: No such file Some EGL CFLAGS are missing. Add egl to do pkg config to gain "-DLINUX -DEGL_API_FB -DWL_EGL_PLATFORM"
Signed-off-by: Yuqing Zhu <carol....@nxp.com> --- ....pri-Fix-waylandeglclientbufferintegratio.patch | 34 ++++++++++++++++++++++ .../qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0001-wayland-egl.pri-Fix-waylandeglclientbufferintegratio.patch diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0001-wayland-egl.pri-Fix-waylandeglclientbufferintegratio.patch b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0001-wayland-egl.pri-Fix-waylandeglclientbufferintegratio.patch new file mode 100644 index 0000000..78016a4 --- /dev/null +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0001-wayland-egl.pri-Fix-waylandeglclientbufferintegratio.patch @@ -0,0 +1,34 @@ +From 456fb82378ec975413c30572fcfe7d3981e67c37 Mon Sep 17 00:00:00 2001 +From: Yuqing Zhu <carol....@nxp.com> +Date: Wed, 27 Sep 2017 01:37:53 +0800 +Subject: [PATCH] wayland-egl.pri: Fix waylandeglclientbufferintegration + compiling error [YOCIMX-1785] + +With wayland backend build, there is a build break. + +In included file: eglplatform.h: fatal error: X11/Xlib.h: No such file + +The EGL CFLAGS are missing, which should be gained when doing pkg config. + +Add egl into QMAKE_USE_PRIVATE to gain -DLINUX -DEGL_API_FB -DWL_EGL_PLATFORM. + +Signed-off-by: Yuqing Zhu <carol....@nxp.com> +--- + src/hardwareintegration/compositor/wayland-egl/wayland-egl.pri | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/hardwareintegration/compositor/wayland-egl/wayland-egl.pri b/src/hardwareintegration/compositor/wayland-egl/wayland-egl.pri +index df3aead..e20c680 100644 +--- a/src/hardwareintegration/compositor/wayland-egl/wayland-egl.pri ++++ b/src/hardwareintegration/compositor/wayland-egl/wayland-egl.pri +@@ -1,6 +1,6 @@ + INCLUDEPATH += $$PWD + +-QMAKE_USE_PRIVATE += wayland-server wayland-egl ++QMAKE_USE_PRIVATE += egl wayland-server wayland-egl + + QT += egl_support-private + +-- +2.7.4 + diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend index 69b330f..7193106 100644 --- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend @@ -1,2 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-wayland-egl.pri-Fix-waylandeglclientbufferintegratio.patch', '', d)}" + PACKAGECONFIG_remove_mx6 = "xcomposite-egl xcomposite-glx" PACKAGECONFIG_remove_mx7 = "xcomposite-egl xcomposite-glx" -- 1.9.1 -- _______________________________________________ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale