Installation of Tslib

Source: Internet
Author: User
Tags automake

Tslib is a necessary environment that needs to be built before using QT development in embedded development, through Tslib, the QT program you write can operate through the touchscreen, while Tslib carries out the interface between your QT program and hardware, so

Learning how to build Tslib is an important part of the embedded development.


Install tslib before installing it on your Linux system:

sudo apt-get install Automake Libtool if not installed, there will be some unexpected errors.


PS: The environment used by bloggers is to write the tslib environment under Ubunt 12.04 and migrate to the Contex A8 platform.

The tslib-1.0.tar.bz2 used. Download Link: http://download.csdn.net/download/kev65629/2029241


$./autogen.sh

$./configure CC=ARM-LINUX-GNUEABIHF-GCC cxx=arm-linux-gnueabihf-g++--prefix=/usr/local/tslib--host= ARM-LINUX-GNUEABIHF Ac_cv_func_malloc_0_nonnull=yes








I myself summarize the errors encountered in my writing process.error encountered in installing Tslib:./autogen.sh:4: Autoreconf:not found



in the Arm on board execution ./xxx-qws Error: could not read calibration: "/etc/pointercal"

Share | 2014-01-15 14:09 shanghl417 | Browse 1477 Times

Cpu

I am now in the kernel 2.6.29,tslib version 1.4 , execute the executable program on the board error could not read Calibration: "/etc/pointercal", click on the board is no response

2014-01-15 14:37 The questioner adopted

This error is reported because you did not perform a screen calibration, or the pointercal file was deleted.

Run:ts_calibrate re-calibrate so you can regenerate the pointercal file

./autogen.sh:4: Autoreconf:not found
is to perform autogen.sh generation under different versions of tslib . They produce the same reasons that are
because there is no installation
automake Tools , (Ubuntu 8.04) with the following command to install it OK.
sudo apt-get install autoconf automake libtool

Linux under Compile tslib,Configure before all normal, but make after the error, solve.

Share | 2012-03-18 23:14 hc07124988 | Browse 1218 Reward: 5

Programming languages

The final contents of the terminal are as follows:

In function 'open',

inlined from 'main'atts_calibrate.c:227:

/usr/include/bits/fcntl2.h:51:error:call to '__open_missing_mode'declared with Attribute Error:open with O_creat in second argument needs 3 arguments

In function 'open',

inlined from 'main'atts_calibrate.c:229:

/usr/include/bits/fcntl2.h:51:error:call to '__open_missing_mode'declared with Attribute Error:open with O_creat in second argument needs 3 arguments

MAKE[2]: * * [TS_CALIBRATE.O] error 1

MAKE[2]: leaving directory '/opt/qt/tslib/tests '

MAKE[1]: * * [all-recursive] error 1

MAKE[1]: leaving directory '/opt/qt/tslib '

Make: * * * [ALL] error 2

2013-12-14 10:07 Netizens adopted

new version of GCC compiler is strict with syntax checking in source files ./tests/ts_calibrate.c

source File

if ((Calfile = getenv ("Tslib_calibfile")) = = NULL) {

CAL_FD = open (Calfile, O_creat | O_RDWR);

} else {

CAL_FD = open ("/etc/pointercal", O_creat | O_RDWR);

// }

needs to be changed into the following form

if ((Calfile = getenv ("Tslib_calibfile")) = = NULL) {

CAL_FD = open (Calfile, O_creat | O_rdwr, 0777);

} else {

CAL_FD = open ("/etc/pointercal", O_creat | O_rdwr, 0777);

save and then recompile


Installation of Tslib

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.