Home · All Classes · Grouped Classes · Annotated · Functions

Tutorial: Creating an Application

Install and Run the Example Application

This is the chronological list of commands required to install and run the application called Example, provided in /opt/Qtopia/examples/application using an X86 configuration and an SDK package. The application will be built in the directory /home/apptest.

  1. Set up the environment:
        cd /home/apptest
        export QPEDIR=/opt/Qtopia
  2. Copy the application files to /home/apptest and set file permissions:
        cp -r $QPEDIR/examples/application .
        chmod +w application/*
  3. Move to the application directory and build the application:
        cd application
        $QPEDIR/bin/qtopiamake
        make
        su root
        make install
        exit
  4. Move to the bin directory and start the desktop display:
        cd $QPEDIR/bin
        ./runqtopia

The application named Example should appear in the applications list on the desktop display.

Create Your Own Application

To create your own application using existing sources it is recommended to follow these steps:

  1. Create a .pro file for the application

    To create the initial .pro file use the command:

        $QPEDIR/bin/qtopiamake -project

    The .pro project file created can then be edited as required. To see also how to add install hints to a .pro file refer to: Install Hints.

  2. Create a .desktop file for the application. For more information about what a .desktop file may contain refer to: Desktop File Standard
  3. Create the Makefile for the application using qtopiamake and build the application using:
        $QPEDIR/bin/qtopiamake
        make
        su root
        make install
        exit


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5