[QtonPi] Fwd: Windowed Opengl ES Program
Andy Nichols
nezticle at gmail.com
Wed Oct 3 12:04:12 CEST 2012
Re-forwarding to list, sorry Samuel.
---------- Forwarded message ----------
From: Andy Nichols <nezticle at gmail.com>
Date: Wed, Oct 3, 2012 at 12:02 PM
Subject: Re: [QtonPi] Windowed Opengl ES Program
To: Samuel Rødal <samuel.rodal at digia.com>
On Wed, Oct 3, 2012 at 11:44 AM, Samuel Rødal <samuel.rodal at digia.com> wrote:
> On 10/03/2012 06:38 AM, Eden Harris wrote:
>> Hi.
>>
>> Initially I tried compiling Qt with just the addition of -xcb but this
>> did not appear to give me windowed apps. Then a colleague and me had a
>> look at some of the source. I cannot remember exactly what was changed.
>> From memory we looked in mkspecs/devices/linu-rasp-pi-g++ and made
>> changes to qmake.conf to refer to xcb rather than egelfs. We also then
>> found that we can specify the default platform with the -qpa option.
>>
>> The 'Trickery' I tried in the source may be unnecessary and just
>> specifying "-xcb -qpa xcb" may just do the trick. When I get time I will
>> try recompiling with my changes removed to see if that works.
>
> Also try running the application with "-platform xcb" to explicitly
> select the xcb platform plugin. "-qpa xcb" when configuring simply
> selects xcb as the default platform.
>
> Might be useful to do "export QT_DEBUG_PLUGINS=1" if a plugin fails to load.
>
> The eglfs (as in egl fullscreen) platform plugin is not meant to run as
> an X11 client.
I think its also important to note that you there is still no OpenGL
support in X11 on the Raspberry Pi. If you are using with the xcb
plugin, you will not be able to run applications that use OpenGL (this
includes all QtQuick 2 programs) on the Pi. This is not something we
can fix in Qt.
--
Andy Nichols
More information about the QtonPi
mailing list