[meta-freescale] [meta-fsl-arm PATCH 8/8] qt4: Enable OpenGL ES2 support for i.MX6
Eric Nelson
eric.nelson at boundarydevices.com
Tue Jul 30 11:20:10 PDT 2013
Hi all,
On 07/17/2013 11:17 AM, Otavio Salvador wrote:
> The Vivante libraries need some special linking as it has a more
> modular design which thus require a specific set of mkspec changes to
> make it to work. This change makes the linking to work when building
> against Vivante libraries for i.MX6 SoCs.
>
>
> <snip>
>
> diff --git a/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend b/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend
> index 74bfb31..4c4d0c9 100644
> --- a/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend
> +++ b/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend
> @@ -9,6 +9,7 @@ PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
> QT_GLFLAGS_mx5 = "-opengl es2 -openvg"
> QT_CONFIG_FLAGS_append_mx5 = " -I${STAGING_KERNEL_DIR}/include/"
>
> -DEPENDS_append_mx6 = " virtual/kernel"
> +DEPENDS_append_mx6 = " virtual/kernel virtual/libgles2"
> PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
> -QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/"
> +QT_GLFLAGS_mx6 = "-opengl es2 -openvg"
> +QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/ -DLINUX=1 -DEGL_API_FB=1"
> diff --git a/recipes-qt/qt4/qt4/mx6/g++.conf b/recipes-qt/qt4/qt4/mx6/g++.conf
This patch seems to work perfectly for me, but I'm a bit confused
about what it actually enables in Qt.
Neither the QGLWidget examples like hellogl_es2 or the QML-based
shadereffects demos seem to run.
Is there a sample program that shows how to access OpenGL/ES from Qt?
I'm trying to grok what the glue between glimagesink and a Qt
application should look like.
Regards,
Eric
More information about the meta-freescale
mailing list