From patchwork Tue Mar 7 14:04:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 736167 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vcz192FQtz9sDb for ; Wed, 8 Mar 2017 01:04:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B1F5A840D4; Tue, 7 Mar 2017 14:04:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jIdOoSHR9FH9; Tue, 7 Mar 2017 14:04:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A68BB83F1B; Tue, 7 Mar 2017 14:04:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AF4301C0C2D for ; Tue, 7 Mar 2017 14:04:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ABD1892109 for ; Tue, 7 Mar 2017 14:04:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5MELACZE+qnj for ; Tue, 7 Mar 2017 14:04:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8D66E92107 for ; Tue, 7 Mar 2017 14:04:20 +0000 (UTC) Received: from [217.110.38.74] by 3capp-gmx-bs26.server.lan (via HTTP); Tue, 7 Mar 2017 15:04:14 +0100 MIME-Version: 1.0 Message-ID: From: "Peter Seiderer" To: "Gary Bisson" Date: Tue, 7 Mar 2017 15:04:14 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20170307114826.lend2f2evnob3lya@t450s.lan> References: , <20170307114826.lend2f2evnob3lya@t450s.lan> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K0:Fc62viV9R527UrTHiC0MoZcrsr5EhP/14znPrZMdGmA lT+5ggFJ6q62XraF+2bagq+WAzztet+CTW/kJzvixSYGCsDE9M 1bWQw9JwEk6PlW2vjZqzy4ByNb97WmgI7xO0l0Fii9OdAV5nds bkis2WKKEezdXt1HKmKRoHiLsdD3LFIRRhSkmY+++WNkSIkM12 XBdkmrKiELxetAOYKDJkOWVJeMI0PMTyprcn2qVrZuOEem+Alu dpyKoG7fwKr+ticVWZ4vlzOnJVloZWFsEpLyS2+OXmrvqQXP3z Rz94Qw= X-UI-Out-Filterresults: notjunk:1; V01:K0:JEmv8gbadCY=:2/HH3YVfBgVRdvTo1/i7BW k1EIARaj0WFEYZcQ56LtrXA8fackpXQ6+nV0jVGsYPq4DDJry6wws1zOm9lnvd3wKRw0EzWIs zw9NGZtlZ+/oHt2ou+6nu+0Hd3/2oi21leKJ9NicNQFcTNJ1fTGg6A1VvULtloK4wrYa9rRRh Yc9RBeIWuwM2UxEuxd5ILThpy6yNxCEcHajoxknonXo5wDmGKh5+ijsWoA3xP8Qft+WuhnSo5 tOB95pZ/xdRM/tKTXMqGstIuSH2J99/ADWB1U282dobc44lE10e1QEdRxn9rFEylGUmH1gXBQ 7uM9A7wsFq62eGEAcySMOYJlQwgJwTtXCfHM8GizjgKZoDLd7DxNGtCPkesuvbFq5+OPrutWn 5TdBvSbn4OsbMEYzDQBtLr3Zm5RvWo8TJc9PfY4t1NBmD9OSiFLum3oeKDYZ5OCEHVcacboE+ GWrx2WQi8A== Cc: Jagan Teki , Fabio Estevam , buildroot@buildroot.org Subject: Re: [Buildroot] QT5.8 buid failure on master X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hello Gary, > Gesendet: Dienstag, 07. März 2017 um 12:48 Uhr > Von: "Gary Bisson" > An: "Peter Seiderer" > Cc: "Fabio Estevam" , "Jagan Teki" , buildroot@buildroot.org > Betreff: Re: QT5.8 buid failure on master > > Hi Peter, > > On Tue, Mar 07, 2017 at 08:33:14AM +0100, Peter Seiderer wrote: > > Hallo Fabio, > > > > > Gesendet: Montag, 06. März 2017 um 23:41 Uhr > > > Von: "Fabio Estevam" > > > An: "Peter Seiderer" > > > Cc: "Jagan Teki" , "Gary Bisson" , buildroot@buildroot.org > > > Betreff: QT5.8 buid failure on master > > > > > > Hi, > > > > > > Trying to Build QT5.8 with Buildroot master tree causes the following error: > > > > > > /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-g++ > > > -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > > -D_FILE_OFFSET_BITS=64 -Os > > > --sysroot=/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot > > > -O2 -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden > > > -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC > > > -DQT_EGL_NO_X11 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE > > > -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN > > > -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB > > > -DQT_EGL_SUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. > > > -I/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -I../../../../include -I../../../../include/QtEventDispatcherSupport > > > -I../../../../include/QtEventDispatcherSupport/5.8.0 > > > -I../../../../include/QtEventDispatcherSupport/5.8.0/QtEventDispatcherSupport > > > -I../../../../include/QtFontDatabaseSupport > > > -I../../../../include/QtFontDatabaseSupport/5.8.0 > > > -I../../../../include/QtFontDatabaseSupport/5.8.0/QtFontDatabaseSupport > > > -I../../../../include/QtEglSupport > > > -I../../../../include/QtEglSupport/5.8.0 > > > -I../../../../include/QtEglSupport/5.8.0/QtEglSupport > > > -I../../../../include/QtGui/5.8.0 > > > -I../../../../include/QtGui/5.8.0/QtGui -I../../../../include/QtGui > > > -I../../../../include/QtCore/5.8.0 > > > -I../../../../include/QtCore/5.8.0/QtCore -I../../../../include/QtCore > > > -I.moc -I/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -I/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/freetype2 > > > -I/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -I/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -I/home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/freetype2 > > > -I../../../../mkspecs/devices/linux-buildroot-g++ -o > > > .obj/qminimaleglscreen.o qminimaleglscreen.cpp > > > In file included from > > > /home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/egl.h:39:0, > > > from > > > ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:63, > > > from > > > ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/qt_egl_p.h:1, > > > from api/qeglfsglobal_p.h:56, > > > from api/qeglfsintegration_p.h:54, > > > from qeglfsmain.cpp:41: > > > /home/fabio/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/eglplatform.h:119:22: > > > fatal error: X11/Xlib.h: No such file or directory > > > > > > The defconfig used to reproduce the problem is available at: > > > http://pastebin.com/qmhnNQXs > > > > > > > Try to add (untested): > > > > # Avoid X11 header collision, use generic EGL native types > > DEFINES += QT_EGL_NO_X11 > > > > to src/plugins/platforms/eglfs/eglfs-plugin.pro (same as all/many other eglfs related > > project files do, even eglfs_x11.pro ;-) )... > > Adding that define to eglfs-plugin.pro is sufficient to get qtbase to > build properly. > > However when I launch the Cinematic demo I get errors that it can't find > the eglfs_kms device: > # CinematicExperience-demo -platform eglfs > qt.qpa.egldeviceintegration: Failed to load EGL device integration > "eglfs_kms" > qt.qpa.egldeviceintegration: Failed to load EGL device integration > "eglfs_kms_egldevice" > ... > EGL Error : Could not create the egl surface: error = 0x300b > Something like the following (but untested with your .config): Regards, Peter > (note that kmscube is working fine) > > I'm trying to understand how it works in Yocto but something definitely > needs fixing. > > Regards, > Gary > diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk index 7a33573..d3c871c 100644 --- a/package/qt5/qt5base/qt5base.mk +++ b/package/qt5/qt5base/qt5base.mk @@ -200,6 +200,7 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XML) += Qt5Xml QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_OPENGL_LIB) += Qt5OpenGL ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y) QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFSDeviceIntegration +QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFsKmsSupport else QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglDeviceIntegration endif