文档详情

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

发布:2017-08-16约4.59千字共5页下载文档
文本预览下载声明
制作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
显示全部
相似文档