Qtopia OpenSource 4.2.0 在s3c2410上的移植

Qtopia OpenSource 4.2.0 在s3c2410上的移植(参考修改)

参考的那文章是用nfs挂载启动,我使用的是直接nfs根文件系统的。

看上去没多少差别,但是对偶这菜鸟级的,可折腾了挺久了。

而且自己做一遍总是碰到这样那样的问题。

还算顺利,留个笔记。

参考:http://blog.ifeng.com/article/1659857.html

下面做的前提是已经移植好了触摸屏的驱动和tslib1.3

http://blog.ednchina.com/qiu1123/216948/message.aspx

http://blog.ednchina.com/qiu1123/217785/message.aspx

---------------编译 Qtopia OpenSource 4.2.0 到ARM2410----------
安装目录为:/nfs/opt/qtopia4   (NFS根文件系统启动)
目标目录为:/opt/qtopia4
[root@Linux QT4]# tar -zxvf qtopia-opensource-src-4.2.0.tar.gz 
[root@Linux QT4]# cd qtopia-opensource-4.2.0/
-----------------修改源码包 ------------
[root@Linux qtopia-opensource-4.2.0]# cd src/libraries/qtopiabase/
[root@Linux qtopiabase]# cp custom-linux-cassiopeia-g++.h custom-linux-arm-g++.h
[root@Linux qtopiabase]# cp custom-linux-cassiopeia-g++.cpp custom-linux-arm-g++.cpp
--------------修改3.4.1版的arm编译器---------------
# cd /usr/local/arm/3.4.1/
# vi arm-linux/include/linux/videodev2.h
在其中添加如下内容:
#define V4L2_PIX_FMT_SBGGR8  v4l2_fourcc('B','A','8','1') 
/*  8  BGBG.. GRGR.. */
保存退出。
# vi arm/3.4.1/arm-linux/sys_include/linux/videodev2.h
在其中添加如下内容:
#define V4L2_PIX_FMT_SBGGR8  v4l2_fourcc('B','A','8','1') 
/*  8  BGBG.. GRGR.. */
保存退出。
-------------裁减Qtopia core的库 ---------------
# gedit qtopiacore/qconfig-qpe.h
首先注释掉关于鼠标光标的宏定义,让程序运行时,触摸屏中央有光标出现:
/*
#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
*/
[root@Linux qtopiacore]# cp qconfig-qpe.h qt/src/corelib/global/
-------------注释掉文件里的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
-------------        配置并编译      -------------------------
echo "yes"| ./configure -silent -release -image /nfs/opt/qtopia4 -prefix /opt/qtopia4/ -xplatform linux-arm-g++ -arch arm -no-qvfb -displaysize 240x320 -no-modem -extra-qtopiacore-config "-release -xplatform qws/linux-arm-g++ -embedded arm -opengl -qconfig qpe -qt-sql-sqlite -depths 4,8,16,32 -qt-kbd-usb -no-kbd-tty -no-mouse-linuxtp -qt-mouse-tslib -I/nfs/opt/tslib1.3/include -L/nfs/opt/tslib1.3/lib" 2>../qtopiaconfigureERR.txt

# make 2>../qtopiamakeERR.txt
# make install
-------------      建立时区信息 --------------------
[root@Linux usr]# pwd
/nfs/usr
[root@Linux usr]#mkdir zoneinfo
[root@Linux usr]#cp -a /usr/share/zoneinfo/* zoneinfo/

---------------运行测试-------------------------
建立:test_qtopia.sh

export TS_ROOT=/opt/tslib1.3
export TSLIB_TSEVENTTYPE=H3600
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/tsraw0
export TSLIB_CALIBFILE=$TS_ROOT/etc/pointercal
export TSLIB_CONFFILE=$TS_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TS_ROOT/share/ts/plugins
export QWS_SIZE=240x320
export QWS_MOUSE_PROTO="Tslib:/dev/input/tsraw0"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TS_ROOT/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qtopia4/lib

cd $TS_ROOT/bin
./ts_calibrate

cd /opt/qtopia4/bin

if [ -f "$TSLIB_CALIBFILE" ]; then
./qpe -qws &
else
$TS_ROOT/bin/ts_calibrate
./qpe -qws &
fi

# chmod 777 test_qtopia.sh

