Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, May 2007
Qtopia Core & OpenGL ES?


Message 1 in thread

hello,



in short my question is this:
- what are the prerequisites to compile Qtopia Core with "-opengl" and how to go about it?


platform: 
Linux x86 (powerpc), gcc 3.4.4 or 4.1.1



in more detail:
- im trying to get OpenGL work with QWS - Qtopia Core (tried - 4.2, 4.3, 4.4snapshot), but im having a hard time to even get around some basic information. it seems all works "out of the box" for everything else and Qtopia Core can be compiled and configured in many different ways - but NOT with OpenGL (ES)... it seems that something needs to be copied somewhere before, maybe something needs to be compiled and configured somewhere, somehow...

in these latest snapshots (qtopia-core-opensource-4.4.0-070527) it doesnt proceed with compilation and stops by saying:

The OpenGL ES functionality test failed!
You might need to modify include and library search paths by editing
QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMKAE_LIBS_OPENGL..


thats great, at least we dont wait till compile fail and now know not to expect it to build without doing *some work* before, so my question is simple - what needs to be done to make the following work:

./configure -embedded generic -opengl
make
make install


- what else need to be downloaded, where from and where to put it?
- is there something that needs to be compiled before and outside Qtopia - what, where, how?

- i understand OpenGL ES on Qt/X11 can be *emulated* using "native" X11/mesa OpenGL graphic drivers, but where are the drivers and what libraries and includes does QWS(Qtopia Core) use for OpenGL ES if it works without X11? 

- in accordance to above answer, how exactly to modify QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMKAE_LIBS_OPENGL before trying - "./configure -opengl"?





thank you,
zelko

Message 2 in thread

Hi,

> [...]
> in these latest snapshots (qtopia-core-opensource-4.4.0-070527) it 
> doesnt proceed with compilation and stops by saying:
>  
> The OpenGL ES functionality test failed!
> You might need to modify include and library search paths by editing
> QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMKAE_LIBS_OPENGL..
>  
>  
> thats great, at least we dont wait till compile fail and now know not 
> to expect it to build without doing *some work* before, so my question 
> is simple - what needs to be done to make the following work:
> 
> ./configure -embedded generic -opengl
> make
> make install
> [...]

I'm not certain how much of this is currently documented and where. However 
you may get more information by running:
	./configure -v ...

Also the relevant test lives in config.tests/qws/opengles. From the source 
code, it looks like it requires OpenGL ES headers <GLES/gl.h> and 
<GLES/egl.h>. Do you have these headers?

OpenGL ES is documented here:
	http://www.khronos.org/opengles/

--
 [ signature omitted ] 

Message 3 in thread

> I'm not certain how much of this is currently documented and where. 
> However you may get more information by running:
> ./configure -v ...
>
> Also the relevant test lives in config.tests/qws/opengles. From the source 
> code, it looks like it requires OpenGL ES headers <GLES/gl.h> and 
> <GLES/egl.h>. Do you have these headers?
>
> OpenGL ES is documented here:
> http://www.khronos.org/opengles/
>
> --
> Dimitri


hi,

thanks for your response,
im trying to do this for the last few months, i've tried many things and 
read plenty of documentation and searched many forums, but only to get even 
more confused as info vary from - "that OpenGL (ES) is not supported in 
Core" to "./configure -opengl" should do it without other modifications, or 
that you need some "Vanila EGL" from Hybrid or some *plug-in*... info is 
mixed at best

but, you are probably right,
and i was already told and figured myself that some *external* files are 
needed, like these headers you mention..


im not low level *driver* programmer, im terrible with gcc and all the 
command line arguments, i dont understand Linux directory structure and 
Library & Includes paths... i just want to practice OpenGL and one of the 
reasons i choose Qtopia is because it is SIMPLE, simple as

>./configure -opengl; make; make install

i like that... and its true for many versions of Qt/X11 that i've tested, 
just not for any Qtopia Core... yet.

so, PLEASE can someone put it in simple steps, what exactly to download and 
where to put it, what to modify and how...

- did you ever manage to compile Qtopia Core with OpenGL supprt and demos 
yourself?
- are these two headers all there is to make it compile?
- where to copy them, do i need to change anything in them?
- how then should i modify:
QMAKE_INCDIR_OPENGL = ?
QMAKE_LIBDIR_OPENGL = ?
QMKAE_LIBS_OPENGL = ?




