| Home · All Classes · Grouped Classes · Annotated · Functions |
This section describes how to compile the example application. A list of the commands used to create the example application sources is available at: Tutorial: Creating a New Application.
To compile the example, follow these steps:
cd somewhere
cp -r $QTOPIA_DEPOT_PATH/examples/application .
chmod +w application/*
cd application
$QPEDIR/bin/qtopiamake
make
Before you can run the example application you must install it. There are two ways to achieve this. The first is to install it directly into a Qtopia image. The second is to create a package and install it via the Package Manager.
Installing directly to the image requires that Qtopia is not running. It is convenient when developing to install in this way because a single command can be used to install the application. This method also allows more flexibility than installing a package but this method does not support uninstalling. See Package Limitations for more information.
To install directly to the image, simply run:
make install
You can now start Qtopia via the runqtopia script. The example application can be found in the Applications menu.
To create a package, simply run:
make packages
This will tell you what packages were created.
Creating packages...
Created /home/user/build/qtopia/example_app/pkg/example_1.0.0-1_i386.qpk
You will now need to follow the instructions in Qpk Packages to install the package.
| Copyright © 2008 Trolltech | Trademarks | Qtopia 4.3.2 |