Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto: (9 Items)
   
Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
Hi,

I am trying to do benchmarks for different OS-es with Qt 4.6 opensource from Nokia. I have installed a virtual machine 
with SDP-6.4.1-200905201802-nto, and tried to configure Qt for Qnx. I added the EGL and GLES library and include paths 
under the supplied mkspec for Qnx, than configured with the following command.

 ./configure \
 -platform unsupported/qnx-g++  -no-libtiff  -no-qt3support  -no-gfx-linuxfb \
 -no-mouse-linuxtp  -no-kbd-tty  -qt-gfx-qnx  -qt-mouse-qnx -qt-kbd-qnx\
 -opensource  -opengl es1  -qt-libjpeg  -qt-libpng  -qt-libmng  -qt-gif  -silent

Configure runs Ok, and than I try to :
make install

which runs ok until trying to build OpenGL libraries. Here I got an error, whith 
conflicting type declarations within EGL/eglplatform.h and GLES/egltypes.h

Honestly, I am confused, which declarations are meant for my use. Maybe I should just try to forbid use of EGL libraries
? there is an egl.h also within the GLES folder. (guess needed for the context creation).

Have anyone succesfully managed to build Qt opensource on Qnx SDP 6.4.1?

All help is apreciated,

Istvan
Re: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
Ok, there are no responses, but I wrote down my experience, maybe it will be useful.

I added an additional define in the mkspec , with -DQT_GLES_EGL, so Qt won't use EGL and GLES simultanously. However, 
the EGL and GLES egl differences are still not completely clear to me (but this is not qnx-related).

Also, there might be a bug in Qt according to http://lists.trolltech.com/pipermail/qt-embedded-interest/2009-December/
000767.html.
I edited Qt's qpaintengineex_opengl2_p.h file to get rid of the shader model (which i guess  not relevant for OpenGLL ES
 1.1. Now the build script is still running, so no more experience, but GL libraries at least are built with Qt.

If someone have some good results with Qt on QNX I will elcome this; if not, I hope this post will help others who 
trying to build Qt on QNX.
RE: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
Hello Istvan

Pretty sure you have seen this but have you tried to use the config line
verbatim from this page:
http://doc.trolltech.com/4.6-snapshot/platform-notes-qnx.html

There appear to be minor differences compared to yours (presence of
-embedded option; lack of -opengl option).

Have not built this myself so I'm just suggesting the obvious.. 
--
  Mate

-----Original Message-----
From: Istvan Balazs [mailto:community-noreply@qnx.com] 
Sent: January 11, 2010 9:29 PM
To: opengles-graphics
Subject: Configuring Qt 4.6 opensource for qnx
SDP-6.4.1-200905201802-nto

Hi,

I am trying to do benchmarks for different OS-es with Qt 4.6 opensource
from Nokia. I have installed a virtual machine with
SDP-6.4.1-200905201802-nto, and tried to configure Qt for Qnx. I added
the EGL and GLES library and include paths under the supplied mkspec for
Qnx, than configured with the following command.

 ./configure \
 -platform unsupported/qnx-g++  -no-libtiff  -no-qt3support
-no-gfx-linuxfb \  -no-mouse-linuxtp  -no-kbd-tty  -qt-gfx-qnx
-qt-mouse-qnx -qt-kbd-qnx\  -opensource  -opengl es1  -qt-libjpeg
-qt-libpng  -qt-libmng  -qt-gif  -silent

Configure runs Ok, and than I try to :
make install

which runs ok until trying to build OpenGL libraries. Here I got an
error, whith conflicting type declarations within EGL/eglplatform.h and
GLES/egltypes.h

Honestly, I am confused, which declarations are meant for my use. Maybe
I should just try to forbid use of EGL libraries? there is an egl.h also
within the GLES folder. (guess needed for the context creation).

Have anyone succesfully managed to build Qt opensource on Qnx SDP 6.4.1?

All help is apreciated,

Istvan




_______________________________________________

OpenGL ES
http://community.qnx.com/sf/go/post44870
Re: RE: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
Thanks for your reply,

I have sen the platform notes, but since I am building as a QNX-fan , I was interested whether I can use OpenGL or not. 
If I fail to build it with OpenGL, I will try out the -embedded i386 option also, and check how it performs.

BR
Re: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
6.4.1 comes with two OpenGL ES stacks:

1) A libGLES_C[M|L].so that contains EGL functions. With this library, there is no need to link with an EGL library. The
 <GLES/egl.h> header is the one that should be included in this case.

2) A libGLESv1_C[M|L].so that doesn't contain any EGL functions. With this library, a separate libEGL.so, which contains
 the EGL functions, must be used. The <EGL/egl.h> header is the one that matches with libEGL.so.

If you are passing a gf_device_t to eglGetDisplay() somewhere, you must the EGL 1.2 functions contained in libGLES_C[M|
L].so.
Re: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
Wow, thanks, that's exactly I wanted to learn.

Unwillingly I got the same the same result by adding -DQT_GLES_EGL, which does your case 1 :)
 QGL libraries built well with that, but guess there is no need than for the libGLESv1_C(M)(L) libs.

Thank you again. If anyone else is interested in the topic, I will attach the mods I made during the build if I finally 
succeed with it.
Re: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
I am interested in your modification to build Qt. How are the programs running?

Thanks
Christian
Re: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
I am interested also.

Thanks,
Thomas
Re: Configuring Qt 4.6 opensource for qnx SDP-6.4.1-200905201802-nto  
My way to build QT for QNX on Linux Host

- Install QNX SDP 6.4.1 (Linux Host)
- Install QNX 6.4.1 (on VBox)
- Qt 4.6.3 source
- In mkspecs/.../  qnx-i386-g++.conf replace compiler version -> 4.3.3
- Build Qt-Embedded on Linux Host ::

./configure -xplatform unsupported/qws/qnx-i386-g++ -embedded i386 -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-
qt3support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -nomake demos -nomake examples

...
gmake
...
su -c "gmake install"
...
- Build Qt application with Qt Creator (set qt for QNX version)
--------
On Target QNX system:

1) Copy Qt shared libraries [in 1 of LD_LIBRARY_PATH folders]
2) Copy fonts from Qt-Embedded
3) QWS_DISPLAY, QWS_MOUSE_PROTO and QWS_KEYBOARD 
environment variables should all be set to qnx (edit $HOME/.profile)
4) Create sh-file::
	...
	/usr/photon/bin/devi-hid -Pr kbd mouse
	./appname
	slay devi-hid
	sleep 1
	/usr/photon/bin/devi-hid kbd mouse
	...
5) Exit Photon
6) Run It!