标题:arm开发板上运行QT自带的程序为什么要加qws参数,不能双击运行。
作者:lhansheng
日期:2011-12-14 13:59
内容:
在ubuntu上开发好QT应用程序,并且交叉编译好,下到板子上,不能双击运行。命令行运行提示:QWSSocket::ConnectToLocalFile could not connect:: No such file or directory。 No Qt for embedded linux server appears to be running! if you want to run this program as a server, add the "-qws" command line option。添加“qws”参数,这样运行后,界面上就会有两个鼠标。查网上的资料说是在framebuffer上运行。但板子上自带的qtdemo是可以双击运行的。我应该怎么设置才行?
#1 [tempester 12-15 15:19]
同问
#2 [tempester 12-15 16:48]
貌似是因为没有x11的支持吧,感觉
#3 [大漠之鹰 03-27 14:49]
这个问题有解没?
#4 [shiyuse 03-28 08:56]
加了wqs参数 指明是做为服务器 运行。板子上自带的qtdemo双击运行:可能是这个程序最后 也使用了wqs 这个参数运行了一个qt 的applicationg程序。至于为什么是两个鼠标,可能是你启动了两个服务器程序。