Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - unable to execute qtdemo : (8 Items)
   
unable to execute qtdemo  
hello ,i'm new to qt/qnx.i encounter a problem when i run qtdemo .the host is  momentics on the winxp,and the target is 
 neutrino on vmware .
i do that following the steps showing below:
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

from the terminal ,it shows 
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz

but from the vmware ,mouse and keyboard are  still no response

the relevant topic http://community.qnx.com/sf/go/projects.qt/discussion.general.topc19765,but i fail,please help me 
Re: unable to execute qtdemo  
Did you use this image for VMware?  It includes the VMware video driver.

http://www.qnx.com/download/feature.html?programid=21189

You can check the driver and mode being used by launching Photon, then Configure/Display.  

Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/
discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523
回复: Re: unable to execute qtdemo  
this is the screenshot,as you see,i cannot change the color mode ,i will show you what i have done for now to make qt 
run on the qnx/based on vmware
1)i copy from C:\QNX650\target\qnx6\x86\usr to 192.168.149.131:\usr
2)in the process ,there is two warnings that appears,but i ignore ,they are 

3)  From telnet, run  '/usr/photon/bin/devi-hid -Pr kbd mouse'
4) mouse/keyboard still no response


 
i doubt if there is something wrong with io-hid,i refer the  document
 (devi-hid title )
 ,so i  run io-hid first. i do the following:
1)io-hid -dusb -dps2ser ps2mouse:mousedev:msoft:uart,1:kbd:kbddev &,   it shows 



2)/usr/photon/bin/devi-hid -Pr kbd mouse 

3)qtdemo -qws 

fail
 

2012-05-15



qhzbit



发件人:Dennis Kellly
发送时间:2012-05-15 21:41
主题:Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:

Did you use this image for VMware?  It includes the VMware video driver. 

http://www.qnx.com/download/feature.html?programid=21189 

You can check the driver and mode being used by launching Photon, then Configure/Display.   

Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/
discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523 



_______________________________________________ 

Qt General 
http://community.qnx.com/sf/go/post93086 
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com 
Attachment: Bitmap Catch(05-15-13-50-29).bmp 143.16 KB Bitmap Catch(05-15-22-16-46).bmp 404.36 KB Bitmap Catch(05-15-22-24-33).bmp 50.58 KB Bitmap Catch(05-15-22-26-55).bmp 95.16 KB Bitmap Catch(05-15-22-27-06).bmp 131.48 KB Bitmap Catch(05-15-13-45-56).bmp 96.04 KB Bitmap Catch(05-15-13-49-05).bmp 53.42 KB HTML sf-attachment-mime1398 4.18 KB
回复: Re: unable to execute qtdemo  
this is the screenshot,as you see,i cannot change the color mode ,i will show you what i have done for now to make qt 
run on the qnx/based on vmware
1)i copy from C:\QNX650\target\qnx6\x86\usr to 192.168.149.131:\usr
2)in the process ,there is two warnings that appears,but i ignore ,they are 

3)  From telnet, run  '/usr/photon/bin/devi-hid -Pr kbd mouse'


4)qtdemo -qws 

fail,i don't know the  output from the QQnxScreen means  


2012-05-15



qhzbit



发件人:Dennis Kellly
发送时间:2012-05-15 21:41
主题:Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:

Did you use this image for VMware?  It includes the VMware video driver. 

http://www.qnx.com/download/feature.html?programid=21189 

You can check the driver and mode being used by launching Photon, then Configure/Display.   

Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/
discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523 



_______________________________________________ 

Qt General 
http://community.qnx.com/sf/go/post93086 
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com 

2012-05-15



qhzbit



发件人:Dennis Kellly
发送时间:2012-05-15 21:41
主题:Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:

Did you use this image for VMware?  It includes the VMware video driver. 

http://www.qnx.com/download/feature.html?programid=21189 

You can check the driver and mode being used by launching Photon, then Configure/Display.   

Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/
discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523 



_______________________________________________ 

Qt General 
http://community.qnx.com/sf/go/post93086 
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com 
Attachment: HTML sf-attachment-mime1411 5.87 KB Bitmap Catch(05-15-22-16-46)(1).bmp 404.36 KB Bitmap Catch(05-15-22-24-33)(1).bmp 50.58 KB Bitmap Catch(05-15-22-26-55)(1).bmp 95.16 KB Bitmap Catch(05-15-22-27-06)(1).bmp 131.48 KB Bitmap Catch(05-15-13-50-29)(2).bmp 143.16 KB
Re: 回复: Re: unable to execute qtdemo  
>>>from the terminal ,it shows 
>>>QQnxScreen: Attached to Device, number of displays: 1
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz

These are "normal" messages... not errors.

But you should see two more lines like
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connect

Have you set the environment variables?
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnx
回复: Re: 回复: Re: unable to execute qtdemo  
thank you ,i make it ,before  /usr/photon/bin/devi-hid -Pr kbd mouse,i add # export QWS_DISPLAY=qnx
# export QWS_MOUSE_PROTO=qnx
# export QWS_KEYBOARD=qnx,  and i make it ,thank you !


