2007年1月11日 星期四

Qtopia phone edition 4.1.4

#Qtopia phone

cd qtopia-phone-4.1.4
./configure -edition phone (-prefix 改變安裝位置,例如 -prefix /opt/Qtopia)
make
make install

所有的執行時所需要的檔案會放在image/opt/Qtopia/

export PATH=$PATH:$PWD/image/opt/Qtopia/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/image/opt/Qtopia/lib
export QPEHOME=$PWD/image/opt/Qtopia

bin/startdemo


#QT/Embedded now rename to Qtopia Core

#Cross compile Qtopia Core for ARM
cd $QTOPIA
cd qtopiacore
./configure -embedded arm -no-qt3support
gmake
make install

#It will install to /usr/local/Trolltech/QtopiaCore-4.1.12-arm/

cp -a mkspecs /usr/local/Trolltech/QtopiaCore-4.1.12-arm/

#Ok, now we finish it
#Compile QTE application

export QTDIR=/home/gigijoe/MIP200/qtopia-phone-4.1.4/qtopiacore/qt
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

cd qt4_example

qmake -project

vi qt4_example.pro
#Add CONFIG += release
qmake -makefile -unix -o Makefile -spec qws/linux-arm-g++




沒有留言:

張貼留言