[meta-freescale] qt5 xcb gles2
Benjamin Federau
Benjamin.Federau at basyskom.com
Mon Oct 14 06:29:58 PDT 2013
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
More information about the meta-freescale
mailing list