首页| 论坛| 消息

标题:tslib-1.4的问题
作者:miaoronghua
日期:2009-06-16 11:03
内容:

在为QTE4.5.1打上补丁后,我编译通过了,但是板上运行./helloworld -qws终端就会报如下的错误,呵呵,请问大家有没有遇见过,请指点,感谢
GCC-4.1.1
Could not read calibration: "/etc/pointercal"
No raw modules loaded.
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
Please check your tslib installation
根据意思来看的话应该是没有校准的配置文件,那后面几句是什么意思?
运行tslib-1.4/bin/ts_calibrate时则会出现以下错误
No raw modules loaded.
ts_config: No such file or directory
点击触摸屏没有反应
是我的环境变量出问题了吗?
环境变量如下:
export LD_LIBRARY_PATH=/nand1/tslib-1.4/lib:/lib:/nand1/Trolltech/QtEmbeddedARMT
export QTDIR=/nand1/Trolltech/QtEmbeddedARMTSLib/
export PATH=/bin:$QTDIR/bin:/nand1/tslib-1.4/bin:$PATH
export set QWS_MOUSE_PROTO=Tslib:/dev/event1
export QWS_DISPLAY="LinuxFb:mmWidth50:mmHeight70:0"
export QWS_DISPLAY=LinuxFb:/dev/fb2
export QWS_SIZE=480x272
export QT_ONSCREEN_PAINT=0
export QWS_SW_CURSOR=1
export QT_QWS_FONTDIR=/nand1/Trolltech/QtEmbeddedARMTSLib/lib/fonts
export QT_QWS_PLUGINDIR=/nand1/Trolltech/QtEmbeddedARMTSLib/plugins
export TSLIB_TSDEVICE=/dev/event1
export TSLIB_CONFFILE=/nand1/tslib-1.4/etc/ts.conf
export TSLIB_FBDEVICE=/dev/fb2
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_PLUGINDIR=/nand1/tslib-1.4/lib/ts
我猜想是不是export TSLIB_CONFFILE=/nand1/tslib-1.4/etc/ts.conf 这个文件找不到?
大家帮我想想办法


#1 [coyote 06-16 11:09]
我的是
export T_ROOT=/opt/tslib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf
export TSLIB_CALIBFILE=$T_ROOT/etc/pointercal
export QTDIR=/opt/qt4.5
export LD_LIBRARY_PATH=$QTDIR/lib:$OPIEDIR/lib:/opt/tslib/lib
export PATH=$QTDIR/lib:$OPIEDIR/bin:$PATH
export QT_QWS_FONTDIR=/opt/qt4.5/lib/fonts
export QWS_MOUSE_PROTO='TSLIB:/dev/input/event0'
export QWS_DISPLAY="LinuxFb:mmWidth320:mmHeight200:0"
#2 [miaoronghua 06-16 11:30]
从你这里我看不出什么啊,我的问题好奇怪啊。。。。。。。。。
#3 [miaoronghua 06-16 12:40]
我知道可能是什么问题了,是tslib-1.4/etc/ts.config的配置问题,呵呵
我看了一下里面的内容,有h3600,input等等,现在我的触摸屏设备是/dev/event1或者/dev/event0我郁闷了,ts.config里面没有event参数啊,选用input 跑程序时,报SIGSEGV错,晕了,大家帮帮忙啊
#4 [miaoronghua 06-16 15:35]
我在/dev/下建立了一个input目录,然后做了链接 ln -s /dev/event1 /dev/input/event1, ln -s /dev/event0 /dev/input/event0,修改ts.config 选用input项,但是还是会有
/nand1/tslib-1.4/bin> ./ts_calibrate
SIGSEGV
大家帮帮帮忙吧
#5 [shwhg 06-16 16:15]
请把你的/nand1/tslib-1.4/etc/ts.conf文件的内容贴出来。
同时请把你/nand1/tslib-1.4/lib/ts目录下的文件列表贴出来看看。
ts.conf文件中应该有一行
module_raw input
/nand1/tslib-1.4/lib/ts目录下应该有个文件叫
input.so

<< 1 2 3 >> (1/3)

回复 发表
主题 版块