Tslib1.4在mini2440上的移植

一、开发环境平台

开发平台:mini2440

Linux系统:Fedora9

交叉编译器:arm-linux-4.4.3

二、编译过程

1、下载tslib-1.4.tar.gz并放到 /opt 目录下

2、解压tslib1.4

命令:tar zxvf tslib-1.4.tar.gz

解压后得到tslib文件夹,如图

3、进入tslib目录

#cd tslib

4、设置环境变量及制定交叉编译器

#export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin:$PATH
#export TOOLCHAIN=/opt/FriendlyARM/toolchain/4.4.3
#export TB_CC_PREFIX=arm-linux-
#export PKG_CONFIG_PREFIX=$TOOLCHAIN/arm-linux

注:arm-linux-gcc4.4.3安装在/opt/FriendlyARM/toolschain/目录下

5、运行tslib目录下的autogen.sh脚本

#./autogen.sh

#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache

6、配置

#./configure  --host=arm-linux  --cache-file=arm-linux.cache  --enable-inputapi=no   PLUGIN_DIR=/usr/local/arm/tslib/plugins  -prefix=/usr/local/arm/tslib/build  -host=arm-linux   --cache-file=arm-linux.cache  2>&1 | tee conf_log


注:-prefix=/usr/local/arm/tslib/build表示tslib安装的目录

最后一行将配置信息写入conf_log文件,方便大家检查错误

7、编译

#make  2>&1 | tee  make_log
#make  install


8、修改

成功后在/usr/local/arm/tslib出现build目录,进入相关的etc目录找到ts.conf并修改,删除module_rawinput’前面的#号和空格

命令:#gedit ts.conf

将build目录改为tslib

命令:#mv build tslib

然后把tslib目录拷贝至网络文件系统


至此,tslib-1.4已经移植完成

我遇到的问题:

问题1、make[2]: *** [ts_calibrate.o] Error 1
     make[2]: Leaving directory `/root/soft/tslib/ts_lib/tslib/tests'
     make[1]: *** [all-recursive] Error 1
     make[1]: Leaving directory `/root/soft/tslib/ts_lib/tslib'

     make: *** [all] Error 2

解决方法:我用的是arm-linux-gcc4.4.1,版本太高了,我换成arm-linux-gcc4.3.2就解决了



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

C与Python实战

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值