thanks,
zelko



----- Original Message ----- 
From: "Dimitri" <dimitri@xxxxxxxxxxxxx>
To: <qt-interest@xxxxxxxxxxxxx>
Sent: Monday, May 28, 2007 8:19 PM
Subject: Re: Qtopia Core & OpenGL ES?


> Hi,
>
>> [...]
>> in these latest snapshots (qtopia-core-opensource-4.4.0-070527) it doesnt 
>> proceed with compilation and stops by saying:
>>  The OpenGL ES functionality test failed!
>> You might need to modify include and library search paths by editing
>> QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMKAE_LIBS_OPENGL..
>>  thats great, at least we dont wait till compile fail and now know not to 
>> expect it to build without doing *some work* before, so my question is 
>> simple - what needs to be done to make the following work:
>>
>> ./configure -embedded generic -opengl
>> make
>> make install
>> [...]
>
> I'm not certain how much of this is currently documented and where. 
> However you may get more information by running:
> ./configure -v ...
>
> Also the relevant test lives in config.tests/qws/opengles. From the source 
> code, it looks like it requires OpenGL ES headers <GLES/gl.h> and 
> <GLES/egl.h>. Do you have these headers?
>
> OpenGL ES is documented here:
> http://www.khronos.org/opengles/
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 
> 269.8.0/821 - Release Date: 5/27/2007 3:05 PM
>
> 

--
 [ signature omitted ] 

Message 4 in thread

Hi,

> im trying to do this for the last few months, i've tried many things and 
> read plenty of documentation and searched many forums, but only to get 
> even more confused as info vary from - "that OpenGL (ES) is not 
> supported in Core" to "./configure -opengl" should do it without other 

Open GL ES is certainly not supported in Qt 4.2. I don't know whether Qt 4.3 
will support OpenGL ES.

> modifications, or that you need some "Vanila EGL" from Hybrid or some 

I think "./configure -opengl" is supposed to work out of the box, provided 
OpenGL ES has been correctly installed within your tool chain.

As far as I can see, Hybrid provide libraries that implement OpenGL ES. You 
light find other openGL ES libraries elsewhere.

> *plug-in*... info is mixed at best

Maybe OpenGL support is built into a Qtopia plugin, I don't know.

> but, you are probably right,
> and i was already told and figured myself that some *external* files are 
> needed, like these headers you mention..

All the above pieces of information are not necessarily inconsistent or wrong.

You're right about the "external" files, you do need the OpenGL ES headers. 
Has OpenGL ES been installed within your tool chain ?

> im not low level *driver* programmer, im terrible with gcc and all the 
> command line arguments, i dont understand Linux directory structure and 
> Library & Includes paths... i just want to practice OpenGL and one of 
> the reasons i choose Qtopia is because it is SIMPLE, simple as

The whole process is certainly not as "low level" as driver programming, but 
you probably do need to some knowledge of GCC and Linux to install OpenGL ES 
within your tool chain.

Are you building on an x86 platform with the same platform as a target? Are 
you cross-compiling? If so what is the target and which cross-compiler are you 
using?

--
 [ signature omitted ] 

Message 5 in thread

>> I think "./configure -opengl" is supposed to work out of the box, provided 
>> OpenGL ES has been correctly installed within your tool chain.
>> Maybe OpenGL support is built into a Qtopia plugin, I don't know.
>> Open GL ES is certainly not supported in Qt 4.2. I don't know whether Qt 4.3 
will support OpenGL ES.



huh? so you dont know much about it...

as i said, i spent quite some time *guessing* on my own, its *not funny* anymore...



if the whole trick is to have *OpenGL ES installed* beforehand, i still dont know what does it mean, how to go about it... maybe we call it "Installation" now, but call it "configuration" or maybe just plain copy of some files from some place to another, i still ask the same:


- PLEASE, can someone put it in simple steps, what exactly to download and 
where to put it, what to modify and how...



why everything else with Qt/Qtopia compiles with "./configure -arg -arg2..; make; make install"

but only Qtopia Core + OpenGL ES need some *EXTERNAL* files and some extra configuration, installation, edit/change sources files, library & include paths.... and what not??



i thought OpenGL is one of the strongest points of both Qt and Qtopia Core, but im buffled as how it is not documented how to make the FIRST STEP - to compile it

(Qt/X11 + OpenGL compiles and works great on all of my platforms)


