Tslib-1.4 record for cross-compilation under Ubuntu

Source: Internet
Author: User
Tags automake
After the touch screen driver is transplanted in Ubuntu, A tslib is usually transplanted to work together to filter and correct the touch screen data at the user layer, at the same time, you can also provide a unified interface for the application. Many guis support the tslib interface. for the basic knowledge and Transplantation of tslib, google is just a plug-in on the Internet. The following briefly introduces the cross-compilation process: (1) download the latest version of tslib. Currently, the latest version is version 1.4, download via CVS: $ mkdir-m777

After the touch screen driver is transplanted in Ubuntu, A tslib is usually transplanted to work together to filter and correct the touch screen data at the user layer, at the same time, you can also provide a unified interface for the application. Many guis support the tslib interface. for the basic knowledge and Transplantation of tslib, google is just a plug-in on the Internet. Below is a brief introduction to my cross-compilation process:

(1) download the latest tslib version. The latest version is version 1.4. download the latest version through CVS:

$ Mkdir-m777 cvs

$ Cd cvs

$ Export CVSROOT =: pserver: anoncvs @ cvs. handhelds. org:/cvs

$ Cvs login

Logging in to: pserver: anoncvs @ cvs. handhelds. org: 2401/cvs

CVS password: anoncvs

Cvs login: CVS password file/home/daiq/. cvspass does not exist-creating a new file

$ Cvs co apps/tslib

This will create an apps folder under your $ PWD/cvs, where tslib is the source code we downloaded.

(2) generate the configure file.

Install some tools first. I don't need to install them when I use ubuntu9.10, but I still need to install them using the new software packages such as autoconf, automake, and libtool (the new software package will automatically add other required software packages ).

Sudo apt-get install m4 autoconf automake libtool

Set the cross-compilation environment first:

$ Export PATH = $ PATH:/work/cross/toolchain/gcc-3. 4. 5-glibc-2. 3. 6/arm-softfloat-linux-gnu/bin

$ Export CC = arm-softfloat-linux-gnu-gcc

$ Export CXX = arm-softfloat-linux-gnu-g ++

Run./autogen. sh

Daiq @ daiq-desktop:/work/cvs/apps/tslib $./autogen. sh

Libtoolize... libtoolize: putting auxiliary files in '.'.

Libtoolize: copying file './ltmain. Sh'

Libtoolize: You shocould add the contents of the following files to 'aclocal. m4 ':

Libtoolize: '/usr/share/aclocal/libtool. m4'

Libtoolize: '/usr/share/aclocal/ltoptions. m4'

Libtoolize: '/usr/share/aclocal/ltversion. m4'

Libtoolize: '/usr/share/aclocal/ltsugar. m4'

Libtoolize: '/usr/share/aclocal/lt ~ Obsolete. m4'

Libtoolize: Consider adding 'ac _ CONFIG_MACRO_DIR ([m4]) 'to configure. AC and

Libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.

Libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile. am.

Done.

Aclocal... Done.

Autoheader... Done.

Automake... configure. ac: 21: installing './config. guess'

Configure. ac: 21: installing './config. sub'

Configure. ac: 7: installing './install-Sh'

Configure. ac: 7: installing './missing'

Plugins/Makefile. am: installing './depcomp

Done.

Autoconf... Done.

Now you can do./configure, 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.