Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1: (3 Items)
   
qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1  
Hi all, 

I am testing qt 4.8.3 against the ppc mpc5121 cpu.
It seems to work very well, if I do not try to use opengl.
I have tested following 2 configurations: 

a) ./configure -prefix /opt/qt-qnx650/4.8.3/ppcbe  -xplatform qws/qnx-ppc-g++ -embedded powerpc -no-gfx-linuxfb  -no-
mouse-linuxtp -no-kbd-tty -no-qt3
support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -confirm-license -no-webkit -opengl es2

b) ./configure -prefix /opt/qt-qnx650/4.8.3/ppcbe  -xplatform qws/qnx-ppc-g++ -embedded powerpc -no-gfx-linuxfb  -no-
mouse-linuxtp -no-kbd-tty -no-qt3
support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -confirm-license -no-webkit -opengl es1 -no-openvg 

 (Without -no-openvg in case b) I got compile problems.

I use this driver: 
NAME=devg-mpc5121.so
DESCRIPTION=Graphics driver dll for Freescale 5121e
DATE=2008/11/07-18:33:33-EST
STATE=stable
HOST=CControl
USER=ccontrol
VERSION=6.4.0
TAGID=2406

and got following error:

root@mecp512x:/qt/examples/opengl/hellogl_es>./hellogl_es -qws
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connected.
QEglContext::chooseConfig(): Could not find a suitable EGL configuration
Requested: "type=es1 rgba=5,6,5,0 surface-type=window"
Available:
"id=1 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1415
    caveat=none level=1 max-pbuffer-size=2048x2048
    native-renderable=true visual-id=0 visual-type=5152
    bind-texture=no-rgb,rgba min-swap-interval=255
    max-swap-interval=0"
"id=2 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1415
    caveat=none level=2 max-pbuffer-size=2048x2048
    native-renderable=true visual-id=0 visual-type=5152
    bind-texture=no-rgb,rgba min-swap-interval=255
    max-swap-interval=0"
"id=3 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=1 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=2 visual-type=5152
    bind-texture=no-rgb,no-rgba min-swap-interval=255
    max-swap-interval=0"
"id=4 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=2 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=2 visual-type=5152
    bind-texture=no-rgb,no-rgba min-swap-interval=255
    max-swap-interval=0"
"id=5 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=1 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=5 visual-type=5152
    bind-texture=no-rgb,no-rgba min-swap-interval=255
    max-swap-interval=0"
"id=6 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=2 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=5 visual-type=5152
    bind-texture=no-rgb,no-rgba min-swap-interval=255
    max-swap-interval=0"
"id=7 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=1 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=8 visual-type=5152
    samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
    min-swap-interval=255 max-swap-interval=0"
"id=8 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=2 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=8 visual-type=5152
    samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
    min-swap-interval=255 max-swap-interval=0"
"id=9 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=1 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=11 visual-type=5152
    samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
    min-swap-interval=255 max-swap-interval=0"
"id=10 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
    caveat=none level=2 max-pbuffer-size=2048x2048
    native-renderable=false visual-id=11...
View Full Message
Attachment: Compressed file mkspecs.tar 10 KB
Re: qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1  
Is your 5121 system running argb8888? 

/etc/system/config/display.conf

device {
   drivername=mpc5121
   vid=0
   did=0
   deviceindex=0
   modeopts=/etc/system/config/mpc5121.conf
   display {
      xres=1024
      yres=768
      refresh=60
      pixel_format=argb8888
   }
}

If system is configured for argb8888, and Qt wants "rgba=5,6,5,0" then it won't load.  It seems you would have to 
reconfigure io-display for "rgb565" - which I am not sure the driver supports.  OR somehow get Qt to want argb8888.
Re: qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1  
> Is your 5121 system running argb8888? 

If my aystem is  configured argb8888 or rgb888, qt requests "type=es1 rgba=8,8,8,0 surface-type=window"

If my aystem is  configured rgb565, qt requests "type=es1 rgba=5,6,5,0 surface-type=window"

Both variants do not  work.

QT only requests configs without alpha channel, why?
Can I configure that?

Is argb the same as rgba?

display.conf only works with argb8888, but not with rgba8888.

Regards
Michael

> 
> /etc/system/config/display.conf
> 
> device {
>    drivername=mpc5121
>    vid=0
>    did=0
>    deviceindex=0
>    modeopts=/etc/system/config/mpc5121.conf
>    display {
>       xres=1024
>       yres=768
>       refresh=60
>       pixel_format=argb8888
>    }
> }
> 
> If system is configured for argb8888, and Qt wants "rgba=5,6,5,0" then it 
> won't load.  It seems you would have to reconfigure io-display for "rgb565" - 
> which I am not sure the driver supports.  OR somehow get Qt to want argb8888.