i have yet to get positive answer to this question, even after asking this all over the internet, few months now: *** HAS ANYONE EVER COMPILED Qtopia Core with OpenGL (ES)? ***


funny, even some guys with emails xxx@xxxxxxxxxxxxx could not, and still did not confirm this,
and if you search all of the Trolltech forums, you will only find more or less the same questions about this(in the last few years), but never any real answer... sheesh!




cheers,
zelko





Qtopia Core Improvements
A range of enhancements to Qtopia Core are previewed in the beta, including speed optimizations and accelerated graphics API improvements, increased memory efficiency through font sharing between applications, and support for OpenGL ES.

http://trolltech.com/products/qt/whatsnew/whatsnew-qt43



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
hi,

thanks for your response,
im trying to do this for the last few months, i've tried many things and 
read plenty of documentation and searched many forums, but only to get even 
more confused as info vary from - "that OpenGL (ES) is not supported in 
Core" to "./configure -opengl" should do it without other modifications, or 
that you need some "Vanila EGL" from Hybrid or some *plug-in*... info is 
mixed at best

but, you are probably right,
and i was already told and figured myself that some *external* files are 
needed, like these headers you mention..


im not low level *driver* programmer, im terrible with gcc and all the 
command line arguments, i dont understand Linux directory structure and 
Library & Includes paths... i just want to practice OpenGL and one of the 
reasons i choose Qtopia is because it is SIMPLE, simple as

>./configure -opengl; make; make install

i like that... and its true for many versions of Qt/X11 that i've tested, 
just not for any Qtopia Core... yet.

so, PLEASE can someone put it in simple steps, what exactly to download and 
where to put it, what to modify and how...

- did you ever manage to compile Qtopia Core with OpenGL supprt and demos 
yourself?
- are these two headers all there is to make it compile?
- where to copy them, do i need to change anything in them?
- how then should i modify:
QMAKE_INCDIR_OPENGL = ?
QMAKE_LIBDIR_OPENGL = ?
QMKAE_LIBS_OPENGL = ?




thanks,
zelko



----- Original Message ----- 
From: "Dimitri" <dimitri@xxxxxxxxxxxxx>
To: <qt-interest@xxxxxxxxxxxxx>
Sent: Tuesday, May 29, 2007 6:00 AM
Subject: Re: Qtopia Core & OpenGL ES?


> Hi,
> 
>> im trying to do this for the last few months, i've tried many things and 
>> read plenty of documentation and searched many forums, but only to get 
>> even more confused as info vary from - "that OpenGL (ES) is not 
>> supported in Core" to "./configure -opengl" should do it without other 
> 
> Open GL ES is certainly not supported in Qt 4.2. I don't know whether Qt 4.3 
> will support OpenGL ES.
> 
>> modifications, or that you need some "Vanila EGL" from Hybrid or some 
> 
> I think "./configure -opengl" is supposed to work out of the box, provided 
> OpenGL ES has been correctly installed within your tool chain.
> 
> As far as I can see, Hybrid provide libraries that implement OpenGL ES. You 
> light find other openGL ES libraries elsewhere.
> 
>> *plug-in*... info is mixed at best
> 
> Maybe OpenGL support is built into a Qtopia plugin, I don't know.
> 
>> but, you are probably right,
>> and i was already told and figured myself that some *external* files are 
>> needed, like these headers you mention..
> 
> All the above pieces of information are not necessarily inconsistent or wrong.
> 
> You're right about the "external" files, you do need the OpenGL ES headers. 
> Has OpenGL ES been installed within your tool chain ?
> 
>> im not low level *driver* programmer, im terrible with gcc and all the 
>> command line arguments, i dont understand Linux directory structure and 
>> Library & Includes paths... i just want to practice OpenGL and one of 
>> the reasons i choose Qtopia is because it is SIMPLE, simple as
> 
> The whole process is certainly not as "low level" as driver programming, but 
> you probably do need to some knowledge of GCC and Linux to install OpenGL ES 
> within your tool chain.
> 
> Are you building on an x86 platform with the same platform as a target? Are 
> you cross-compiling? If so what is the target and which cross-compiler are you 
> using?
> 
> --
> Dimitri
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 

Message 6 in thread

Hi,

> huh? so you dont know much about it...

Indeed. I'm not working on Qtopia Core. And anyway I can't know everything 
about Qt and Qtopia, can I?

