主题 : QT程序每次都要加上-qws才能运行 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 91121
精华: 0
发帖: 36
金钱: 180 两
威望: 36 点
综合积分: 72 分
注册时间: 2013-05-03
最后登录: 2018-02-08
楼主  发表于: 2013-06-23 15:51

 QT程序每次都要加上-qws才能运行

纯粹初始状态的Tiny210V2的板子和linux环境。

在Fedora9下的QT4.7做的界面小程序,传输到开发板上。先手动停掉Qtopia2.2,在com1上总是出现下面的结果。
[root@FriendlyARM fa]# ./hello
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
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" 才能正常运行。

网上搜索这个出错信息,看到错误的原因是环境配置不够完整,比如这个博客的解释。http://blog.csdn.net/armeasy/article/details/5932249
但实在写了是太多步骤了,菜鸟看不懂。请问出厂环境是少了哪一些配置操作才导致任何QT程序必须加上"-qws" 呢?
级别: 荣誉会员
UID: 34761
精华: 0
发帖: 1348
金钱: 6835 两
威望: 1367 点
综合积分: 2696 分
注册时间: 2010-12-21
最后登录: 2017-06-02
1楼  发表于: 2013-06-28 20:30
qt第一个进程要作server,故要加