主题 : 移植tslib,光标没反应 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 53362
精华: 0
发帖: 110
金钱: 570 两
威望: 114 点
贡献值: 0 点
综合积分: 220 分
注册时间: 2011-08-06
最后登录: 2013-05-21
楼主  发表于: 2011-11-08 09:08

 移植tslib,光标没反应

实在没办法,来这里求指点了:
我移植TSLIB,移植好后运行ts_test,校准等tslib/bin下的程序时都没问题,一切正常。但当运行QT程序时,触摸屏光标没反应:
首先我编译QT的时候参数如下:
./configure  -release -shared -fast -pch -no-qt3support -qt-sql-sqlite -no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -nomake examples -nomake demos -nomake tools -optimized-qmake -no-phonon -no-nis -no-opengl -no-cups -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info -xplatform qws/linux-arm-g++ -embedded arm -depths 16 -no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb -qt-kbd-usb -confirm-license -qt-mouse-tslib -I/usr/local/Trolltech/include -L/usr/local/Trolltech/lib

配置文件如下:
export  TSLIB_ROOT=/tslib
export  QTDIR=/tiny6410
export  TSLIB_ROOT=/tslib
export  PATH=$QTDIR/bin:$PATH
export  TSLIB_CONSOLEDEVICE=none
export  TSLIB_FBDEVICE=/dev/fb0
#export  TSLIB_TSDEVICE=/dev/event0
export  TSLIB_TSDEVICE=/dev/touchscreen-1wire
export  TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export  TSLIB_CONFFILE=/tslib/etc/ts.conf
export  TSLIB_CALIBFILE=/etc/pointercal
#export  QWS_MOUSE_PROTO=Tslib:/dev/event0
export   QWS_SIZE=800*480
export  QWS_MOUSE_PROTO=/dev/mice
#export  QWS_MOUSE_PROTO=/dev/mouse0
export TSLIB_CALIBFILE=/etc/pointercal
#export TSLIB_TSEVENTTYPE=H3600
export QT_QWS_FONTDIR=/tiny6410/lib/fonts
export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$QTDIR/lib

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2011-11-08 10:14
这种问题还是发到"友善之臂官方客服中心"版块去吧,这里是讨论u-boot的地方,和tslib没有关系。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."