做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架构,要先有一个服务器才可以运行客户端程序,请高人指点。