[meta-freescale] [meta-fsl-arm][RFC] qtbase: add xcb support for i.MX6

Juha Vuolle juvuolle at gmail.com
Fri Aug 30 00:46:19 PDT 2013


(Just a little bit more monologing, I could only get the X working
with RGB565 and RGB888 (via uboot options), neither which work with
the EGL 4 bit colour depths. )

2013/8/29 Juha Vuolle <juvuolle at gmail.com>:
> Against that image with handbuilt Qt XCB QPA starting egl/gles2 won't
> start with the same reason as few tries ago:
>
> Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 28
> (RGB444), but this is incompatable
> Unable to find an X11 visual which matches EGL config 28
> Could not initialize EGL
>
> I forced Qt to return the "Visual ID" 33 and indeed the application started.
>
> The application title is there again but no other visual output.
> Interestingly the application responds to click events etc. i.e. it is
> there, just as transparent.
>
> In xorg logs there are
>
> [3336165.957] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
> [3336165.957] (II) VIVANTE(0): using default device
> [3336165.957] (II) VIVANTE(0): Creating default Display subsection in
> Screen section
>         "Default Screen Section" for depth/fbbpp 16/16
> [3336165.957] (==) VIVANTE(0): Depth 16, (==) framebuffer bpp 16
> [3336165.957] (==) VIVANTE(0): RGB weight 565
> [3336165.957] (==) VIVANTE(0): Default visual is TrueColor
>
> But I don't know how to tamper those values.
>
> "Almost works"
>
>
>
> 2013/8/29 Juha Vuolle <juvuolle at gmail.com>:
>> Hi Eric,
>>
>> 2013/8/29 Eric Bénard <eric at eukrea.com>:
>>> Hi Juha,
>>>
>>> Le Thu, 29 Aug 2013 11:07:18 +0300,
>>> Juha Vuolle <juvuolle at gmail.com> a écrit :
>>>> Not sure where to look into next, any thoughts? Seems so close :-)
>>>
>>> may you please share your procedure to compile qt5 for xcb externaly
>>> as you did initially ?
>>> Maybe something is missing in my patch.
>>
>> I mostly did as in the
>> https://community.freescale.com/docs/DOC-94066
>>
>> I suppose the interesting part is the configure line which for me was:
>>
>> ./configure  -v -opensource -confirm-license -no-pch -qpa xcb -qt-xcb
>> -no-eglfs -no-kms -no-linuxfb -no-directfb  -opengl es2 -make libs
>> -make examples -device imx6 -device-option
>> CROSS_COMPILE=/home/j/yocto/fsl-master/build/tmp/sysroots/i686-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-
>> -sysroot /home/j/yocto/fsl-master/build/tmp/sysroots/nitrogen6x
>> -prefix /home/j/nx6-xcb-inst
>>
>> In Qt there is actually some .pro -file checks for xcb qpa
>>  contains(QT_CONFIG, opengles2) {
>>      DEFINES += XCB_USE_EGL
>>         LIBS += -lEGL
>>         HEADERS += qxcbeglsurface.h
>> } else{
>>      DEFINES += XCB_USE_GLX
>>         HEADERS += qglxintegration.h
>>         SOURCES += qglxintegration.cpp
>> }
>>
>> Not sure if they could play some role here. Hmm..
>>
>>
>>
>>
>>
>>> Eric



More information about the meta-freescale mailing list