终端执行结果:
[root@Qiu /opt]# ls
qtopia4         test_qtopia.sh  tslib1.3
[root@Qiu /opt]# ./test_qtopia.sh
xres = 240, yres = 320
Took 34 samples...
Top left : X =  209 Y =  805
Took 30 samples...
Top right: X =  765 Y =  812
Took 5 samples...
Bot right: X =  751 Y =  172
Took 20 samples...
Bot left : X =  754 Y =  185
Took 11 samples...
Middle: X =  487 Y =  504
-61.636841 0.227446 0.094260
331.440186 0.001923 -0.348227
Calibration constants: -4039432 14905 6177 21721264 126 -22821 65536
sh: missing ]
xres = 240, yres = 320
Took 30 samples...
Top left : X =  235 Y =  819
Took 26 samples...
Top right: X =  768 Y =  815
Took 26 samples...
Bot right: X =  763 Y =  190
Took 13 samples...
Bot left : X =  249 Y =  206
Took 15 samples...
Middle: X =  487 Y =  485
-14.530426 0.267151 0.001686
341.739105 -0.006306 -0.355037
Calibration constants: -952266 17508 110 22396214 -413 -23267 65536
[root@Qiu /opt]# No IRDA devices found!

 

没图贴上啦,手头没东西可以照相的...有机会再贴上来。

我的屏幕是竖屏的,出来的图像不知道为什么有些偏小,不知道哪里还需要设置。字体也偏小。
自己解决啦:

export QWS_DISPLAY="LinuxFb:mmWidth45:mmHeight55:0"

加上这个变量就OK啦。

上几张图,但是用摄像头的效果不好就是了,不知道怎么汉化这个。

