Qtopia-interest Archive, May 2007
has anyone compiled *Qtopia Core* with OpenGL?
Message 1 in thread
hi,
Has anyone compiled *Qtopia Core* with OpenGL support and OpenGL demos?
- what was the command line arguments?
- what other external(Hybrid "Vanila" EGL) files need be included and how?
- any other modification to Qtopia source code need to be done for that?
just to clear this up a bit for other readers,
im not talking about Qt/X11 where OpenGL works "normally" on X11, but about *Qtopia Core*
where OpenGL (ES) should draw on top Qtopia window system - QWS, which is a "new thing"
as i understand, and was not present in Core (embedded) "branch" of Qt before - hence mixed
documentation, but also the lack of it makes it hard to figure out if this feature is *ENABLED*
and supported now with QtopiaCore-4.3-beta or maybe not quite so yet?
THANK YOU
Message 2 in thread
On Tuesday 22 May 2007 06:26, you wrote:
> hi,
>
> Has anyone compiled *Qtopia Core* with OpenGL support and OpenGL demos?
>
>
> - what was the command line arguments?
>
> - what other external(Hybrid "Vanila" EGL) files need be included and how?
>
> - any other modification to Qtopia source code need to be done for that?
>
>
>
> just to clear this up a bit for other readers,
> im not talking about Qt/X11 where OpenGL works "normally" on X11, but about
> *Qtopia Core* where OpenGL (ES) should draw on top Qtopia window system -
> QWS, which is a "new thing" as i understand, and was not present in Core
> (embedded) "branch" of Qt before - hence mixed documentation, but also the
> lack of it makes it hard to figure out if this feature is *ENABLED* and
> supported now with QtopiaCore-4.3-beta or maybe not quite so yet?
>
You definitely want to use a snapshot of qtopia-core-4.3.0 instead of the beta
package: ftp://ftp.trolltech.com/qt/snapshots
You need to configure with -opengl and you need to have a suitable libGLES.so
and libEGL.so available. You then need to create a driver plugin to integrate
the GL ES and EGL libraries into Qtopia Core.
Take a look at the file doc/html/qtopiacore-ahigl.html which documents an
example on how to do this.
You don't need to provide any Hybrid files unless you want to create an
integration to the Hybrid OpenGL ES implementation. If this is really what
you want, let us know, and we might be able to provide you with a plugin in a
week or so.
Håvard Wall
--
[ signature omitted ]
Message 3 in thread
hi,
thank you,
i see documentation has been updated as well to piont out these examples
>>"You don't need to provide any Hybrid files unless you want to create an
integration to the Hybrid OpenGL ES implementation. If this is really what
you want, let us know, and we might be able to provide you with a plugin in a
week or so."
thanks, im happy with any implementation...
however i do not understand ONE thing, could you explain - where are the "graphic drivers"?
is this "OpenGL ES implementation" what would we on desktop system call "OpenGL drivers"?
since Qt is hardware independent - who writes the Accelerated implementation of OpenGL
for particular hardware, is that driver written just for QWS then or is there a way to *bind*
QWS to some binary drivers even tho they were not written for QWS?
in short - where are the drivers, who writes them, how QWS uses them?
for embedded applications,
should we expect better performance of OpenGL ES on top of QWS,
like currently 2D is.... or maybe, full OpenGL on top of some Kdrive
based X11 server would still be preffered choice until EGL drivers "grow up"?
cheers
----- Original Message -----
From: Håvard Wall
To: qtopia-interest@xxxxxxxxxxxxx
Sent: Tuesday, May 22, 2007 10:31 PM
Subject: Re: has anyone compiled *Qtopia Core* with OpenGL?
On Tuesday 22 May 2007 06:26, you wrote:
> hi,
>
> Has anyone compiled *Qtopia Core* with OpenGL support and OpenGL demos?
>
>
> - what was the command line arguments?
>
> - what other external(Hybrid "Vanila" EGL) files need be included and how?
>
> - any other modification to Qtopia source code need to be done for that?
>
>
>
> just to clear this up a bit for other readers,
> im not talking about Qt/X11 where OpenGL works "normally" on X11, but about
> *Qtopia Core* where OpenGL (ES) should draw on top Qtopia window system -
> QWS, which is a "new thing" as i understand, and was not present in Core
> (embedded) "branch" of Qt before - hence mixed documentation, but also the
> lack of it makes it hard to figure out if this feature is *ENABLED* and
> supported now with QtopiaCore-4.3-beta or maybe not quite so yet?
>
You definitely want to use a snapshot of qtopia-core-4.3.0 instead of the beta
package: ftp://ftp.trolltech.com/qt/snapshots
You need to configure with -opengl and you need to have a suitable libGLES.so
and libEGL.so available. You then need to create a driver plugin to integrate
the GL ES and EGL libraries into Qtopia Core.
Take a look at the file doc/html/qtopiacore-ahigl.html which documents an
example on how to do this.
You don't need to provide any Hybrid files unless you want to create an
integration to the Hybrid OpenGL ES implementation. If this is really what
you want, let us know, and we might be able to provide you with a plugin in a
week or so.
Håvard Wall
--
To unsubscribe - send "unsubscribe" in the subject to qtopia-interest-request@xxxxxxxxxxxxx
Message 4 in thread
On Tuesday 22 May 2007 13:26, ZeAtShuttle wrote:
> hi,
>
> thank you,
> i see documentation has been updated as well to piont out these examples
>
> >>"You don't need to provide any Hybrid files unless you want to create an
>
> integration to the Hybrid OpenGL ES implementation. If this is really what
> you want, let us know, and we might be able to provide you with a plugin in
> a week or so."
>
>
> thanks, im happy with any implementation...
> however i do not understand ONE thing, could you explain - where are the
> "graphic drivers"?
>
> is this "OpenGL ES implementation" what would we on desktop system call
> "OpenGL drivers"?
>
>
> since Qt is hardware independent - who writes the Accelerated
> implementation of OpenGL for particular hardware, is that driver written
> just for QWS then or is there a way to *bind* QWS to some binary drivers
> even tho they were not written for QWS?
>
>
Yes, Qt is hardware independent. On X11, Windows and Mac, Qt has the
corresponding standard OpenGL implementations pre-integrated. On embedded
Linux (Qtopia Core), there's no standard OpenGL library implementation we
could pre-integrate so instead we provide a framework for integrating
whatever OpenGL library you might have. This integration is what I call
writing a graphics driver for Qtopia Core. The example I've previously
pointed to shows how to do this for the ATI implementation of OpenGL for
embedded Linux.
> in short - where are the drivers, who writes them, how QWS uses them?
The graphic chip vendor usually provides an OpenGL implementation and an EGL
implementation. If you want to use the Hybrid solution you will need to get
this implementation from Hybrid. If you have an ATI chip, you will need to
get an implementation from ATI.
QWS use OpenGL through a Qtopia Core graphics driver. Trolltech currently
don't provide any such graphics drivers (we might in the future though) just
an example on how to write your own. You need to write this yourself or get
somebody else (your graphic chip vendor?) to write it.
> for embedded applications,
> should we expect better performance of OpenGL ES on top of QWS,
> like currently 2D is.... or maybe, full OpenGL on top of some Kdrive
> based X11 server would still be preffered choice until EGL drivers "grow
> up"?
That depends on how good your OpenGL ES implementation for QWS is compared to
the implementation of OpenGL in Kdrive.
--
[ signature omitted ]
Message 5 in thread
hi again,
>>"You don't need to provide any Hybrid files unless you want to create an
integration to the Hybrid OpenGL ES implementation. If this is really what
you want, let us know, and we might be able to provide you with a plugin in a
week or so."
quick update,
i actually did want to use "Hybrid OpenGL ES implementation" , but only because
it was suggested in documentation that is the *SIMPLE WAY* as opposed to "FULL INTEGRATION"
http://doc.trolltech.com/4.3-snapshot/qtopiacore-opengl.html
since everything about *it* is rather confusing to me id rather go with the most simple way there is :-)
and i'll be looking forward to see about that plugin if you let me know where to look, and will it be announced
somewhere?
>>"you need to have a suitable libGLES.so and libEGL.so available"
i never even realised i need these... how/where can i get these? what they need to "suit"?
am i right to say that this EGL "thing" and OpenGL in Qtopia Cores is rather *NEW*, so i should
not be surprised if something doesnt work and if any of it is not yet hardware accelerated?
is there a list of hardware where QWS can render HW accelerated OpenGL, or in other words -
are there hw accelerated OpenGL *drivers* for QWS on any hardware?
cheers
----- Original Message -----
From: Håvard Wall
To: qtopia-interest@xxxxxxxxxxxxx
Sent: Tuesday, May 22, 2007 10:31 PM
Subject: Re: has anyone compiled *Qtopia Core* with OpenGL?
On Tuesday 22 May 2007 06:26, you wrote:
> hi,
>
> Has anyone compiled *Qtopia Core* with OpenGL support and OpenGL demos?
>
>
> - what was the command line arguments?
>
> - what other external(Hybrid "Vanila" EGL) files need be included and how?
>
> - any other modification to Qtopia source code need to be done for that?
>
>
>
> just to clear this up a bit for other readers,
> im not talking about Qt/X11 where OpenGL works "normally" on X11, but about
> *Qtopia Core* where OpenGL (ES) should draw on top Qtopia window system -
> QWS, which is a "new thing" as i understand, and was not present in Core
> (embedded) "branch" of Qt before - hence mixed documentation, but also the
> lack of it makes it hard to figure out if this feature is *ENABLED* and
> supported now with QtopiaCore-4.3-beta or maybe not quite so yet?
>
You definitely want to use a snapshot of qtopia-core-4.3.0 instead of the beta
package: ftp://ftp.trolltech.com/qt/snapshots
You need to configure with -opengl and you need to have a suitable libGLES.so
and libEGL.so available. You then need to create a driver plugin to integrate
the GL ES and EGL libraries into Qtopia Core.
Take a look at the file doc/html/qtopiacore-ahigl.html which documents an
example on how to do this.
You don't need to provide any Hybrid files unless you want to create an
integration to the Hybrid OpenGL ES implementation. If this is really what
you want, let us know, and we might be able to provide you with a plugin in a
week or so.
Håvard Wall
--
To unsubscribe - send "unsubscribe" in the subject to qtopia-interest-request@xxxxxxxxxxxxx