> as i said, i spent quite some time *guessing* on my own, its *not funny* 
> anymore...
> ** 

I was just trying to help, this was not supposed to be funny. I'm sorry if it 
sounded so.

> if the whole trick is to have *OpenGL ES installed* beforehand, i still 
> dont know what does it mean, how to go about it... maybe we call it 
> "Installation" now, but call it "configuration" or maybe just plain copy 
> of some files from some place to another, i still ask the same:

The whole trick is indeed to have OpenGL ES installed.

Now I'm going to ask the same questions again: Are you building on an x86 
platform with the same platform as a target? Are you cross-compiling? If so 
what is the target and which cross-compiler are you using?

I'm asking these questions because the answer to your question about how to 
install openGL ES depends on the target platform. It took me a couple of 
minutes to find that on the OpenGL ES site:
	http://www.khronos.org/developers/resources/opengles/

> - PLEASE, can someone put it in simple steps, what exactly to download and
> where to put it, what to modify and how...

My guess is that few people know outside of a few Trolltech engineers and a 
few corporate beta testers. That's why you didn't get an answer. You may have 
better luck on this mailing list that's specifically about Qt/Embedded and 
Qtopia Core:
	http://lists.trolltech.com/qt-embedded-interest/
or here:
	http://www.qtopia.net/modules/newbb_plus/

> why everything else with Qt/Qtopia compiles with "./configure -arg 
> -arg2..; make; make install"
>  
> but only Qtopia Core + OpenGL ES need some *EXTERNAL* files and some 
> extra configuration, installation, edit/change sources files, library & 
> include paths.... and what not??

That's because OpenGL ES is provided by 3rd party vendors and not Trolltech. 
That's as simple as that. Besides it's not true that "everything else with 
Qt/Qtopia compiles" out-of-the-box. Qt/X11 needs NAS for sound support, Qt/X11 
needs Unix/Linux installed, Qt/X11 needs Xrender for for Xrender support which 
is not available on all Unix platforms, Qt needs the OpenGL headers and 
libraries for OpenGL support and these are not automatically installed on all 
Unix platforms, etc.

> i thought OpenGL is one of the strongest points of both Qt and Qtopia 
> Core, but im buffled as how it is not documented how to make the FIRST 
> STEP - to compile it
>  
> (Qt/X11 + OpenGL compiles and works great on all of my platforms)

That's because OpenGL is pre-installed on all those platforms you've tried.

> i have yet to get positive answer to this question, even after asking 
> this all over the internet, few months now: *** HAS ANYONE EVER COMPILED 
> Qtopia Core with OpenGL (ES)? ***

Sure, Trolltech engineers and corporate beta testers have probably installed 
Qtopia Core with OpenGL ES support. I haven't as you already know, I'm sorry 
that I can't help more that that.

Note that Qt 4.3.0 is still in beta test. Also OpenGL ES support is obviously 
very new and probably not very well documented yet. This will certainly 
improve with time. Finally I'm under the impression that development for 
embedded devices is often less documented than development for the standard 
Windows platform. Users are supposed to know quite a few things, and that 
includes setting up their tool chain. I'm not saying this is a good thing, I'm 
merely pointing out that development for Linux embedded devices nowadays seems 
more involved than you would like it to be.

> funny, even some guys with emails xxx@xxxxxxxxxxxxx 
> <mailto:xxx@xxxxxxxxxxxxx> could not, and still did not confirm this,
> and if you search all of the Trolltech forums, you will only find more 
> or less the same questions about this(in the last few years), but never 
> any real answer... sheesh!

As already explained, I don't know everything about Qt and Qtopia. I'm 
surprised you find this surprising ;-)

--
 [ signature omitted ] 

Message 7 in thread

I wrote:
> You may have better luck on this mailing list that's specifically about 
> Qt/Embedded and Qtopia Core:
>     http://lists.trolltech.com/qt-embedded-interest/
> or here:
>     http://www.qtopia.net/modules/newbb_plus/

Actually I doubt the Qt documentation will ever explain how to install OpenGL 
ES in detail, since OpenGL ES is a prerequisite and is probably considered a 
part of the cross-compiling tool chain.

I believe you'll find more answers on OpenGL ES forums:
	http://www.khronos.org/message_boards/

Note that you will probably have to specify your host and target platforms 
when posting to get some attention and possibly answers.

--
 [ signature omitted ]