Qtopia Home - Classes - Hierachy - Annotated - Functions - Qt Embedded |
|
Building Qtopia applications on a target system requires environment variables such as QTDIR to be set. If there is a requirement to use different versions of Qt, the environment variables point to the relevant library configurations.
One method to set the environment variables is to store the settings in a file and enable them by running the source command.
For example, when using Linux (default bash shell) the file could contain the following values:
$ cat qtopia export QPEDIR=/opt/Qtopia export QTDIR=/opt/Qtopia export PATH=$QTDIR/bin:$PATH export TMAKEPATH=/opt/Qtopia/tmake/lib/qws/linux-generic-g++ export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
The environment variables can be enabled quickly via an alias in the .bashrc file.
The following example assumes that the environment settings file is placed in a bin directory within the home directory:
alias qtopia='source ~/bin/qtopia'
Building a complete Qtopia system requires three separate configuration systems as follows:
Prior to building Qtopia the configuration files must be setup.
The following is an example to create a "myarm" configuration:
cp -r $TMAKEDIR/lib/qws/linux-arm-g++ $TMAKEDIR/lib/qws/linux-myarm-g++ cp -r $QTEDIR/configs/linux-arm-g++-shared $QTEDIR/configs/linux-myarm-g++-shared cp -r $QPEDIR/mkspecs/qws/linux-arm-g++ $QPEDIR/mkspecs/qws/linux-myarm-g++
Open $QTEDIR/configs/linux-myarm-g++-shared and ensure that the utilities and flags are suitable for the system. For example:
#ifdef MYARM
Open $TMAKEDIR/lib/qws/linux-myarm-g++/tmake.conf and ensure that the utilities and flags
are suitable for the system. For example:
#ifdef MYARM
Open $QPEDIR/mkspecs/qws/linux-myarm-g++/qmake.conf and ensure that the utilities and flags
are suitable for the system. For example:
#ifdef MYARM
Note: The qmake.conf file must have the following code at the bottom of the file:
exists($$(QPEDIR)/src/config.pri):include($$(QPEDIR)/src/config.pri)
Qtopia 1.9.x and Qtopia 2.0.0 - 2.1.0 have the following character requirements:
QRegExp may cause problems.
Note: A patch to remove this limitation exists for Qtopia 2.1.0 and Qtopia 2.1.1 and above do not have this limitation.
The Qtopia buildsystem does not support spaces in directory names. This limitation will not fixed in the near future.
Please ensure the following:
| Copyright © 2005 Trolltech | Trademarks | Qtopia version 2.1.2
|