Home · All Classes · Grouped Classes · Annotated · Functions

Compile and Run the Example Application

Compile the Example Application

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:

  1. Create a copy of the example:
        cd somewhere
        cp -r $QTOPIA_DEPOT_PATH/examples/application .
        chmod +w application/*
        cd application
  2. Generate a Makefile:
  3. Build the Example:

Run the Example Application

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.

Install directly to the image

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.

Install via a package

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 Nokia Trademarks
Qtopia 4.3.3