All of lore.kernel.org
 help / color / mirror / Atom feed
* imx6qsabresd: qt4 + opengl not working
@ 2014-03-03 15:02 Javier Viguera
  2014-03-03 15:36 ` Jacob Kroon
  0 siblings, 1 reply; 6+ messages in thread
From: Javier Viguera @ 2014-03-03 15:02 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

Hi all,

I'm testing QT4 + OpenGL on a *imx6qsabresd* board and so far I have not 
been able to make it work.

The setup is simple: an imx6qsabresd board, a project using *master* 
branches of poky, meta-oe, meta-fsl-arm and meta-fsl-demos, and then 
build the *fsl-image-gui* demo image.

It boots to an X-based GUI and all seems to be working fine (accelerated 
videos and so on) but trying to run the QT-OpenGL hello word example 
fails with following error:

# export DISPLAY=:0
# /usr/bin/qt4/examples/opengl/hellogl_es2/hellogl_es2

> Warning: EGL suggested using X Visual ID 33 (ARGB0888) for EGL config 28 (ARGB0444), but this is incompatable
> Unable to find an X11 visual which matches EGL config 28

So it seems to be some mismatch between when OpenGL expects and what the 
binary OpenGL implementation provides.

Does anyone know how to solve it?

This is using X-based QT4, not framebuffer/DirectFB.

The same happens using the stable Dora branches.

-
Javier Viguera
Software Engineer
Digi International® Spain S.A.U.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imx6qsabresd: qt4 + opengl not working
  2014-03-03 15:02 imx6qsabresd: qt4 + opengl not working Javier Viguera
@ 2014-03-03 15:36 ` Jacob Kroon
  2014-03-05 13:35   ` Javier Viguera
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Kroon @ 2014-03-03 15:36 UTC (permalink / raw)
  To: Javier Viguera; +Cc: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

On Mon, Mar 3, 2014 at 4:02 PM, Javier Viguera <javier.viguera@digi.com>wrote:

> Hi all,
>
> I'm testing QT4 + OpenGL on a *imx6qsabresd* board and so far I have not
> been able to make it work.
>
> The setup is simple: an imx6qsabresd board, a project using *master*
> branches of poky, meta-oe, meta-fsl-arm and meta-fsl-demos, and then build
> the *fsl-image-gui* demo image.
>
> It boots to an X-based GUI and all seems to be working fine (accelerated
> videos and so on) but trying to run the QT-OpenGL hello word example fails
> with following error:
>
> # export DISPLAY=:0
> # /usr/bin/qt4/examples/opengl/hellogl_es2/hellogl_es2
>
>  Warning: EGL suggested using X Visual ID 33 (ARGB0888) for EGL config 28
>> (ARGB0444), but this is incompatable
>> Unable to find an X11 visual which matches EGL config 28
>>
>
> So it seems to be some mismatch between when OpenGL expects and what the
> binary OpenGL implementation provides.
>
> Does anyone know how to solve it?
>
> This is using X-based QT4, not framebuffer/DirectFB.
>
> The same happens using the stable Dora branches.
>
>
I had a similar problem for using Qt5/X11. The wandboard.org wiki mentions
a patch for Qt5 that forces the visual to be correct. Maybe this would work
for Qt4 aswell

http://wiki.wandboard.org/index.php/Integrate_Qt5_into_yocto_sato_image_on_Wandboard

/Jacob

[-- Attachment #2: Type: text/html, Size: 2075 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imx6qsabresd: qt4 + opengl not working
  2014-03-03 15:36 ` Jacob Kroon
@ 2014-03-05 13:35   ` Javier Viguera
  2014-03-05 14:35     ` Otavio Salvador
  0 siblings, 1 reply; 6+ messages in thread
From: Javier Viguera @ 2014-03-05 13:35 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: meta-freescale@yoctoproject.org

Hi Jacob,

