From: Daiane Angolini <daiane.angolini@freescale.com>
To: Juha Vuolle <juvuolle@gmail.com>
Cc: meta-freescale <meta-freescale@yoctoproject.org>
Subject: Re: [meta-fsl-arm][RFC] qtbase: add xcb support for i.MX6
Date: Wed, 28 Aug 2013 09:56:08 -0300 [thread overview]
Message-ID: <521DF368.4070005@freescale.com> (raw)
In-Reply-To: <CAK+PFVts+xOhCNb539bXk-37xa4T-_HW0Hmk9wLg053jHPLA3w@mail.gmail.com>
On 08/28/2013 09:35 AM, Juha Vuolle wrote:
> Built fine on master. Can't say if it works as there is no example
> apps or qmake to build my own (and I ended up applying the patch on
> 5.1.0 instead of the 5.0.2). But I did get out an image with the Qt
> libs in place so I'll try tomorrow with my hand-built apps and cross
> fingers for binary compatibility. The resulting libEGL.so.1 on the
> sysroot/rootfs seems to be libEGL-wl.so i.e. wayland, is this OK?
wayland+x11 is the default choice when using poky.conf (the default
distro from poky), so, if you have not changed DISTRO_FEATURES, it's the
expected result.
If it's right, depends on your intention.
>
> On master-next there is some (maybe unrelated) error:
> libEGL.so: undefined reference to `gcoOS_CreateDrawable'
> when it is building
> nitrogen6x-poky-linux-gnueabi/qt4-x11-free/4.8.5-r0/qt-everywhere-opensource-src-4.8.5
>
>
> 2013/8/26 Eric Bénard <eric@eukrea.com>:
>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>> ---
>> qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend | 24 ++++++++++++++++++++++--
>> 1 file changed, 22 insertions(+), 2 deletions(-)
>>
>> diff --git a/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
>> index 33f0e8b..5553e27 100644
>> --- a/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
>> +++ b/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
>> @@ -1,11 +1,14 @@
>> +@@ -2,10 +2,12 @@
>> # Copyright (C) 2013 Eric Bénard - Eukréa Electromatique
>>
>> HAS_X11 = "${@base_contains('DISTRO_FEATURES', 'x11', 1, 0, d)}"
>>
>> -GL_DEPENDS_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', '', 'virtual/libgles2 virtual/egl', d)}"
>> -QT_GLFLAGS_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', '', '-opengl es2 -eglfs', d)}"
>> +GL_DEPENDS_mx6 = "virtual/libgles2 virtual/egl"
>> +QT_GLFLAGS_mx6 = "-opengl es2 -eglfs"
>> QT_EXAMPLES_mx6 = "-make examples"
>> QT_DEMOS_mx6 = "-make demos"
>> +XCB_DEPENDS_mx6 += "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb-util-wm xcb-util-image xcb-util-keysyms dbus', '', d)}"
>> +QT_XCB_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', '-qt-xcb', '', d)}"
>>
>> GL_DEPENDS_mx5 = "${@base_contains('DISTRO_FEATURES', 'x11', '', 'virtual/libgles2 virtual/egl', d)}"
>> QT_GLFLAGS_mx5 = "${@base_contains('DISTRO_FEATURES', 'x11', '', '-opengl es2 -eglfs', d)}"
>> @@ -47,6 +50,23 @@ EOF
>>
>> # copy the hook in the mkspecs directory OE is using
>> cp ${S}/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp ${S}/mkspecs/linux-oe-g++/
>> +
>> + else
>> +# adapt qmake.conf to our needs
>> +sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
>> +cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
>> +IMX6_CFLAGS = -DLINUX=1
>> +QMAKE_LIBS_EGL += -lEGL
>> +QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
>> +QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
>> +QMAKE_CFLAGS_RELEASE += \$\$IMX6_CFLAGS
>> +QMAKE_CXXFLAGS_RELEASE += \$\$IMX6_CFLAGS
>> +QMAKE_CFLAGS_DEBUG += \$\$IMX6_CFLAGS
>> +QMAKE_CXXFLAGS_DEBUG += \$\$IMX6_CFLAGS
>> +QMAKE_CFLAGS_EGL += \$\$IMX6_CFLAGS
>> +load(qt_config)
>> +
>> +EOF
>> fi
>> }
>>
>> --
>> 1.7.10.4
>>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
--
Daiane
next prev parent reply other threads:[~2013-08-28 12:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=521DF368.4070005@freescale.com \
--to=daiane.angolini@freescale.com \
--cc=juvuolle@gmail.com \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.