网站大量收购独家精品文档,联系QQ:2885784924

制作qte-472带tslib的根文件系统.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
制作qte-472带tslib的根文件系统

制作qte-4.7.2带tslib的根文件系统 平台 gecarm-linux-gcc 版本 .1.2 一、下载qt源文件 交叉编译embedded库mkdir /root/build_qt cd /root/build_qt tar zxvf qt-everywhere-opensource-src-4.7.2.tar.gz mv qt-everywhere-opensource-src-4.7.2 qte 三、设置环境变量export PATH=/usr/local/arm/4.1.2/bin:$PATH export CPLUS_INCLUDE_PATH=/usr/local/arm/4.1.2/arm-angstrom-linux-gnueabi/include/c++:/usr/local/arm/4.1.2/arm-angstrom-linux-gnueabi/include/c++/arm-angstrom-linux-gnueabi:$CPLUS_INCLUDE_PATH source install.sh 四、修改QTE源码目录中的src/gui/embedded/qmouselinuxtp_qws.cpp文件src/gui/embedded/qmouselinuxtp_qws.cpp文件 QString mousedev; if (device.isEmpty()) { mousedev = QLatin1String(/dev/event0); /* #if defined(QT_QWS_IPAQ) # ifdef QT_QWS_IPAQ_RAW mousedev = QLatin1String(/dev/h3600_tsraw); # else mousedev = QLatin1String(/dev/h3600_ts); # endif #else mousedev = QLatin1String(/dev/ts); #endif */ 五、在编译QTE之先移植tslib 库。 先交叉编译tslib-1.4 使用交叉工具链4.1.2。 mkdir /root/build_tslib cd /root/build_tslib tar zxvf tslib-1.4.gz (解压完在当前目录下生成一个tslib 源码目录,进入该目录编译) cd tslib ./autogen.sh //用于生产configure //配置成将生成的文件指定安装到/share/tslib 目录, ./configure --prefix=/share/tslib --host=arm-linux ac_cv_func_malloc_0_nonnull=yes --enable-inputapi=yes 编译 make 安装 make install //也可以用arm-linux-strip 压缩应用程序和库 六、修改/share/tslib/etc 目录下的ts.conf 文件,将module_raw input 前面的注释去掉, 使能QT 支持触摸屏。 # vi tslib/etc/ts.conf # Uncomment if you wish to use the linux input layer event interface module_raw input (必须顶格) # Uncomment if youre using a Sharp Zaurus SL-5500/SL-5000d # module_raw collie # Uncomment if youre using a Sharp Zaurus SL-C700/C750/C760/C860 # module_raw corgi # Uncomment if youre using a device with a UCB1200/1300/1400 TS interface # module_raw ucb1x00 # Uncomment if youre using an HP iPaq h3600 or similar # module_raw h3600 # Uncomment if youre using a HitachiWebpad # module_raw mk712 # Uncomment if youre using an IBMArctic II # module_raw arctic2 module pthres pmin=1 module variance delta=30 module dejitter delta=100 module linear

文档评论(0)

almm118 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档