Qtopia Home - Classes - Annotated - Functions - Qt Embedded |
|
This document is for System Itegrators or those that need to install Qtopia onto a new device
Getting Qtopia running on target device involves:
cp -r $TMAKEDIR/lib/qws/linux-arm-g++ $TMAKEDIR/lib/qws/linux-myarm-g++ cp -r $QTDIR/configs/linux-arm-g++-shared $QTDIR/configs/linux-myarm-g++-shared cp -r $QPEDIR/mkspecs/qws/linux-arm-g++ $QPEDIR/mkspecs/qws/linux-myarm-g++
Note: Based on the example show setting $TMAKEPATH to use your newly created tmake configuration before configuring Qte or Qtopia for cross compiling is recommended eg:
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-myarm-g++
cp $QPEDIR/src/libraries/qtopia/custom-linux-ipaq-g++.cpp $QPEDIR/src/libraries/qtopia/custom-linux-myarm-g++.cpp cp $QPEDIR/src/libraries/qtopia/custom-linux-ipaq-g++.h $QPEDIR/src/libraries/qtopia/custom-linux-myarm-g++.h
Note: keyboard scancode customization via Qtopia is only available in a release later than Qtopia Phone beta 1 with a Qte greater than the version 2.3.8. For earlier Qtopia Phone releases customize $QTDIR/src/kernel/qkeyboard_qws.cpp to change the Qt keycode to scancode mapping.
-xplatform qws/linux-myarm-g++as parameters to Qte's configure.
Hint: It is a good idea to have Qte for x86 and Qte for target device in different directories
| Macros defined at Qte compile time | Mouse device used |
|---|---|
| QT_QWS_IPAQ and QT_QWS_IPAQ_RAW | /dev/h3600_tsraw |
| QT_QWS_IPAQ | /dev/h3600_ts |
| QT_QWS_SL5XXX | /dev/ts |
xplatform qws/linux-myarm-g++as parameters to Qtopia's configure.
Hint: When cross compiling it is preferable to use different directories to keep the x86 and cross complied files.
cd $QPEDIR/image
tar -cf $HOME/qtopiaimage.tar $QPEDIR/image
mount -t nfs myhost:/home/myuser /mnt/tmp
cd /
tar xf /mnt/tmp/qtopiaimage.tar
export QPEDIR=/opt/Qtopia
export QTDIR=$QPEDIR
export QTEDIR=$QTDIR
export PATH=$QPEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
textedit -qws
qpe
| Copyright © 2001-2004 Trolltech | Trademarks | Qtopia version 2.0.1
|