Tslib version Problems
1. Git clone https://github.com/kergoth/tslib
2../autogen. Sh
3../configure -- Host = arm-Linux -- prefix =/home/tslib
4. Make
5. Make install
6. After make install, four subdirectories will be generated in the/home/tslib directory:
Include lib etc Bin
The generated library is located in Lib, and there is a sub-directory TS under this directory, which contains many libraries used for calibration (such as input. So ).
TS. conf under etc is the configuration file, and the bin directory is the calibration and testing tool (such as the calibrated ts_calibrate, ts_test for testing ).
The content of the configuration file ts. conf is as follows:
Module_raw Input
Module pthres pmin = 1
Module variance Delta = 30
Module dejitter Delta = 100
Module linear
Module_raw has many types. Here, only input is used (that is, the input subsystem of Linux. The device file name is/dev/event1)
/Dev/event1 is the device node of the screen.
7. Copy files under tslib to rootfs
Copy tslib/etc/ts. conf to/etc
8. Modify rootfs/etc/profile
# Tslib Environment
Export tslib_tsdevice =/dev/event1
Export tslib_conffile =/etc/ts. conf
Export tslib_plugindir =/tslib/lib/TS
Export tslib_calibfile =/etc/pointercal
Export Path =/tslib/bin: $ path
Export LD_LIBRARY_PATH = $ LIBRARY_PATH:/tslib/lib: