Environment:
The file system is mounted through NFS: /home/Richard/rootfs.
1. source code
Downloading tslib-1.4.tar.gz
2. tar –zxf tslib-1.4.tar.gz
3. cd tslib
./auotcgen.sh //##generate the configuration setting
./configure --prefix=/home/Richard/rootfs/usr/local/tslib/ --host=arm-linux
ac_cv_func_malloc_0_nonnull=yes --enable-inputapi=no //## configure the target
installation path; if the TS driver support ioctl, then no need the “enable-inputapi=no”
Make
Make install
//## after the make install, you should be able to find the below folders under
//## /home/Richard/rootfs/usr/local/tslib/ :
//## bin,lib,etc,include
4./ configure the /home/Richard/rootfs/usr/local/tslib/etc/ts.conf
Uncomment the line of module_raw input
5./ set the env variables in the profile under /home/Richard/rootfs/etc with below contents:
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib
6./ test
Run the test programs under usr/local/tslib/bin.