标题:求助ts_open no such file or directory???
作者:pen315
日期:2006-04-18 10:30
内容:
之前在板子上已移植成了QTOPIA,
用的是Qt-2.3.7, qtopia-1.7.0, qt-x11-2.3.2 ,tmake-1.11
现在想在上面加个tslib
tslib交叉编译后,在板子上运行ts_calibrate,总是提示ts_open: No such file or directory
编译过程如下:
#cd tslib
#export CC=arm-linux-gcc
#./autogen.sh--host=arm-linux
#./configure
#make
#cp -a arc/.lib/* ../qt-2.3.7/lib/
#cp -a plugins/.lib/*.so ../qt-2.3.7/lib/
然后再make库和图形界面的!
最后在板子上运行ts_calibrate ,就是上面说的那样了!
因为之前没加tslib前,配置exportQWS_MOUSE_PROTO=/dev/ts
但是在ts_calibrate.c 上看到ts=ts_open("/dev/touchscreen/ucb1x00",0)
我把它改了之后,重新make ,依然是那样的啊!!
请大侠帮忙啊??????
还有和TS驱动有关系吗?不过之前,没加tslib前,TS都是OK的了!
#1 [pen315 04-18 16:40]
没人帮忙吗???
#2 [linuzer 04-18 17:35]
export QWS_MOUSE_PROTO=TPanel:/dev/ts(把/dev/ts改成你的具体的touch screen 路径)
export QT_TSLIBDIR= 'your tslib library dir'
export TSLIB_PLUGINDIR='your tslib plugin dir'
export TSLIB_CONFFILE='your ts.conf file dir'
还有你在编译qte的时候qwsmouse_qws.cpp应该是打过补丁的(支持tslib)
#3 Re:求助 ts_open no such file or directory??? [huishouliu 12-31 09:33]
这个问题我也碰到过,不过自己动下手就应该可以解决的,楼主,我的解决方法是环境变量出问题了,不知道你的是不是这问题