Porting QT/E & QPE to VT8420

 

HTML Tags and JavaScript tutorial



Porting QT/E & QPE to VT8420





Cross compiling  QT/E&QPE
    My target board is VT8420,arm9 core,compiler version is 3.3.2.soft version is : qt-x11-2.3.2 qte-2.3.7 qtopia-1.7.0 e2fsprogs-1.35 tmake-1.13 .System is redhat9   2.4.18-20
sources:
tar jxvf e2fsprogs.tar.bz2
tar zxvf tmake-1.13.tar.gz
tar jxvf qte.tar.bz2 (2.3.7)
tar jxvf qtopia.tar.bz2(1.7.0)
tar zxvf qt-x11.tar.gz(2.3.2)
tar zxfv jpegsrc.v6.tar.gz
unpack sources in your working dir;
working dir:/root/VT8420
export CROSSDIR=/root/VT8420
###########--------build jpeg lib-------##############
cross compiling jpegsrc
./configure --enable-shared
Make        //get the libtools,then
./configure --enable-shared
modify the makefile
prefix=../qt-2.3.7
CC=zac-linux-gcc
AR=zac-linux-ar rc
AR2=zac-linux-ranlib
cp jconfig.doc jconfig.h
make
make install
then copy libjpeg.so to /zactools/..../lib/
###########--------build uuid lib-------##############
cd ../e2fsprogs
./configure
--prefix=$CROSSDIR
--enable-elf-shlibs
--build=i386-linux
--host=arm-unknown-linux
--target=arm-unknown-linux
--with-cc=zac-linux-gcc
--with-linker=zac-linux-ld
make
cd e2fsprogs/lib
mkdir $CROSSDIR/include/uuid
cp *.h $CROSSDIR/include/uuid
cp libuuid.* to  /zactools/..../lib/
###########--------build qt-X11-------##############
cd qt-x11
export QTDIR=$PWD
echo yes | ./configure -static -no-xft -no-opengl -no-sm
make
mkdir ../qt-2.3.7/bin
cp bin/uic ../qt-2.3.7/bin/
cd ..
###########----------------qte.sh------------###################
#########------set envionment variables-----###################
add a script qte.sh with
export QTDIR=$PWD/qt-2.3.7
export QPEDIR=$PWD/qtopia-1.7.0
export TMAKEDIR=$PWD/tmake-1.13
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-arm-g++   
###here must modify tmake/lib/qws/linux-arm-g++-*  TMAKE_LINKER = zac-linux-g++######
export PATH=$QTDIR/bin:$QPEDIR/bin:$TMAKEDIR/bin:$PATH
run in bash:source qte.sh
###########--------build qt/embedded-------##############
cd qt
cp ../qtopia/src/qt/qconfig-qpe.h src/tools/
(echo yes;echo no) | ./configure -xplatform linux-arm-g++ -qconfig qpe -depths 4,8,16,24,32 -system-jpeg -gif -no-xft -no-opengl
######Note: here "-xplatform linux-arm-g++" must modify the ./src/Makefile,convert the arm to zac .
make sub-src
cd ..
ps: here has some err,copy the header ( jconfig.h jmorecfg.h jpeglib.h asm/page.h ) from /usr/include to qt/include.
###########--------build qtopia-------##############
cd $QPEDIR/src/libraries/qtopia
cp custom-linux-ipaq-g++.cpp custom-linux-mips-g++.cpp
cp custom-linux-ipaq-g++.h custom-linux-mips-g++.h
cd ../../
./configure -xplatform linux-arm-g++
make
cd ../../
ps: make sure the moc you used is qt/bin/moc!!!
#############write by hhq 2006.7.19####################


阅读更多
上一篇Spring轮子血案的插曲
下一篇通过ADO.NET存取文件
想对作者说点什么? 我来说一句

i.MX-6-BSP-Porting-Guide.pdf

2016年12月10日 738KB 下载

MTP Porting Kit 12.0(包含32位和64位

2014年11月22日 5.3MB 下载

没有更多推荐了,返回首页

关闭
关闭