1. Compile:
$ Export cc =/work/ebook/arm-linux-4.1.1/bin/ARM-Linux-GCC // toolchain path
$./Autogen. Sh // generate the config file
$ Export Path = $ path:/work/ebook/arm-linux-4.1.1/bin/
$ Echo "ac_cv_func_malloc_0_nonnull = yes"> arm-linux.cache
$./Configure -- cache-file = arm-linux.cache -- enable-inputapi = No -- prefix =/work/ts_lib_bin -- Host = arm-Linux
$ Make
2. Run on the device
Some path settings:
# Export qws_mouse_proto = tpanel:/dev/input/event0
# Export t_root =/mnt/ts_lib_bin
# Export LD_LIBRARY_PATH = $ t_root/lib
# Export tslib_consoledevice = none
# Export tslib_fbdevice =/dev/fb0
# Export tslib_tsdevice =/dev/input/event0
# Export tslib_calibfile = $ t_root/etc/pointercal
# Export tslib_conffile = $ t_root/etc/ts. conf
# Export tslib_plugindir = $ t_root/lib/TS
#./Ts_calibrate
Question 1:
./Ts_calibrate: Error while loading shared libraries: libts-0.0.so.0: cannot open shared object file: Error 40
./Ts_calibrate: Error while loading shared libraries: libts-0.0.so.0: cannot ope
N shared object file: no such file or directory
Solution:
# Echo $ LD_LIBRARY_PATH // view the Lib path,
# Export LD_LIBRARY_PATH = $ t_root/lib
Question 2:
Ts_open: no such file or directory
Solution:
# Export tslib_tsdevice =/dev/input/event0 // touch screen device path
Question 3:
Couldnt open tslib config file: no such file or directory ts_config: Illegal seek
Solution:
# Export tslib_conffile = $ t_root/etc/ts. conf
Question 4:
Couldnt load module pthres
No raw modules loaded.
Ts_config: Success
Solution:
# Export tslib_plugindir = $ t_root/lib/TS
Question 5:
No raw modules loaded.
Ts_config: no such file or directory
Solution:
Modify $ t_root/etc/ts. conf, open at least one module_raw, and remove the leading space.
Question 6:
The configuration file configure has been generated through autogen, moved to another machine, and re-run./configure. solution:
Reset the GCC path, for example:
$ Export cc =/work/ebook/arm-linux-4.1.1/bin/ARM-Linux-GCC // toolchain path
$ RM arm-linux.cache
$ Export Path = $ path:/work/ebook/arm-linux-4.1.1/bin/
$ Echo "ac_cv_func_malloc_0_nonnull = yes"> arm-linux.cache
$./Configure -- cache-file = arm-linux.cache -- enable-inputapi = No -- prefix =/work/ts_lib_bin -- Host = arm-Linux
$ Make
$ Make install