免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 733 | 回复: 0
打印 上一主题 下一主题

未完待续 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-20 10:20 |只看该作者 |倒序浏览

                               

  Normal
  0
  
  7.8 磅
  0
  2
  
  false
  false
  false
  
   
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4



/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:普通表格;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
编译tslib-1.3.tar.bz2
#tar jxvf tslib-1.3.tar.bz2
#cd tslib-1.3
#export CC=arm-linux-gcc
#export CXX= arm-linux-g++
#./autogen.sh
#./configure --prefix=/mnt/nfs/tslib1.3-install --host=arm-linux
( 配置目标平台为ARM-linux,在主机上的安装目录为/mnt/nfs/tslib1.3-install )
#make
#make install

/mnt/disk2/busybox/mini/此目录是开发板根文件目录
/mnt/disk2/gui/install    放置源文件
/mnt/disk2/gui/build      放置安装文件
修改时区信息
(注意,此设置是放在开放板根文件目录,不是本机目录,可以不用设置,保持默认即可)
#cd /mnt/disk2/gui/install进入安装目录
#vi
src/libraries/qtopia/qtimezone.cpp
将114行的 /usr/share/zoneinfo/ 改为/mnt/nfs/gui/bulid/zoneinfo/
,保存退出。
#vi
src/settings/systemtime/settime.cpp    未找到此文件新版本中
将318行的 /usr/share/zoneinfo/ 改为/mnt/nfs/gui/bulid/zoneinfo/
,保存退出。

裁减Qtopia core的库
首先注释掉关于鼠标光标的宏定义,让程序运行时,触摸屏中央有光标出现:
# vi
qtopiacore/qconfig-qpe.h
// Qtopia Core
/*
#ifndef
QT_NO_QWS_CURSOR
#define
QT_NO_QWS_CURSOR
#endif
*/
/*
#ifndef
QT_NO_QWS_MOUSE
#define
QT_NO_QWS_MOUSE
#endif
#ifndef
QT_NO_QWS_MOUSE_AUTO
#define
QT_NO_QWS_MOUSE_AUTO
#endif
*/

其它宏定义根据需要进行注释。
保存后将qconfig-qpe.h拷贝到global目录。
#cp
qtopiacore/qconfig-qpe.h qtopiacore/qt/src/corelib/global/qconfig-qpe.h

5)注释掉其他文件里的QT_NO_QWS_CURSOR的定义
# vi
qtopiacore/qt/src/corelib/global/qfeatures.h
注释掉如下内容:
/*
#if
!defined(QT_NO_QWS_CURSOR) && (defined(QT_NO_CURSOR))
#define
QT_NO_QWS_CURSOR
#endif
*/
保存退出。
# vi
qtopiacore/qt/src/corelib/global/qglobal.h
注释掉以下内容:
//# define
QT_NO_QWS_CURSOR

开始配置-编译-安装
../install/configure -silent -release
-image /qt -prefix /qt -xplatform linux-arm-g++ -arch arm -no-qvfb
-displaysize 320x240 -no-modem
-extra-qtopiacore-config "-release -xplatform qws/linux-arm-g++ -embedded arm
-qconfig qpe -qt-sql-sqlite
-depths 4,8,16,32 -qt-kbd-usb -no-kbd-tty -no-mouse-linuxtp"
make
make install

建立时区信息
# cd $QTOPIATARG
# mkdir zoneinfo
# cp -a
/usr/share/zoneinfo/* /mnt/disk2/busybox/mini/usr/share/zoneinfo/
复制/usr/share/zoneinfo 下的目录到/mnt/disk2/busybox/mini/usr/share/zoneinfo/  
移植成果演示
在这里,我们以Qtopia自带的例子程序为例,来演示应用程序运行步骤。首先在/mnt/disk2/busybox/mini目录下用VI编辑器建立qtopiat.sh文件:
#!/bin/sh
export QTDIR=/qt
export QPEDIR=/qt
export KDEDIR=/qt
export QWS_KEYBOARD="USB:/dev/input/event1"
export QWS_MOUSE_PROTO="LinuxTP:/dev/h3600_tsraw"
export PATH=$QTDIR/bin:$PATH
export QWS_DISPLAY="LinuxFb:mmWidth35:mmHeight45:0"
export QWS_SIZE=320x240
export LD_LIBRARY_PATH=$PATH:$QTDIR/lib:$QPEDIR/lib
export HOME=/root
保存退出,修改用户使用权限:
# chmod 777
qtopiat.sh

在终端里执行:
# ./qtopiat.sh

               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78300/showart_1869629.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP