Home · All Classes · Annotated · Functions

Compile and Run Example Application

Compile and Build the Example

This section describes how to compile and build the Example application. A chronological list of the commands required is available at: Creating the Example application.

To compile and build the example, follow these steps:

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

Install and Run the Example

Installing onto an SDK requires root privileges which are obtained using a utility such as su, sudo.

To install and run the example follow these steps:

  1. Install the Example using:
        make install
  2. To run the example:

    The application should now be available in the

  3. Applications tab which is visible inside the Qt Virtual Framebuffer window.

Uninstall the Example

To unistall the example requires root privileges which are obtained using a utility such as su, sudo.

The following command is used to uninstall the example:

    make uninstall

Using the Example Program to Make an Application

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.

To make a package suitable for installing on a device ensure the compiler targets the correct CPU family then use the following command:

    make packages


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7