标题:在arm2440上跑qt4.6.2demo的问题
作者:neipe2003
日期:2011-03-29 17:05
内容:
做qt4.6.2的移植,首先移植了tslib-1.4,运行ts_calibrate和ts_test都没有问题。
然后把qt相关的库都放到板子的环境上,我用的是nfs启动方式。设置好环境变量后,在demos下编译了books这个程序,
qmake make。在板子上运行提示:
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,液晶屏上没有反应,还是启动时的画面。
我曾经尝试过这样
./books -qws &
后台运行后再./books报这样的提示:
Did not receive a connection event from the qws server
Aborted
我这里不清楚,No such file or directory指的是哪个文件?我看网上一些资料说是qt是cs架构,要先有一个服务器才可以运行客户端程序,请高人指点。
#1 [虫哥 03-30 11:18]
你加了qws后就是把这个程序作为一个服务器了,运行./books -qws &应该就显示界面了,不需要再./books,还有你确定你交叉编译都没问题了么,是qt for arm的库么
#2 [neipe2003 04-21 09:39]
这个问题后来写了一个守护进程,先启动一个qt的server然后运行client程序就可以了
其实先运行./books -qws & 也可以当做服务器的作用。
#3 [shihaoliu 05-06 10:57]
Hi:
可以请教下你是怎么安装qt-embedded的吗。我用qt-everywhere-opensource-src-4.7.2安装qt-embedded,安装后怎么让例程在开发板上运行呢,是把qt-embedded目录下的东西都拷到开发板的文件系统吗?
谢谢。
#4 [neipe2003 05-06 15:51]
引用第3楼shihaoliu于2011-05-06 10:57发表的 :
Hi:
可以请教下你是怎么安装qt-embedded的吗。我用qt-everywhere-opensource-src-4.7.2安装qt-embedded,安装后怎么让例程在开发板上运行呢,是把qt-embedded目录下的东西都拷到开发板的文件系统吗?
谢谢。
你可以参考这里
http://blog.chinaunix.net/space.php?uid=23121765&do=blog&cuid=2138306