日期:2014-05-16  浏览次数:20849 次

linux-2.6.32在mini2440开发板上移植(22)之qtopia4.4.3手机版移植(english version)

qtopia4.4.3手机版在mini2440上的移植

编者:原来也移植过QT,对这个还是总结了些经验的。因为mini2440开发板自带的是PDA版本的QTOPIA,所以我决定移植一个手机版本试试。为什么选择这个版本的,其实我没有进行特意选择,在百度上搜了下,发下这个版本有人在mini2440上成功移植,也就是说有案列,这样可以参考人家的案例,在出问题时候,解决能快点。因为这个必定没作为项目开发,要是搞了很长一段时间还没搞定,打击自己不说,会花掉大把的时间,影响其他工作。百度文库就有一个文章,我参照来移植的,但是里面还是很多问题。估计原因,可能是这样的,这篇文章的作者可能用的是友善自带的文件系统,而我没有使用这个文件系统,用了我自己移植的文件系统,可以说是纯净的系统,这样可能会在运行时候少很多东西,需要自己添加。另外一点需要注意的是,在配置编译qtopia的时候一定要小心,因为这个一旦出错,重新编译的时间很长很长,所以尽量避免低级错误的出现。

 

SORRY to tell you that ,I have finished only  a little part(above)yestoday night,but today ,I  unfortunate  to find that I can't input anythings with chinese ,I tried my best to repair  the conputer ,but I failed in the last.I want to finish this paper today,so I decide to write in english.oh,my english is very poor,God bless me to finish this smoothly.

 

ONE、prepare the source code and the  development ervironment

1、source code

qt-extended-opensource-src-4.4.3.tar.gz
tslib-1.4.1.tar.bz2
2、development environment:
Fedora10—linux-2.6.27
arm-linux-gcc(FrienflyArm support)

如果只是想移植到开发板看看,可以不装X86版本的,这里我还是安装了。我这里移植时候目录整理的有点乱,但还是按照我的这个顺序来吧。

if you only transplant the qtopia to hte mini2440,you don't need to install the qtopia(x86).

create a new dir /opt/app/phone.

 

TWO、install x86 qtopia phone version

#cd /opt/app/phone

uncompress

#tar -zxvf  qt-extended-opensource-src-4.4.3.tar.gz

change the name

#mv qt-extended-4.4.3 qt-extended-4.3.3-src

#mkdir target

#mkdir build

set  variable environment
[root@localhost qt-extended-4.4.3-src]# export QPEDIR=/opt/app/phone/build
[root@localhost qt-extended-4.4.3-src]# export QTOPIA_DEPOT_PATH=/opt/app/phone/qt-extended-4.4.3-src
[root@localhost qt-extended-4.4.3-src]# echo $QPEDIR
/opt/app/phone/build
[root@localhost qt-extended-4.4.3-src]# echo $QTOPIA_DEPOT_PATH
/opt/app/phone/qt-extended-4.4.3-src

configure

[root@localhost build]# ../qt-extended-4.4.3-src/configure -build-qt -image /opt/app/phone/target/  -prefix /opt/app/phone/target/                      (等几分钟到十几分钟这样子)

compile

[root@localhost build]# bin/qbuild     (note:is not /bin,is the current dir)(about several hours)

isntall:

[root@localhost build]# bin/qbuild image  (need about 10mins depends on your pc)

install SDK: