Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - unable to execute qtdemo: (12 Items)
   
unable to execute qtdemo  
I followed the instruction and tried to execute qtdemo binary directly on target. The target is qnx 6.5 running on 
vmware esxi server. 

when executing qtdemo -qws, the following message showed:
QQnxScreen: attached to device, number of display: 1
QQnxScreen: attached to Display 0, resolution 1024x768, refresh 60 Hz.
QQnxScreen: gf_layer_attach(0) failed with error code 0
qnx: driver cannot connect
Abort(core dump)

I was able to login qnx with photon/phindow, io-graphic and io-display are also launched. if there's anything else I 
need to configure? or anyone run on top of vm?

thanks
-Frank
Re: unable to execute qtdemo  
>>>QQnxScreen: gf_layer_attach(0) failed with error code 0
Sounds like photon is running when you launch qtdemo?  You must exit photon and launch qtdemo from a text prompt.

Dennis
Re: unable to execute qtdemo  
I'm new to qt/qnx.
 how do i leave photon but still see qtdemo? i assumed it will generate ui/window.
does it mean that I just need to slay photon?
Re: unable to execute qtdemo  
1) Launch button/Logout/End Photon session ... will exit photon to text mode.  

2) Login.  Run "ifconfig" and determine IP address.

3) Telnet into the IP address from a different host. 

4)  From telnet, run  '/usr/photon/bin/devi-hid -Pr kbd mouse'
 
5) From telnet, run 'qtdemo -qws' ...  graphics should appear on console
Re: unable to execute qtdemo  
> 1) Launch button/Logout/End Photon session ... will exit photon to text mode. 
>  
> 
> 2) Login.  Run "ifconfig" and determine IP address.
> 
> 3) Telnet into the IP address from a different host. 
> 
> 4)  From telnet, run  '/usr/photon/bin/devi-hid -Pr kbd mouse'
>  
> 5) From telnet, run 'qtdemo -qws' ...  graphics should appear on console

I follow the steps , but the mouse and keyboard  no response. 
Re: unable to execute qtdemo  
i got qtdemo -qws working and saw the main window.
i followed the instruction to load mouse/keyboard but still no response.
Re: unable to execute qtdemo  
cool! it works! thanks


By the way, why i cannot see openGL example from it? in window qt creator, there's demo for openGL.
Re: unable to execute qtdemo  
how can you get success?i follow the steps ,but fail,can you explain it to me ,thank you  
Re: unable to execute qtdemo  
It is also worth running in verbose mode to start with. I could not get the mouse to respond. FYI - I was not actually 
using the keyboard at the time.  After running in verbose mode I got the following output:

# slay devi-hid 
# /usr/photon/bin/devi-hid -v -Pr kbd mouse 
Looking up kbd in module table
Looking up mouse in module table
Cannot open trap file /etc/system/trap/devi-rel-opts (No such file or directory)
Resetting module mouse
Resetting module rel
Resetting module kbd
Resetting module keyboard
Process home directory is /usr/photon/bin/
Try to open keyboard descriptor ( /etc/system/trap/.KEYBOARD)
Try to open keyboard descriptor ( /etc/system/trap/.KEYBOARD.localhost)
Try to load default keyboard
Load default keymap file (/usr/photon/bin/en_US_101.kbd)
Opening keyboard file: /usr/photon/bin/en_US_101.kbd
Error: file /usr/photon/bin/en_US_101.kbd - No such file or directory; cannot load keymap file
Opening keyboard file: /usr/photon/keyboard/en_US_101.kbd
Switch to keyboard /usr/photon/keyboard/en_US_101.kbd
Input:#  starting non Photon interface

*** I then removed the 'kbd' parameter and then the mouse worked:

# slay devi-hid                              
# /usr/photon/bin/devi-hid -v -Pr mouse      
Looking up mouse in module table
Cannot open trap file /etc/system/trap/devi-rel-opts (No such file or directory)
Resetting module mouse
Resetting module rel
Input:#  starting non Photon interface
Re: unable to execute qtdemo  
I had the same problem. With this thread, I started QNX without photon and started the qtdemo with telnet.

But I still get the following error: 
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1152x864, refresh 60 Hz
qnx: driver cannot connect

Am I still missing something? Could it be because I'm using QNX in a Virtual Machine (with Virtual Box)?

Thanks
- Magdalena
Re: unable to execute qtdemo  
>>> Could it be because I'm using QNX with Virtual Box?
That is a possiiblity.  Qt works with VMware and the QNX-supplied image.
Re: unable to execute qtdemo  
Thank you for your quick answer!

Must have missed it yesterday, but now I found the answer in another thread (post89523): the color mode had to be set to
 64K, and it works! 

After all, the QNX image and Qt work with VirtualBox, too.

Magdalena