操作系统 : vmware + ubuntu8.04
开发板 : mini2440
开发板 : 移植linux2.6.29+NFS文件系统
编译安装tslib1.4
A、安装编译过程需用到的程序
root@hrixin-desktop:/home/hrixin# apt-get install autoconf(或autoconf2.13)
root@hrixin-desktop:/home/hrixin# apt-get install automake
root@hrixin-desktop:/home/hrixin# apt-get install libtool
B、配置编译
root@hrixin-desktop:/work/qt# tar xzvf tslib-1.4.tar.gz
root@hrixin-desktop:/work/qt# cd tslib
生成./configure
root@hrixin-desktop:/work/qt/tslib# source autogen.sh
root@hrixin-desktop:/work/qt/tslib# ./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes
root@hrixin-desktop:/work/qt/tslib# make
C、安装
root@hrixin-desktop:/work/qt/tslib# make install-strip //生成瘦身应用程序和库
打包
root@hrixin-desktop:/usr/local# tar czvf tslib.tar.gz tslib
D、复制到NFS文件系统/usr/local目录下解压
root@hrixin-desktop:/work/root_qtopia/usr/local# tar xzvf tslib.tar.gz
E、设置环境变量,校准触摸屏。
在天开板终端建立脚本文件,并执行:
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_FBDEVICE=/dev/fb0
export QWS_MOUSE_PROTO=Tslib:/dev/event0
注意:触摸屏的前提是你的触摸屏驱动已经写好,并加载进了内核.
你可以测试有没有加载触摸屏驱动,cat /dev/event0(这只是我的板子上的触摸屏) ,
点击触摸屏,看终端有无显示,若有则表明正确。
在开发板/usr/local/tslib/bin目录下执行校准触摸屏程序:
# ./ts_calibrate
-/bin/sh: ./ts_calibrate: not found
请问大家是怎么回事?在网上搜索了很多资料,网友帖子说是安装的路径/usr/local/tslib/和拷贝到NFS文件系统目录不相同。
但我也是拷贝到相同目录NFS文件系统的/usr/local/tslib/