All of lore.kernel.org
 help / color / mirror / Atom feed
* qt5 xcb gles2
@ 2013-08-26 17:55 Juha Vuolle
  2013-08-26 19:06 ` Eric Bénard
  2013-08-26 19:07 ` [meta-fsl-arm][RFC] qtbase: add xcb support for i.MX6 Eric Bénard
  0 siblings, 2 replies; 20+ messages in thread
From: Juha Vuolle @ 2013-08-26 17:55 UTC (permalink / raw)
  To: meta-freescale

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

Hi all,

I was wondering if it is possible to build and use Qt5 with XCB plugin
additionally with OpenGL ES 2.0 support?
I'm using the nitrogen6x board.

Couple days ago I built Qt 5 against the Dylan branch and got the EGLFS
working (quite impressive performance).
Now I left the master branch baking overnight (fsl-image-gui) and was
thinking on trying to compile the Qt 5
with XCB (I took master just in case to get the latest things).

I don't mind cross-compiling qt myself i.e. not use the meta-qt5 but so far
I haven't found any reference that will it be even
possible to do (with XCB), does it have any chance to work/made to work?
I'd be very grateful for any experiences, hints, tips, thoughts.

For my somewhat unorthodox use-case it would not necessarily have to be
even really HW accelerated, for instance Mesa SW rasterizer could do the
trick as well.

cheers,
Juha

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: qt5 xcb gles2
@ 2013-10-14 13:29 Benjamin Federau
  2013-10-14 19:11 ` Andy Voltz
  0 siblings, 1 reply; 20+ messages in thread
From: Benjamin Federau @ 2013-10-14 13:29 UTC (permalink / raw)
  To: meta-freescale

Hello,

I followed your discussion about qt5, xcb and gles2 on an i.MX6 board.

Finally the workaround/hack by setting the VisualId hard to "33" helped me a lot
to get Qt5.1.1 running on my SabreLite SD board. Thanks for that. :)

First, I have to say that I use Ubuntu 12.04 instead of Yocto on my board. But I
use the same graphic libs and dev headers version (3.5.7-1.0.0) as in the next
branch of the meta-fsl-layer.

I found out that I could not compile Qt5.1.1 with the
/usr/include/EGL/eglplatform.h header from the Freescale graphic libs package.
When I use this header I run into the following problem.

QT5 make fails on QUrl  - http://qt-project.org/forums/viewthread/25896

If I replace the eglplatform.h with the one from the Ubuntu standard mesa
package the compilation runs through. The issue must be related to the
MESA_EGL_NO_X11_HEADERS macro which is not used inside the Freescale
eglplatform.h file.

My qmake.conf
....
QMAKE_INCDIR           += /usr/include
QMAKE_LIBDIR           += /usr/lib

QMAKE_LIBS_EGL         += -lEGL
QMAKE_LIBS_OPENGL_ES2  += -lGLESv2 -lEGL -lGAL
QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL -lGAL

IMX6_CFLAGS             = -march=armv7-a -mfpu=neon -mfloat-abi=hard -DLINUX=1
IMX6_CFLAGS_RELEASE     = -O2 $$IMX6_CFLAGS
QMAKE_CFLAGS_RELEASE   += $$IMX6_CFLAGS_RELEASE
QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
QMAKE_CFLAGS_DEBUG     += $$IMX6_CFLAGS
QMAKE_CXXFLAGS_DEBUG   += $$IMX6_CFLAGS
....

and my configure command

./configure -v -opensource -confirm-license -no-pch -opengl es2 -qpa xcb -nomake
examples -nomake tests -platform linux-imx6-g++ -prefix /opt/qt5.1.1


So I wonder how you could build qt5.1.1 with the Freescale eglplatform.h.


Any hints are welcome where I could start digging to solve that issue.


Regards
-
Benjamin Federau



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

end of thread, other threads:[~2013-10-14 19:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 17:55 qt5 xcb gles2 Juha Vuolle
2013-08-26 19:06 ` Eric Bénard
2013-08-26 21:11   ` Juha Vuolle
2013-08-27 14:44     ` Juha Vuolle
2013-09-11 10:29       ` Juha Vuolle
2013-09-11 18:44         ` Ahmed Ammar
2013-09-13  7:27           ` Juha Vuolle
2013-09-13  7:36             ` Eric Bénard
2013-09-13 13:48             ` Juha Vuolle
2013-08-26 19:07 ` [meta-fsl-arm][RFC] qtbase: add xcb support for i.MX6 Eric Bénard
2013-08-28 12:35   ` Juha Vuolle
2013-08-28 12:56     ` Daiane Angolini
2013-08-28 13:34     ` Eric Bénard
2013-08-29  8:07       ` Juha Vuolle
2013-08-29  8:10         ` Eric Bénard
2013-08-29  8:25           ` Juha Vuolle
2013-08-29 13:40             ` Juha Vuolle
2013-08-30  7:46               ` Juha Vuolle
  -- strict thread matches above, loose matches on Subject: below --
2013-10-14 13:29 qt5 xcb gles2 Benjamin Federau
2013-10-14 19:11 ` Andy Voltz

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.