[Buildroot] QT5.8 buid failure on master

Jagan Teki jagannadh.teki at gmail.com
Tue Mar 7 16:32:33 UTC 2017


On Tue, Mar 7, 2017 at 9:45 PM, Jagan Teki <jagannadh.teki at gmail.com> wrote:
> On Tue, Mar 7, 2017 at 7:34 PM, Peter Seiderer <ps.report at gmx.net> wrote:
>> Hello Gary,
>>
>>> Gesendet: Dienstag, 07. März 2017 um 12:48 Uhr
>>> Von: "Gary Bisson" <gary.bisson at boundarydevices.com>
>>> An: "Peter Seiderer" <ps.report at gmx.net>
>>> Cc: "Fabio Estevam" <festevam at gmail.com>, "Jagan Teki" <jagannadh.teki at gmail.com>, buildroot at 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" <festevam at gmail.com>
>>> > > An: "Peter Seiderer" <ps.report at gmx.net>
>>> > > Cc: "Jagan Teki" <jagannadh.teki at gmail.com>, "Gary Bisson" <gary.bisson at boundarydevices.com>, buildroot at 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):
>>
>> 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
>>
>> Regards,
>> Peter
>>
>>> (note that kmscube is working fine)
>>>
>>> I'm trying to understand how it works in Yocto but something definitely
>>> needs fixing.
>
> Able to see the application but 'Black screen' on 'Lord of the Ring' widget
>
> # CinematicExperience-demo
> MESA-LOADER: device is not located on the PCI bus
> MESA-LOADER: device is not located on the PCI bus
> MESA-LOADER: device is not located on the PCI bus
> file:///usr/share/Qt5/CinematicExperience/content/InfoView.qml:193:21:
> QML Image: Cannot open:
> file:///usr/share/Qt5/CinematicExperience/content/images/
> qt_ambassador_logo.png
> file:///usr/share/Qt5/CinematicExperience/content/InfoViewItem.qml:13:5:
> QML Image: Cannot open:
> file:///usr/share/Qt5/CinematicExperience/content/image
> s/qt_logo2.png
> libpng warning: iCCP: known incorrect sRGB profile
> libpng warning: iCCP: known incorrect sRGB profile
> file:///usr/share/Qt5/CinematicExperience/content/MainView.qml:90:9:
> QML Image: Cannot open:

Copied missing files from tarbal, don't know why it's not copying, but
still see black screen on widgets.

> file:///usr/share/Qt5/CinematicExperience/content/images/qt
> _logo.png
> QOpenGLFramebufferObject: Unsupported framebuffer format.
> QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
> QOpenGLFramebufferObject: Unsupported framebuffer format.
> QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
> QOpenGLFramebufferObject: Unsupported framebuffer format.
> QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
> QOpenGLFramebufferObject: Unsupported framebuffer format.
> QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.

Can't this an issue for black screen widgets.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the buildroot mailing list