做毕业设计的屏没触摸....:(

改了句话让他支持USB鼠标:

export QWS_MOUSE_PROTO=MouseMan:/dev/input/mice

当然前提驱动移植好的情况下。

---------------------------------------------------

---------------------------------------------------

---------------------------------------------------

---------------------------------------------------

参考:

http://blog.ifeng.com/article/1659857.html

系统分类: ARM
用户分类: QT……
标签: Qtopia 2410 QT 移植 QT4
来源: 原创
发表评论 阅读全文(1016) | 回复(12)

0

tslib1.3触摸屏使用过程。

有时候事情就是那么奇怪...

-----------编译tslib-1.3----------
[root@Linux tslib-1.3]# tar jxvf tslib-1.3.tar.bz2
[root@Linux tslib-1.3]# cd tslib-1.3
[root@Linux tslib-1.3]# export CC="arm-linux-gcc"
[root@Linux tslib-1.3]# export CXX= arm-linux-g++
[root@Linux tslib-1.3]# ./autogen.sh
[root@Linux tslib-1.3]# export PLUGIN_DIR=$PWD/plugins
[root@Linux tslib-1.3]# ./configure --prefix=/nfs/opt/tslib1.3 --host=arm-linux --enable-inputapi=yes


tslib解压路径下的plugins路径,此环境变量很重要,没有话编译时会报“only absolute run-path ...”的错误
# make
# make install

修改ts.conf
# cd /mnt/nfs/tslib1.3-install/etc
# vi ts.conf

#module mousebuts
module variance xlimit="50" ylimit="50" pthreshold="3"
module dejitter xdelta="1" ydelta="1" pthreshold="3"
module linear
将第一行的“#”去掉,让触摸屏起作用。

错误:

test.sh内容在最下面。
[root@Qiu tslib1.3]# ./test.sh
Segmentation fault

export TSLIB_CALIBFILE=$V_ROOT/etc/pointercal

我之前是用export TSLIB_CALIBFILE=/etc/pointercal 但是在这个目录我已经有这个文件了,导致上面那个错误,所以改个位置或者删除本身目录下的那个文件都能解决问题。

[root@Qiu tslib1.3]# ./test.sh
xres = 240, yres = 320
卡着不动的问题解决:export TSLIB_TSEVENTTYPE=H3600

之前是用export TSLIB_TSEVENTTYPE=event0

这两个错误网上也看到不少人碰到,希望多大家有帮助。

[root@Qiu tslib1.3]# ./test.sh
xres = 240, yres = 320
Took 3 samples...
Top left : X =  224 Y =  764
Took 4 samples...
Top right: X =  776 Y =  807
Took 8 samples...
Bot right: X =  767 Y =  163
Took 12 samples...
Bot left : X =  228 Y =  155
Took 10 samples...
Middle: X =  501 Y =  489
-7.593536 0.256659 -0.001115
318.554565 0.016561 -0.350761
Calibration constants: -497650 16820 -73 20876792 1085 -22987 65536

附上自己的test.sh

export TS_ROOT=/opt/tslib1.3
export TSLIB_TSEVENTTYPE=H3600
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/tsraw0
export TSLIB_CALIBFILE=$TS_ROOT/etc/pointercal
export TSLIB_CONFFILE=$TS_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TS_ROOT/share/ts/plugins
export QWS_SIZE=240x320
export QWS_MOUSE_PROTO="Tslib:/dev/input/tsraw0"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TS_ROOT/lib
cd $TS_ROOT/bin
./ts_calibrate

 

真不容易啊,看了别人的东西,别人的问题不是自己的问题,学会自己处理问题才是正道啊。

系统分类: ARM
用户分类: QT……
标签: tslib 触摸屏 qtopia qt linux
来源: 原创
发表评论 阅读全文(579) | 回复(4)

0

经过N次失败终以看到那qtopia phone的界面!!

 

虽然还有点问题,但是总算有个样子,差点放弃了。泪T_T。

等全部搞定再整理下移植过程。

 

 

系统分类: ARM
用户分类: QT……
标签: qtopia
来源: 原创
发表评论 阅读全文(241) | 回复(3)

0

arm上的qtopia的qpe出现喽……

 

[root@Qiu /]# qtopia
Create pluginlibman in libqpe
Use QPEApplication's PluginLibraryManager
QMemoryFile::QMemoryFile("/opt/qtopia/etc/dict/dawg")
Created QMemoryfile for /opt/qtopia/etc/dict/dawg with a size of 189396
inserting Documents at -1
could not register server
found obex lib
inserting Applications at 0
inserting Games at 1
inserting Settings at 2
QGDict::hashKeyString: Invalid null key
addAppLnk: No view for type (null). Can't add app (null)!
Create pluginlibman in libqpe
Use QPEApplication's PluginLibraryManager
QuickLauncher running
Registered QPE/QuickLauncher-777

 

不知道还有没有问题,但是现在我自己编译的内核由于触摸屏的驱动没编译进去,下午再搞定他。

 

还是友善之臂的包!

先休息休息再整理回忆下步骤……快被他整死了!

 

系统分类: ARM
用户分类: QT……
标签: qt qtopia arm 2410 qpe
来源: 原创
发表评论 阅读全文(448) | 回复(0)

0

QT2的qvfb qpe也出来了。

开两台虚拟机在编译,卡死了…………

#tar xvzf x86-qtopia.tgz
/etc/ld.so.conf 修改后的ld.so.conf 文件内容如下:
/s3c2410_linux/x86-qtopia/qt/lib
/s3c2410_linux/x86-qtopia/qtopia/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/mysql

#cd x86-qtopia
#./build-all
#./konq_to_qtopia
#ldconfig
在PC 上模拟运行Qtopia
#. set-env ;注意,中间有个空格,必须要有才能执行有效!
#qvfb&
#qpe
OK啦………………
2.3 编译Hello, World 示例
#cd x86-qtopia/hello
#make
将在x86-qtopia/qtopia/bin 目录下生成hello 可执
2.4 单独运行Hello, World
#qvfb -width 640 -height 480 &
#hello -qws
2.5 在Qtopia 中运行Hello,World
#cd hello
#cp hello.desktop x86-qtopia/qtopia/apps/Applications
#qvfb -width 640 -height 480 &
#qpe
2.5 在Qtopia 中运行Hello,World
#cd hello
#cp hello.desktop x86-qtopia/qtopia/apps/Applications
#qvfb -width 640 -height 480 &
#qpe

完全是友善之臂的mini2440内容,用的包也是他们的,方便啊,但是我之前用的不是redhat9,一直编译不过去。刚好以前有装个redhat9,就试试了,就可以了,友善之臂的做的真的不错哦。

系统分类: ARM
用户分类: QT……
标签: qt qtopia qt/e arm qpe
来源: 整理
发表评论 阅读全文(323) | 回复(0)

0

qtopia-core和qt-x11 编译x86 qvfb

主机编译调试环境的建立过程
(1) 安装QT4:
# tar –zxvf qt-x11-opensource-src-4.2.2.tar.gz
# cd qt-x11-opensource-src-4.2.2/
# export QTDIR=$PWD /将QTDIR设置到当前目录
# export PATH=$QTDIR/bin:$PATH
# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
(在命令行下输入:#env检查以上环境变量是否设置正确后再进行下一步)
进行编译,依次输入以下命令:
# ./configure
# yes
# gmake
# gmake install
# cd tools/qvfb
# make
至此,QT4已安装完毕,其主要功能为提供虚拟帧缓冲(qvfb)
(2) 安装Qtopia Core 4
将安装文件复制到目录/opt下解压
# tar –zxvf qtopia-core-opensource-src-4.2.2
# export QTDIR=$PWD /将QTDIR设置到当前目录
# export PATH=$QTDIR/bin:$PATH
# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
(在命令行下输入:#env检查以上环境变量是否设置正确后再进行下一步)
进行编译,依次输入以下命令:
# ./configure –embedded x86 –depths 4,8,16,24,32 –qconfig qpe –qvfb -qt-libjpeg -qt-libpng -qt-gif
# gmake
# gmake install
至此,QTopia也已安装完毕,其主要的功能为提供编译及模拟环境
安装完后,会在目录/usr/local/Trolltech/下面各生成一个目录:QT-4.2.2和Qtopia-4.2.2,QTopia 的库文件就在其子目录lib中
2.打开linux终端,并在终端依次输入以下命令:
# export QTDIR="/usr/local/Trolltech/Qtopia-4".2.2 /将QTDIR设置到QTopia目录
# export PATH=$QTDIR/bin:$PATH
# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

# vi $HOME/.bash_profile
    添加
export PATH="/usr/local/Trolltech/QtopiaCore-4.2.2/bin:/usr/local/Trolltech/Qt-4.2.2/bin:$PATH
    后面的是Qt for X11的环境变量设置,执行使立即生效
# source $HOME/.bash_profile
# echo $PATH
# which qmake //可查看已经添加成功

由于编译实在慢哪...就自己写了个build.sh让它自己编译到完,跑去吃饭了...

内容如下:

#!/bin/bash

tar -zxvf qt-x11-opensource-src-4.2.2.tar.gz
cd qt-x11-opensource-src-4.2.2/
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
echo yes | ./configure
gmake
gmake install
cd tools/qvfb
make
tar -zxvf qtopia-core-opensource-src-4.2.2.tar.gz
cd /my2410/QT/qtopia-core-opensource-src-4.2.2
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
echo yes | ./configure -embedded x86 -depths 4,8,16,32 -qconfig qpe -qvfb
gmake
gmake install

export QTDIR="/usr/local/Trolltech/Qtopia-4".2.2
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

编译完竟然没发现qpe,只有qvfb和qtdemo都可运行。不知道为何,哪位高人帮忙解释下....

[root@Linux /]# cd usr/local/Trolltech/Qt-4.2.2/bin
[root@Linux bin]# ls
assistant        linguist.debug  moc              qt3to4          qtdemo.debug  uic3
assistant.debug  lrelease        moc.debug        qt3to4.debug    rcc           uic3.debug
designer         lrelease.debug  pixeltool        qtconfig        rcc.debug     uic.debug
designer.debug   lupdate         pixeltool.debug  qtconfig.debug  templates
linguist         lupdate.debug   qmake            qtdemo          uic
[root@Linux bin]# cd /usr/local/Trolltech/QtopiaCore-4.2.2/bin
[root@Linux bin]# ls
assistant        linguist.debug  moc              qt3to4        rcc.debug
assistant.debug  lrelease        moc.debug        qt3to4.debug  uic
designer         lrelease.debug  pixeltool        qtdemo        uic3
designer.debug   lupdate         pixeltool.debug  qtdemo.debug  uic3.debug
linguist         lupdate.debug   qmake            rcc           uic.debug
[root@Linux bin]# cd /my2410/QT/qtopia-core-opensource-src-4.2.2/
[root@Linux qtopia-core-opensource-src-4.2.2]# cd bin
[root@Linux bin]# ls
assistant        linguist        lupdate.debug    qmake         rcc        uic3.debug
assistant.debug  linguist.debug  moc              qt3to4        rcc.debug  uic.debug
designer         lrelease        moc.debug        qt3to4.debug  syncqt
designer.debug   lrelease.debug  pixeltool        qtdemo        uic
findtr           lupdate         pixeltool.debug  qtdemo.debug  uic3
[root@Linux bin]# cd /my2410/QT/qt-x11-opensource-src-4.2.2/bin
[root@Linux bin]# ls
assistant        linguist.debug  moc.debug        qtconfig        rcc         uic.debug
assistant.debug  lrelease        pixeltool        qtconfig.debug  rcc.debug
designer         lrelease.debug  pixeltool.debug  qtdemo          syncqt
designer.debug   lupdate         qmake            qtdemo.debug    uic
findtr           lupdate.debug   qt3to4           qvfb            uic3
linguist         moc             qt3to4.debug     qvfb.debug      uic3.debug
[root@Linux bin]#

 

qtopia-core只是一个环境?好像这样的。

qt-x11 用来产生qvfb,就这样的。

那要移植那PDA的界面就只能用qtopia-opensource了?

暂时是这么理解的。毕竟我qtopia-core的一个简单的程序已经跑过是可以的,但是实在没找到QPE界面。

现在就一个事情了。

 

参考:
http://hi.baidu.com/changfa1999/blog/item/d91dde1194426a7acb80c421.html

系统分类: ARM
用户分类: QT……
标签: qt qtopia-core qt-x11qtopia
来源: 整理
发表评论 阅读全文(602) | 回复(0)

0

qtopia-opensource-src-4.2.0在linux编译出来,模拟界面出来了。

tar zxvf qtopia-opensource-src-4.2.0.tar.gz
cd qtopia-opensource-src-4.2.0
echo "yes"|./configure
make
make install
./scripts/runqvfb

./scripts/runqpe

./scripts/runqtopia

 

系统分类: ARM
用户分类: QT……
标签: qt qfvb qpe
来源: 原创
发表评论 阅读全文(274) | 回复(0)

0

只是知道什么是qvfb

1 关于QVFB

        Qvfb 是为qtopia 做的一个虚拟frambuffer的应用程序,它的最终目的就是把qtopia 应用程序运行的的结果显示在qvfb 上(实际中是要通过linux的frambuffer驱动显示在lcd屏上的),并提供键盘、鼠标的外设仿真。从而方便研发阶段,用户在pc端就可以完成qtopia 的调试工作,极大的提高了工作效率。
 

2 QVFB 概述

       Qvfb 本身其实也是一个应用程序,qtopia 也是一个应用程序,二者通过既定协议完成通信,如下图示。
更直观一点,如下图示。
Qpe和qvfb 之间的通讯是基于既定的协议进行的,qpe和qvfb 独立运行,它们处于不同的进程,它们之间以“共享内存”的方式完成通讯。
 
 
出处: http://blog.chinaunix.net/u2/70379/showart_1079114.html
系统分类: 嵌入式
用户分类: QT……
标签: qvfb qt
来源: 无分类
发表评论 阅读全文(364) | 回复(0)

0

Qt/嵌入式的虚拟帧缓冲

虚拟帧缓冲允许在你的桌面机器上开发Qt/嵌入式程序,而不用在命令台和X11之间来回切换。

The virtual framebuffer is located in $QTDIR/tools/qvfb .

 

使用虚拟帧缓冲

 

  1. 确认$QTDIR/src/tools/qconfig.h 中的QT_NO_QWS_VFB是没有 被定义的,并且编译Qt/Embedded库。
  2. qvfb 作为一个普通的Qt/X11应用程序来编译并且运行它。不要 把它作为一个Qt/嵌入式应用程序来编译。
  3. 启动一个Qt/嵌入式主程序(比如,使用QApplication::GuiServer标志来构造一个QApplication 或者在命令行下使用-qws参数)。你将会需要指定你所要使用虚拟帧缓冲驱动的服务器,例如:
        widgets -qws -display QVFb:0
  4. 你也可以设置QWS_DISPLAY 环境变量为QVFb:0

qvfb 支持下列命令行参数:

 

  • -width width

    虚拟帧缓冲的宽度(默认:240)。

  • -height height

    虚拟帧缓冲的高度(默认:320)。

  • -depth depth

    虚拟帧缓冲的色深(1、8或者32,默认:8)。

  • -nocursor

    在帧缓冲窗口不显示X11光标。

  • -qwsdisplay :id

    提供的Qt/嵌入式显示id(默认:0)。

 

虚拟帧缓冲设计

虚拟帧缓冲使用了共享存储区域(虚拟的帧缓冲)来模拟帧缓冲并且在一个窗口中(qvfb )模拟一个应用来显示帧缓冲。显示的区域被周期性的改变和更新,所以你会看到帧缓冲的不连续的快照,而不是每一个单独的绘画操作。因为这个原因的绘画问题,比如闪烁,知道程序在使用真正的帧缓冲而运行的时候就不会再出现了。

目标刷新速度可以通过View|Refresh Rate 菜单项来设置。这将会倒置qvfb 更加频繁地检查要被刷新的区域。速度仅仅是一个目标。如果一个小的绘画操作完成了,帧缓冲将不会在绘画事件之间显示任何更新。如果一个应用程序正在显示一个动画,更新将会更频繁,并且应用程序和qvfb 将会争夺处理器时间。

鼠标和键盘事件通过命名管道传递给Qt/嵌入式主程序处理。

虚拟帧缓冲只是一个开发工具。在虚拟帧缓冲设计中没有考虑任何安全问题。在产品环境中应该避免这个问题,QT_NO_QWS_VFB在产品库中应该是被定义的

 

出处:http://www.qiliang.net/qt/emb-qvfb.html

系统分类: 嵌入式
用户分类: QT……
标签: qvfb qt
来源: 无分类
发表评论 阅读全文(260) | 回复(0)

1

Qt/x11 Qt/E Qtopia 关系分析

http://hi.baidu.com/bbps/blog/item/b2822f3f5f9773eb55e72340.html

 

这三个都是奇趣公司(Trolltech)的产品,现在发展到版本4。而我们现在分析的也是版本4,网上有一些文章,都是基于以前的版本的,有一些过时,再不也适用于现在的版本4了,因为版本4有了很大的改进。

      首先说一下Qt/x11,在这里我只分析这个版本,另外还有一些别的,它们是用在别的平台上的,而现在我们只关心linux平台下的。

      Qt/x11,这个包,里边提供的是QT的库,和一些工具,像qmake,moc等,我们可以用gcc3.4.1版本来对它进行编译。
      我们编写的QT的应用程序也要用它来编译。QT本身并不提供编译工具。

      QT/E是为嵌入式开发提供的库,用系统提供的g++来编译,则可以运行在PC机平台上,并提供一个qvfb的工具,用来对运行仿真,这样可以加快开发速度。
      我们用交叉编译环境来编译QT/E,则产生的库可以进行在嵌入式设备上,当在PC平台编好的程序,用交叉编译环境编译后就可以入到嵌入式设备上来运行,它们运行时用到的库,就是由QT/E提供的。

      qtopia则是一个基于QT库的一个桌面环境,现在的版本4的源码包中以经有了QT库的源码,当你对Qtopia进行编译的时候,同时也会生成QT库,所以在现在的版本4里,这三个包,是相互独立的,并不存在依赖关系。

 

自己再有点看法:

Tmake 工具包: tmake-1.11.tar.gz

用于生成应用工程的 Makefile 文件;

? Qt/Embeded 安装包: qt-embeded-2.3.7.tar.gz

用于 Qt/Embeded 的安装;

? Qt X11 版安装包: qt-x11-2.3.2.tar.gz

用于产生一些必要的工具;

? Qtopia 安装包: qtopia-free-1.7.0.tar.gz

提供手持设备的图形界面平台。

? build setenv 两个脚本

分别是编译脚本和设置路径的脚本。
     只要对它们进行适当的配置,它们完全可以独立的完成我们需要的工作。

 

最初QtopiaQt/E 是两种不同的程序,但从版本4.1 以后,将Qt/E 并入了Qtopia ,改称为Qtopia Core

 

现在关系很白了,省的看那么文章郁闷着

系统分类: ARM
用户分类: QT……
标签: Qt/x11 Qt/E Qtopia
来源: 整理
发表评论 阅读全文(290) | 回复(0)

你可能感兴趣的:(VC)