[meta-freescale] QT4.8 or 5.0 on wandboard-solo (I.MX6S) with OPENGL ES2
Bastiaan de Nooij
nooijb.hotraco at gmail.com
Thu May 30 23:38:29 PDT 2013
On 05/29/2013 05:02 PM, Eric Bénard wrote:
> Le Wed, 29 May 2013 17:00:56 +0200,
> Bastiaan de Nooij <nooijb.hotraco at gmail.com> a écrit :
>
>> On 05/28/2013 04:56 PM, Eric Bénard wrote:
>>> Le Tue, 28 May 2013 16:38:14 +0200,
>>> Bastiaan de Nooij <nooijb.hotraco at gmail.com> a écrit :
>>>
>>>> On 05/28/2013 09:04 AM, Eric Bénard wrote:
>>>>> Le Tue, 28 May 2013 08:23:14 +0200,
>>>>> Bastiaan de Nooij <nooijb.hotraco at gmail.com> a écrit :
>>>>>
>>>>>> On 05/22/2013 05:02 PM, Eric Bénard wrote:
>>>>>>> Hi Bastiaan,
>>>>>>>
>>>>>>> Le Wed, 22 May 2013 16:46:42 +0200,
>>>>>>> Bastiaan de Nooij <nooijb.hotraco at gmail.com> a écrit :
>>>>>>>> Qt-embedded builds fine.
>>>>>>>> However running actual opengl ES2 code results in a segmentation fault.
>>>>>>>> Also qtdemo results in a segmentation fault.
>>>>>>>>
>>>>>>>> I would like to give you more detailed information, however I'm a little
>>>>>>>> short on time to work on this.
>>>>>>>> I will try to make a stacktrace tomorrow.
>>>>>>>>
>>>>>>> FWIW : I have a working (runtime tested with hellogl_es2 -platform
>>>>>>> eglfs) bbappend for meta-qt5 and eglfs platform on i.MX6. I'll try to
>>>>>>> send it by friday.
>>>>>>>
>>>>>>> Eric
>>>>>> Hi Eric, Otavio,
>>>>>>
>>>>>> at this point I'm convinced I need QT 5 for the project I'm working on,
>>>>>> it delivers far better performance for QML (according to various
>>>>>> internet sources).
>>>>>>
>>>>>> I'm still very much interested in testing your QT5 patches/bbappends,
>>>>>> to see if I can achieve decent performance on the IMX6S.
>>>>>>
>>>>> patches sent this night, please check the ML
>>>>>
>>>>> Eric
>>>> Hi Eric, Otavio,
>>>> I'm afraid I need a little more help....
>>>> I'm quite new to yocto and as a result I find it difficult to get results.
>>>>
>>>> what I've done so far:
>>>>
>>>> I set-up the fsl-community-bsp-base
>>>> <https://github.com/Freescale/fsl-community-bsp-base> repo for my
>>>> wandboard-solo.
>>>> I added the meta-qt5 layer from the github repository (and adjusted my
>>>> bblayers.conf).
>>>> I applied the patch of Vol 77 of the ML on meta-fsl-arm.
>>>> I modified a core-image-minimal recepe to build qtbase qtbase-tools and
>>>> qtbase-plugins.
>>>>
>>>> when I build this image, the build proceeds fine, however the resulting
>>>> image contains version 5.0.1 of QT for opengl Desktop (!?)
>>>> (according to the do_configure logfile for qtbase)
>>>>
>>>> In volume 78 of the ML, Eric mentions "cherry-pick e7a477a"
>>>> I 'm afraid don't know how. I tried 'git cherry-pick e7a477a' on the
>>>> meta-qt5 repo, but this results in:
>>>> fatal: ambiguous argument 'e7a477a': unknown revision or path not in the
>>>> working tree.
>>>>
>>>> According to the same mail I also should apply the patches from
>>>> http://lists.openembedded.org/pipermail/openembedded-devel/2013-May/090861.html
>>>> ?
>>>> Then, after setting QT version 5.0.2 in conf/distro/include/qt5-versions.inc
>>>> I should be able to build a eglfs supporting version of qt5?
>>>>
>>>> If I get the last part right, the only thing I need help with is the
>>>> cherry-picking part...
>>>>
>>> try getting in meta-qt5 the branch
>>> origin/newer-versions
>>>
>>> Eric
>> OK, I switched to the origin/newer-versions branch for QT5.
>> now building fails on missing binaries (vivante?):
>> make[3]: Leaving directory
>> `/home/jenkins/git/fsl/build3/tmp/work/wandboard_solo-poky-linux-gnueabi/qtbase/5.0.2-r1.0/build/src/plugins/generic'
>> .obj/release-shared/qeglfshooks_imx6.o: In function
>> `QEglFSImx6Hooks::destroyNativeWindow(_FBWindow*)':
>> /home/jenkins/git/fsl/build3/tmp/work/wandboard_solo-poky-linux-gnueabi/qtbase/5.0.2-r1.0/qtbase-opensource-src-5.0.2/mkspecs/linux-oe-g++/qeglfshooks_imx6.cpp:86:
>> undefined reference to `fbDestroyWindow'
>> .obj/release-shared/qeglfshooks_imx6.o: In function
>> `QEglFSImx6Hooks::createNativeWindow(QSize const&, QSurfaceFormat const&)':
>> /home/jenkins/git/fsl/build3/tmp/work/wandboard_solo-poky-linux-gnueabi/qtbase/5.0.2-r1.0/qtbase-opensource-src-5.0.2/mkspecs/linux-oe-g++/qeglfshooks_imx6.cpp:79:
>> undefined reference to `fbCreateWindow'
>> ...
>> How do I get the missing libraries?
>>
> you need to remove x11 from your DISTRO_FEATURES to link against the fb
> one.
>
> Eric
YES, I got it working now, more or less... I switched back to master
branch for meta-qt5 as I think the newer-versions branch got merged?
Most examples give distorted results in the eglfs screen, but I guess
that's in the nature of eglfs as it does not support all features used
by the examples.
I'm now trying to get QT quick working and tool up my development
environment for developing QT quick applications on the wandboard.
Thanks so far!
Bastiaan.
More information about the meta-freescale
mailing list