在Ubuntu下移植好触摸屏的驱动后,一般都要移植一个tslib来配合,在用户层对触摸屏的数据进行滤波和矫正,同时也可以给应用程序一个统一的接口,很多GUI都支持tslib的接口.对于tslib的基础知识和移植,网上google一下就是一大把,下面简要地介绍一下我的交叉编译过程:(1)下载最新版本的tslib,目前最新的是1.4版,下载方法是通过CVS下载:$ mkdir - m777 cvs$ cd cvs$ export CVSROOT = : pserver : anoncvs@cvs . handhelds . org : / cvs$ cvs loginLogging in to : pserver : anoncvs@cvs . handhelds . org : 2401 / cvsCVS password : anoncvscvs login : CVS password file / home / daiq / . cvspass does not exist - creating a new file$ cvs co apps / tslib这样会在你的$PWD/cvs下建立一个 apps文件夹,其中的 tslib就是我们下载下来的源码.(2)产生configure文件.这里要先安装一些工具,我使用ubuntu9.10就不用安装,但是还是用新立得安装:autoconf、automake和libtool等软件包(新立得会自动添加其他需要的软件包).sudo apt - get install m4 autoconf automake libtool先设置好交叉编译环境:$ 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 + +执行 ./autogen.shdaiq@daiq - desktop : / work / cvs / apps / tslib$ . / autogen . shLibtoolize . . . libtoolize : putting auxiliary files in ` . ".libtoolize: copying file `./ltmain.sh"libtoolize : You should 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 andlibtoolize: 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 ` . / depcompDone.Autoconf...Done.Now you can do ./configure, make, make install.
Ubuntu重装后Java环境的设置Ubuntu 9.10+qt-embedded-linux-opensource-src-4.5.0+tslib-1.4.1+gcc-4.3.3+gcc-4.1移植经验相关资讯 Ubuntu知识
- Ubuntu 有这功能吗?-回答4个新用 (10/14/2014 16:54:49)
- Ubuntu小知识总结 (07/08/2013 17:02:10)
- 万圣节Halloween与Ubuntu (10/31/2012 07:59:01)
| - Ubuntu系统诞生10周年:让Linux更 (10/14/2014 16:53:00)
- Ubuntu 官方发布 Ubuntu 应用程序 (02/15/2013 21:49:58)
- Ubuntu内置捐款选项:为掌握用户需 (10/11/2012 13:57:23)
|
本文评论 查看全部评论 (0)