Tslib-1.0 Transplantation

Source: Internet
Author: User

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

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.