On 03/03/14 16:36, Jacob Kroon wrote:
> I had a similar problem for using Qt5/X11. The wandboard.org
> <http://wandboard.org> wiki mentions a patch for Qt5 that forces the
> visual to be correct. Maybe this would work for Qt4 aswell
>
> http://wiki.wandboard.org/index.php/Integrate_Qt5_into_yocto_sato_image_on_Wandboard

I adapted the patch for QT4 and it's working now. Not sure if this is 
the correct fix or just a workaround but at the moment it's enough for me.

So thank you for your help.

-
Javier Viguera
Software Engineer
Digi International® Spain S.A.U.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imx6qsabresd: qt4 + opengl not working
  2014-03-05 13:35   ` Javier Viguera
@ 2014-03-05 14:35     ` Otavio Salvador
  2014-03-05 14:45       ` Javier Viguera
  0 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2014-03-05 14:35 UTC (permalink / raw)
  To: Javier Viguera; +Cc: meta-freescale@yoctoproject.org

Hello Javier,

On Wed, Mar 5, 2014 at 10:35 AM, Javier Viguera <javier.viguera@digi.com> wrote:
> On 03/03/14 16:36, Jacob Kroon wrote:
>> I had a similar problem for using Qt5/X11. The wandboard.org
>> <http://wandboard.org> wiki mentions a patch for Qt5 that forces the
>>
>> visual to be correct. Maybe this would work for Qt4 aswell
>>
>>
>> http://wiki.wandboard.org/index.php/Integrate_Qt5_into_yocto_sato_image_on_Wandboard
>
>
> I adapted the patch for QT4 and it's working now. Not sure if this is the
> correct fix or just a workaround but at the moment it's enough for me.
>
> So thank you for your help.

Please send us a patch so we fix this in the BSP.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imx6qsabresd: qt4 + opengl not working
  2014-03-05 14:35     ` Otavio Salvador
@ 2014-03-05 14:45       ` Javier Viguera
  2014-03-05 15:25         ` Otavio Salvador
  0 siblings, 1 reply; 6+ messages in thread
From: Javier Viguera @ 2014-03-05 14:45 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org

Hi Otavio,

On 05/03/14 15:35, Otavio Salvador wrote:
>
> Please send us a patch so we fix this in the BSP.
>

I'm OK with spending some time to cook a patch, but my testing has been 
very basic. I just tested a imx6qsabresd board with X-based QT. I'm not 
sure if the same problem happens with other QT backends (like 
framebuffer or DirectFB).

So what i can provide is a patch for X11-QT for mx6 platforms. Are you 
OK with that?

-
Javier Viguera
Software Engineer
Digi International® Spain S.A.U.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imx6qsabresd: qt4 + opengl not working
  2014-03-05 14:45       ` Javier Viguera
@ 2014-03-05 15:25         ` Otavio Salvador
  0 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2014-03-05 15:25 UTC (permalink / raw)
  To: Javier Viguera; +Cc: meta-freescale@yoctoproject.org

On Wed, Mar 5, 2014 at 11:45 AM, Javier Viguera <javier.viguera@digi.com> wrote:
> Hi Otavio,
>
>
> On 05/03/14 15:35, Otavio Salvador wrote:
>>
>>
>> Please send us a patch so we fix this in the BSP.
>>
>
> I'm OK with spending some time to cook a patch, but my testing has been very
> basic. I just tested a imx6qsabresd board with X-based QT. I'm not sure if
> the same problem happens with other QT backends (like framebuffer or
> DirectFB).
>
> So what i can provide is a patch for X11-QT for mx6 platforms. Are you OK
> with that?

Sure.

Framebuffer works fine as I tested it few days ago. So please focus in X11.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-05 15:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 15:02 imx6qsabresd: qt4 + opengl not working Javier Viguera
2014-03-03 15:36 ` Jacob Kroon
2014-03-05 13:35   ` Javier Viguera
2014-03-05 14:35     ` Otavio Salvador
2014-03-05 14:45       ` Javier Viguera
2014-03-05 15:25         ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.