Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D6E34E00A64; Tue, 15 Nov 2016 07:30:22 -0800 (PST) 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (schnitzeltony[at]googlemail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 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 * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.65 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [74.125.82.65 listed in dnsbl.sorbs.net] Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3D90DE00A30 for ; Tue, 15 Nov 2016 07:30:16 -0800 (PST) Received: by mail-wm0-f65.google.com with SMTP id a20so978733wme.2 for ; Tue, 15 Nov 2016 07:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=n9aSftwUq7d1Bz+Fu3S+/PfCtp/q4okTPda98t5sUYM=; b=BgKnRVMykaDfRMCj9461sbGyNIFDlvcBUR0Gb5PxMq5OBadtKg4/fds6CplkcR8CEL p+TVNNRu2sDwlTC33elgmUkca0Z48cgFUZSk9sg8dwyNzsB/at41JYYtSogKJ+uDZ3ZL CCwUtC+I0K3X7rJdj1YOlj0HVaWZji//HV03VRFbJ+NGH0A1/b0ibhClfcPqBsuoJxzP CsdN/egk+2EspbFmfPzmf4G3IGqGw/5stPatrMKMQSytYF1nZ/21tfA3VPaxUwdYK2R2 EK/ZfMc08k9GIjLaby75HgLdFP2l+xPKWf6a0b3m9WI/5qohrwjbG3i/DW4mJnNouuM3 odhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=n9aSftwUq7d1Bz+Fu3S+/PfCtp/q4okTPda98t5sUYM=; b=mlROMT7JuKXLNLDpwU82aveRmFeq1lmnEXbWpo43jXf8P6FrQPkDFzxUfUF5YgqbBn HyvYIw5DMIl9vPvq3O/o3oojC8Mvs7n1N4/Rv0eSLz8Fl9LxiGSjdQoxIW6+rtfegzha M7pqj2/gNB/SZrS5thBhcWTCUlFi8SgPVw2gd+agjeyvJ4JNbBGa8q7rDZYQkdBGxc3w aaXv4yGO4bvV9Inxf1ckPIXh602lVJ5iHK0gIcQbgeKv54Z+8itJModLP8roz+osh8TP /ga61FCLlV5bhZEw8lMQGT4XxiMJ3lbkYMoD7P0Yoe8P2xvQExlH0dGzfFUxYxgiUfNI 6czQ== X-Gm-Message-State: ABUngvdYVKP2yfBklTLi3TaW/GAO4dyCx2dkJAZLZQQ3jiZGF+EG95v3OOZ7/o++piToaw== X-Received: by 10.194.243.231 with SMTP id xb7mr16277648wjc.60.1479223815669; Tue, 15 Nov 2016 07:30:15 -0800 (PST) Received: from mueller-a-nb-linux.zera.local (ip-95-222-156-64.hsi15.unitymediagroup.de. [95.222.156.64]) by smtp.googlemail.com with ESMTPSA id r138sm4830049wme.9.2016.11.15.07.30.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 07:30:15 -0800 (PST) From: =?UTF-8?q?Andreas=20M=C3=BCller?= To: meta-freescale@yoctoproject.org, martin.jansa@gmail.com Date: Tue, 15 Nov 2016 16:30:07 +0100 Message-Id: <1479223807-2169-1-git-send-email-schnitzeltony@googlemail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [PATCH] qtbase: do not pass -DEGL_API_FB=1 for x11 in distro features 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: Tue, 15 Nov 2016 15:30:22 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * sympthoms: * qml applications complain/crash with 'Failed to create OpenGL context...' * qt5-opengles2-test hangs forever without displaying anything * analysis: qtbase's configure complains: <...>/usr/include/EGL/eglvivante.h:117:16: note: class type '_FBDisplay' is incomplete and configure ends up with no X11 support: EGLFS ................ no EGLFS i.MX6 ........ no EGLFS i.MX6 Wayland. no EGLFS EGLDevice .... no EGLFS GBM .......... no EGLFS Mali ......... no EGLFS Raspberry Pi . no EGLFS X11 .......... no LinuxFB .............. no Mir client............ no XCB .................. yes (system library) EGL on X ........... no * background: '-DEGL_API_FB=1' was introduced in commit 62c8d8cc6500711464049662489729f208240be8 Author: Martin Jansa Date: Mon Feb 29 18:22:28 2016 +0100 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 * comments on original commit (at today's' environment): * it breaks GL support for X11 * in meta-freescale's qtbase.bbappend eglfs is disabled explicitly when x11 in DISTRO_FEATURES so it seems that vivante driver does not support eglfs and x11 at the same build. Tested: setting 'eglfs' in PACKAGECONFIG builds fine but bare eglfs support is skipped. Signed-off-by: Andreas Müller --- dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend index 178d80d..f5064a8 100644 --- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend @@ -33,7 +33,7 @@ EOF fi else cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <> ${S}/mkspecs/linux-oe-g++/qmake.conf <