Meego Wiki
Views

SDK/Setup/Debugging MeeGo Applications

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
==== ====
In Qt Creator you setup MeeGo device configurations to deploy your application to either a real hardware device or to a virtual machine, such as QEMU, running on your host.  Qt Creator treats these configurations in the same way.  When you start to debug your application Qt Creator will package your applications as an RPM, deploy it to the device you've selected in your project settings, install it, and run the executable.  The mad-developer package must be installed on the target OS.
In Qt Creator you setup MeeGo device configurations to deploy your application to either a real hardware device or to a virtual machine, such as QEMU, running on your host.  Qt Creator treats these configurations in the same way.  When you start to debug your application Qt Creator will package your applications as an RPM, deploy it to the device you've selected in your project settings, install it, and run the executable.  The mad-developer package must be installed on the target OS.

Revision as of 22:30, 30 March 2011

Contents

In Qt Creator you setup MeeGo device configurations to deploy your application to either a real hardware device or to a virtual machine, such as QEMU, running on your host. Qt Creator treats these configurations in the same way. When you start to debug your application Qt Creator will package your applications as an RPM, deploy it to the device you've selected in your project settings, install it, and run the executable. The mad-developer package must be installed on the target OS.

The developer follows these steps:

  1. Create one or more MeeGo Device Configurations
  2. Select one of the configurations for the current project
  3. Start the device (boot the hardware or virtual machine)
  4. Start debugging the application. Qt Creator deploys and starts the application on the remote system or virtual machine

1. Create MeeGo Device Configurations

Open Tools > Options > Projects > MeeGo Device Configurations

Create a QEMU virtual machine device configuration:

  1. In the dialog box, create a new Device Configuration by clicking on Add.
  2. Give the new Device Configuration a name in the Configuration Name text field, and add the following settings in the other test fields:
    • Device type: choose MeeGo emulator
    • Authentication type: Password
    • Host name: 127.0.0.1
    • Ports, SSH: 6666
      Note that the emulator is setup with a redirect from port 6666 on localhost to the SSH port (22) of the emulated device.
    • Ports, Gdb Server: 13219 (the default)
    Note: If this port is not free, you can select another one.
    • Connection Timeout: 30s
    • User Name: root
    • Password: meego
  3. Click Apply
Sdk-docs-QtCreator-configuring-emulator-access.png

Create a hardware device configuration:

  1. In the dialog box, create a new Device Configuration by clicking on Add.
  2. Give the new Device Configuration a name in the Configuration Name text field, and add the following settings in the other test fields:
    • Device type: choose MeeGo emulator
    • Authentication type: Password
    • Host name: 127.0.0.1
    • Ports, SSH: 6666
      Note that the emulator is setup with a redirect from port 6666 on localhost to the SSH port (22) of the emulated device.
    • Ports, Gdb Server: 13219 (the default)
    Note: If this port is not free, you can select another one.
    • Connection Timeout: 30
    • User Name: root
    • Password: meego
  3. Click Apply
Qt-config-device-config.jpg

Test the settings

  1. To test the settings, ensure that the emulated device is running, then click Test.
    If successful, you'll see a dialog box with the message "Device configuration successful".
    If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected.

2. Select one of the configurations for the current project

3. Start the device (boot the hardware or virtual machine)

4. Start debugging the application

Personal tools