Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qt unable to run qtdemo: (8 Items)
   
Qt unable to run qtdemo  
Hi,

I have a problem running qtdemo on QNX 6.5.0 with QT4.7.1 downloaded from QNX webpage (link File Releases on this 
website)

The QNX is a default installation on x86 pc with following pci graphic card:
Class          = Display (VGA)
Vendor ID      = 1002h, ATI Technologies Inc 
Device ID      = 5446h,  Rage 128 Pro Ultra TF
PCI index      = 0h
BAR - 0 [Mem]  = f4000000h enabled
BAR - 1 [I/O]  = d800h enabled
BAR - 2 [Mem]  = f3000000h enabled
PCI Expansion ROM = f3fe0000h disabled
PCI Int Pin    = INT A
Interrupt line = 11
CPU Interrupt  = bh

I do the following steps to start the demo:
- start QNX in text mode (no Photon running)
- login as root
- export following stuff in my .profile of root
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnx

export QWS_DISPLAY
export QWS_KEYBOARD
export QWS_MOUSE_PROTO
- start qtdemo as "./qtdemo -qws"
- and get the following error:
# ./qtdemo -qws                         
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1280x1024, refresh 60 Hz
qnx: driver cannot connect
Abort (core dumped) 

I also tried to run "vsync" program, which worked and printed following message:
# vsync 
Number of displays: 1
Display 0: 1280X1024, refresh = 60Hz
Number of layers: 2

My ps -A tells following (maybe something wrong is running):
# ps -A
       PID TTY          TIME CMD
         1 ?        00:23:53 procnto-smp-instr
         2 ?        00:00:00 tinit
      4099 ?        00:00:00 pci-bios
      4100 ?        00:00:00 slogger
      4101 ?        00:00:00 io-usb
      4102 ?        00:00:00 io-hid
      4103 ?        00:00:00 devc-con-hid
      8200 ?        00:00:09 devb-eide
     20489 ?        00:00:00 pipe
     24586 ?        00:00:00 mqueue
     53259 ?        00:00:00 mcd
     57356 ?        00:00:00 random
     61453 ?        00:00:00 enum-devices
    159758 ?        00:00:00 devc-ser8250
     90127 ?        00:00:00 devc-ser8250
     77840 ?        00:00:00 enum-usb
    159761 ?        00:00:00 dhcp.client
     90130 ?        00:00:00 devc-par
    167955 ?        00:00:00 devc-pty
     94228 ?        00:02:30 io-display
    110613 ?        00:00:00 io-pkt-v4-hc
    180246 ?        00:00:01 dumper
    544791 ?        00:00:00 sshd
    196632 ?        00:00:00 -sh
    196633 ?        00:00:00 login
    196634 ?        00:00:00 login
    196635 ?        00:00:00 login
    331804 ?        00:00:00 sshd
    552989 ?        00:00:00 sshd
    552990 ?        00:00:00 -sh
    712735 ?        00:00:00 sh
    794656 ?        00:00:00 ps

I also tried to slay io-display and restart it with "# io-display -d vid=0x1002,did=0x5446"

same result:
# ./qtdemo -qws" 
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1280x1024, refresh 60 Hz
qnx: driver cannot connect
Abort (core dumped) 

Do somebody have any idea what could be the problem here? 
By the way: I also tried the same in VirtualBox with the same results.

Many Thanks!
Max 

Re: Qt unable to run qtdemo  
Max-

Since you are on the default 6.5 install, please launch photon, change the display driver to "SVGA" and exit photon.

 This should leave io-display with the "devg-svga.so" loaded.  You can verify by running "pidin mem" and looking at the 
shared objects loaded by process io-display.

Now try "qtdemo -qws" - it should work on svga (though slow). 

If this works, then for some reason, Qt is incompatible with the rage driver and/or your hardware.

Dennis
Re: Qt unable to run qtdemo  
Hello Dennis,

thanks for the quick reply!

I've tried your suggestion and set the display driver to svga, but the problem stays the same.
pidin mem:
...
   94228   1 sbin/io-display     10o SIGWAITINFO       48K 3932K   20K(516K)*
   94228   2 sbin/io-display     12o RECEIVE           48K 3932K  8192(132K) 
   94228   3 sbin/io-display     12o RECEIVE           48K 3932K  8192(132K) 
   94228   4 sbin/io-display     10o RECEIVE           48K 3932K  4096(132K) 
   94228   5 sbin/io-display     10o RECEIVE           48K 3932K  4096(132K) 
   94228   6 sbin/io-display     10o RECEIVE           48K 3932K  8192(132K) 
            libc.so.3          @b0300000             488K   16K
            devg-svga.so       @b8200000              32K  4096
            libffb.so.2        @b8209000             172K  8192
            em/ctl-1002,5446,0 @40100000 (       0)        4096
...

# ./qtdemo -qws
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 640x480, refresh 60 Hz
qnx: driver cannot connect
Abort (core dumped)

I had the same suspicion before, that’s why I've tried to run it in VirtualBox but it looks the same.

Max
Re: Qt unable to run qtdemo  
Hi,

has someone more ideas for this? Is somebody running QT with QNX 6.5?

Max
Re: Qt unable to run qtdemo  
The string "driver cannot connect" comes from libQtGui.so.  (Mine is 13351084 bytes) 
The source file is qui\embedded\qscreen_qws.cpp.. maybe build with some debug printf's?
Re: Qt unable to run qtdemo  
Problem solved :)

It was the Color Mode. The problem only occurs with 32K (+1 bit alpha). No difference if we use our ati driver or svga.


Re: Qt unable to run qtdemo  
how you set the Color mode?
Re: Qt unable to run qtdemo  
64K