i have another question ,now i want to make my own app .my host is winxp ,my target is vmware on this xp .i have read 
readme.txt(which is included in the attachment),i do as the following steps:
1)enter C:\Qt\hello,and create a makefile including "LIST=OS CPU VARIANT
MAKEFILE=GNUmakefile
include recurse.mk
##eof"


2)Inside the same directory, create subdirectories called nto-x86-o,including "GNUmakefile" 
 ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
include $(MKFILES_ROOT)/qmake-qt.mk
##eof

3)from cmd prompt,i enter the C:\Qt\hello,and run make ,but it shows 

4)so i enter the ksh ,and run make

2012-05-16



qhzbit



发件人:Dennis Kellly
发送时间:2012-05-15 23:40
主题:Re: 回复: Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:

>>>from the terminal ,it shows  
>>>QQnxScreen: Attached to Device, number of displays: 1 
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz 

These are "normal" messages... not errors. 

But you should see two more lines like 
QQnxMouseHandler: connected. 
QWSQnxKeyboardHandler: connect 

Have you set the environment variables? 
QWS_DISPLAY=qnx 
QWS_KEYBOARD=qnx 
QWS_MOUSE_PROTO=qnx 




_______________________________________________ 

Qt General 
http://community.qnx.com/sf/go/post93098 
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com 
Attachment: HTML sf-attachment-mime1463 4.4 KB Bitmap Catch(05-16-10-05-12).bmp 92.71 KB Bitmap Catch(05-16-10-06-02).bmp 953.23 KB
回复: Re: 回复: Re: unable to execute qtdemo  
following the last email ,i try as a pdf called qmake_qnx.pdf
1)i copy the bat file to 
C:\qnx650\host\win32\x86\usr\bin\qmake_qnx.bat
2)run qmake_qnx i386


3)i ignore the error,and copy it to the target ,./cEasy -qws ,it shows 
2012-05-16



qhzbit



发件人:Dennis Kellly
发送时间:2012-05-15 23:40
主题:Re: 回复: Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:

>>>from the terminal ,it shows  
>>>QQnxScreen: Attached to Device, number of displays: 1 
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz 

These are "normal" messages... not errors. 

But you should see two more lines like 
QQnxMouseHandler: connected. 
QWSQnxKeyboardHandler: connect 

Have you set the environment variables? 
QWS_DISPLAY=qnx 
QWS_KEYBOARD=qnx 
QWS_MOUSE_PROTO=qnx 




_______________________________________________ 

Qt General 
http://community.qnx.com/sf/go/post93098 
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com 
Attachment: HTML sf-attachment-mime1470 3.32 KB Bitmap sf-attachment-mime1471 323.54 KB Bitmap sf-attachment-mime1472 54.14 KB PDF qmake_qnx.pdf 730.36 KB
how to run my own qt app  
hello ,i'm new to qt/qnx,now i encounter a question ,that is how i run my own qt app on the target based on qnx (my host
 is 

winxp,and target is vmware).i don't really know how it works, i guess:
1)the first step :  i make a project by qt-creator and run ,debug to make sure it will run well.
2)the second step : i make the resource that is needed to run on qnx again .

According to this thought,i did the following things:
1)first i create a project "hello  world" in the qt-creator ,and it works well 
2) as the "read me"says,i enter C:\Qt\hello,and create a makefile including 
"LIST=OS CPU VARIANT
MAKEFILE=GNUmakefile
include recurse.mk
##eof"
3)Inside the same directory, create subdirectories called nto-x86-o,including "GNUmakefile" 
 ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
include $(MKFILES_ROOT)/qmake-qt.mk
##eof

4)from cmd prompt,i enter the C:\Qt\hello,and run "make" ,but it shows mingw32-make  is Not internal or external command
, 

also not be operation of the procedure or a batch file.
5)so i enter"ksh",run "make",it shows errors as the attachment shows ,but it produce a .project and a hello file.so i 

transfer the hello file to the vmware ,the app  absolutely failes to run . 

another question ,i know that qt can be intergrated with eclipse which makes the developer  convenient,however, can it 
be 

intergrated into the momentics (run and debug in the momentics environment)?




thank you ,and I look forward to your  reply

2012-05-18



qhzbit



发件人:Dennis Kellly
发送时间:2012-05-15 23:40
主题:Re: 回复: Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:

>>>from the terminal ,it shows  
>>>QQnxScreen: Attached to Device, number of displays: 1 
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz 

These are "normal" messages... not errors. 

But you should see two more lines like 
QQnxMouseHandler: connected. 
QWSQnxKeyboardHandler: connect 

Have you set the environment variables? 
QWS_DISPLAY=qnx 
QWS_KEYBOARD=qnx 
QWS_MOUSE_PROTO=qnx 




_______________________________________________ 

Qt General 
http://community.qnx.com/sf/go/post93098 
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com 
Attachment: Bitmap failed.bmp 953.22 KB HTML sf-attachment-mime1540 5.21 KB