| Home · All Classes · Grouped Classes · Annotated · Functions |
This section describes how to compile and build the Example application. A list of the commands used to create the Example application sources is available at: Creating the Example application.
To compile and build the example, follow these steps:
cd somewhere
cp -r $QTOPIA_DEPOT_PATH/examples/application .
chmod +w application/*
cd application
$QPEDIR/bin/qtopiamake
make
For footprint optimization purposes Qtopia excludes various Qt classes from its build. This is achieved by using Qtopia Core's Feature system which allows the fine-tuning of Qt for embedded systems. As a consequence certain Qt classes cannot be used by Qtopia applications. For more details on which components have been excluded from a standard Qtopia build refer to Integration guide. However there is the possibility to add already excluded classes back into the Qtopia build by editing $QPEDIR/qtopiacore/qconfig-qpe.h or using Qt's qconfig tool which is provided as part of Qt's Feature system.
There are two ways that you can install the example application, or indeed any Qtopia application that you create:
To install and run the example against an existing Qtopia build image, follow these steps:
make install
$QPEDIR/bin/runqtopia
The application should now be available in the Applications menu under Qtopia's application launcher.
To make a package suitable for installing via the Software Packages application, use the following command:
make packages
You will then need to follow the instructions on making the package available for download.
To make an application using the example program as a model:
Note: The make qmake step is not always required as the Makefile will automatically be re-built when the .pro file has changed.
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.3.0 |