“Terminate Server”; . setqt4env; ./helloQT4 -qws;

[root@FriendlyARM /sdcard]# ./helloQT4


QWSDisplay::Data::init: Invalid argument


Client can't attach to main ram memory.


Aborted


{退出Qtopia2.2.0 或者Qt4程序等一切Qt程序,退出Qtopia2.2.0的方法是:在Qtopia2.2.0中点“设置”中的“关机”可出现如下界面,点“Terminate Server”即可关闭Qtopia-2.2.0系统。}


[root@FriendlyARM /sdcard]# ./helloQT4


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.


[root@FriendlyARM /sdcard]#


[root@FriendlyARM /sdcard]#

[root@FriendlyARM /sdcard]# ./helloQT4 -qws

{可以显示界面,但是触摸屏没有反应}

[root@FriendlyARM /sdcard]# ls


BOOTEX.LOG      LOST.DIR        helloQT4        setqt4env


Bak             dream_true.mp3  images          your.mp3


DCIM            hello           qt4.7.tgz       ????


[root@FriendlyARM /sdcard]#


[root@FriendlyARM /sdcard]# . setqt4env


[root@FriendlyARM /sdcard]#


[root@FriendlyARM /sdcard]# ./helloQT4 -qws


{执行完. setqt4env后,再运行./helloQT4 -qws,触摸屏才有反应}

{

#!/bin/sh
if [ -e /etc/friendlyarm-ts-input.conf ] ; then
. /etc/friendlyarm-ts-input.conf
fi
true ${TSLIB_TSDEVICE:=/dev/touchscreen}
TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE
export TSLIB_CONFFILE
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_DISPLAY=:1
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin
if [ -c /dev/touchscreen ]; then
export QWS_MOUSE_PROTO="Tslib MouseMan:/dev/input/mice"
if [ ! -s /etc/pointercal ] ; then
rm /etc/pointercal
/usr/bin/ts_calibrate
fi
else
export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice"
fi
export QWS_KEYBOARD=TTY:/dev/tty1
export HOME=/root

}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值