Qt Creator Documentation

Running Applications on Multiple Targets

By default, running an application also builds it and deploys it to a location from where it can be run on the desktop, in Qt Simulator, or on a mobile device that is connected to the development PC.

To run executable files without deploying them first, deselect the Tools > Options... > Project > Always deploy project before running it option. This allows you to test SIS files that you receive from Ovi Publishing or Symbian Signed after you have them signed, for example.

For more information on the options you have, see Specifying Run Settings.

Running on Desktop

  1. Select Desktop as the target.

    "Target selector"

  2. Click the Run button.

Running on Qt Simulator

You can use the Qt Simulator to test Qt applications that are intended for mobile devices in an environment similar to that of the device. You can change the information that the device has about its configuration and environment.

  1. Select Qt Simulator as the target.
  2. Click the Run button.

For more information about using the Qt Simulator, see the Qt Simulator Manual.

Running on Maemo

  1. Build and run the application for Qt Simulator.
  2. Build and run the application for Maemo Emulator.
  3. Alternatively, you can build and run the application for a device:
    1. Set up the MADDE development environment and specify a connection to the device. For more information, see Setting Up Development Environment for Maemo.
    2. Connect the device to the development PC.
    3. Click the Run button.

Qt Creator uses the compiler specified in the MADDE toolchain to build the application.

Qt Creator generates an installation package, installs it on the device, and executes the selected application. The application views are displayed on the Nokia N900. Command-line output is visible in the Qt Creator Application Output view.

Choose Projects > Maemo Run to view the settings for deploying the application on the connected device and creating the installation package. For more information, see Specifying Run Settings for Maemo Devices.

Debugging also works transparently.

Running on Symbian

  1. Build and run the application for Qt Simulator.
  2. If no problems are found, build and run the application for a device.
  3. To test functionality that uses Symbian APIs, you can build and run the application for Symbian Emulator.

Running on a Device

  1. Install the required software on the device. For more information, see Setting Up Development Environment for Symbian.
  2. Connect the device to the development PC through a USB cable. The target selector displays a green check mark when a device is connected.

    The tool tip of the target selector shows more details about the actual device that will be used when you run your application.

  3. Start the App TRK application on your device.
  4. Click the Run button.

You can connect several devices to your development PC simultaneously. In the details of the run configuration for the Symbian Device target, select the device to run your application on.

When your application is ready for delivery to users, specify run settings for creating the final SIS installation packages. For more information, see Creating SIS Files.

If you cannot run the application on a device, check that:

  • The Nokia USB drivers that come with PC Suite or Ovi Suite have been installed on the development PC.
  • The device is connected through USB cable in PC Suite mode.
  • App TRK is running on the device, using the USB connection, with the status connected.
  • The device is detected and selected in the run configuration details.

If this does not help to solve your problem, search the qt-creator@trolltech.com mailing list archives or provide feedback to us via the methods described on the Qt Creator Development Wiki.

Running on Symbian Emulator

Select the Symbian Emulator target as the active one, and build and run your project.

If you cannot run the application in the emulator, check that:

  • You selected the Symbian Emulator target for your application.
  • If you cannot select Symbian Emulator as target, check that Carbide.c++ is installed correctly and that the path to the Carbide.c++ installation directory is specified in the Carbide directory field in the build settings.
  • If the emulator process cannot be started, try closing Qt Creator and starting the application directly from your file manager. Having done this, Qt Creator should be able to run your projects in the emulator.

[Previous: Building Applications for Multiple Targets] [Next: Specifying Build Settings]

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

s.parentNode.insertBefore(ga, s); })(); -->