Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

DevKit8000 QT

From eLinux.org
Jump to: navigation, search


在DevKit8000上移植QT的方法

环境

硬件

板子名称:DevKit8000

  • 硬件特性

1)cpu:omap3530
2)ram:128M
3)flash:128M

  • 具体特性

供应商:天漠科技 http://www.timll.com
DevKit8000 技术WIKI:http://elinux.org/DevKit8000
DevKit8000 产品网页:http://www.timll.com/products/Devkit8000.asp

软件开发环境

1)ubuntu 8.04
2)qtopia-core-opensource-src-4.3.5(http://www.qtcn.org/bbs/read.php?tid=3144&page=1&fpage=1)
3)arm-none-linux-gnueabi-2007q3

编译

准备

  1. tar xvf qtopia-core-opensource-src-4.3.5.tar.gz
  2. cd qtopia-core-opensource-src-4.3.5

修改mkspecs/qws/linux-arm-g++/qmake.conf文件,替换所有arm-linux为arm-none-linux-gnueabi

配置

  1. ./configure -embedded arm -xplatform qws/linux-arm-g++ -depths 4,8,16,32 -no-qt3support -prefix ${HOME}/work/qt/target -fast -qt-sql-sqlite -no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -optimized-qmake -no-nis -no-separate-debug-info -no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb -qt-kbd-usb -no-kbd-qvfb -no-mouse-qvfb -no-mouse-linuxtp -qt-mouse-pc -qt-mouse-tslib

编译&安装

  1. make
  2. make install

测试

准备

1)拷贝${HOME}/work/qt/target/lib目录到开发板下/opt/qtopia目录下
2)删掉/opt/qtopia/lib/fonts目录下多余的字体文件(只留下cour.pfa 和 cursor.pfa)
3)设置环境变量:
export QTOPIA=/opt/qtopia
export LD_LIBRARY_PATH=$QTOPIA/lib:$LD_LIBRARY_PATH
export PATH=$QTOPIA/bin:$PATH
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
export QWS_DISPLAY="LinuxFb:mmWidth100:mmHeight130:0"
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_PLUGINDIR=/lib/ts

运行

拷贝${HOME}/work/qt/target/examples/tutorial/t1/t1到开发板下/opt/qtopia/bin目录下

  1. /opt/qtopia/bin/t1 -qws(显示 helloworld界面)


编译例程

1. 拷贝 target/bin/qmake 到/bin目录下,并改名为 qmake-arm
2.在target/examples/tutorial新建目录test,然后拷贝cpp程序到此目录下
3.进入此目录,
cd target/examples/tutorial/test
4. 执行指令(注意要设置交叉编译工具,我们提供的那个)
$ qmake-arm -project
$ qmake-arm
$ make