Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

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. Build the Example:
        qbuild

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 Qt Extended image. The second is to create a package and install it via the Package Manager.

Installing directly to the image requires that Qt Extended 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:

    qbuild image

You can now start Qt Extended via the runqtopia script. The example application can be found in the Applications menu.

Install via a package

To create a package, simply run:

    qbuild 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 © 2009 Trolltech Trademarks
Qt Extended 4.4.3