Skip to contentSkip to conversation

qtbase: Allow to build eglfs with x11 in DISTRO_FEATURES

PATCH New Martin Jansa 1 participant 1 message Feb 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtbase: Allow to build eglfs with x11 in DISTRO_FEATURES

* even when x11 is in DISTRO_FEATURES someone might configure qtbase to build with eglfs, that works OK with Qt 5.5.1, because -DEGL_API_FB=1 is also passed through mkspecs/devices/linux-imx6-g++/qmake.conf
but with 5.6 and 5.7 it fails when X11 headers are include with their own Status enum (the same errors like before
https://codereview.qt-project.org/#/c/105116/2)
Adding -DEGL_API_FB=1 like linux-imx6-g++/qmake.conf does is simplest workaround to prevent imx-gpu-viv from including Xlib from EGL/eglvivante.h

---
 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +1 -1
index f157c4d..b18bf17 100644
@@ -32,7 +32,7 @@ EOF
         fi
     else
         cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
-IMX6_CFLAGS             = -DLINUX=1
+IMX6_CFLAGS             = -DLINUX=1 -DEGL_API_FB=1
 EOF
     fi
     cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
Signature · 1 line
2.7.2