Home · All 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
        ./startdemo

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 that the follow steps be used :

  1. Create a .pro file for the application

    To create the initial .pro file use the following command:

        $QPEDIR/bin/qtopiamake -project

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

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


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7