(categorise) |
|||
| (One intermediate revision not shown) | |||
| 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. | ||
| - | === Create MeeGo Device | + | === Create a MeeGo Device Configuration === |
Open ''Tools'' > ''Options'' > ''Projects'' > ''MeeGo Device Configurations'' | Open ''Tools'' > ''Options'' > ''Projects'' > ''MeeGo Device Configurations'' | ||
<table> | <table> | ||
| Line 63: | Line 63: | ||
=== Start debugging the application === | === Start debugging the application === | ||
Click the "Run" or "Debug" icon to start your application. Qt Creator will package and deploy your application to QEMU or tablet device and start it on the target. Your application UI should appear on the remote device or virtual machine. The IDE will change to debug mode where you can view variables and software stack. You can view/step-through the code in the IDE while your application runs on the remote device or virtual machine. | Click the "Run" or "Debug" icon to start your application. Qt Creator will package and deploy your application to QEMU or tablet device and start it on the target. Your application UI should appear on the remote device or virtual machine. The IDE will change to debug mode where you can view variables and software stack. You can view/step-through the code in the IDE while your application runs on the remote device or virtual machine. | ||
| + | |||
| + | [[Category:SDK]] | ||
| + | [[Category:Tutorial]] | ||
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.
Contents |
Open Tools > Options > Projects > MeeGo Device Configurations
|
Create a hardware device configuration:
|
|
Create a QEMU virtual machine device configuration:
|
Test the settings
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.
Click "Projects" on the left side. Select "Run" in the MeeGo Build/Run box at the top. Set the "Deploy to device" to the configuration created in the previous step.
If you are debugging with a remote device, boot the device. If you are debugging with QEMU VM, start the virtual machine. You can do this from Qt Creator by clicking the "Start MeeGo Emulator" icon near the bottom left corner of the IDE.
It is easy to create breakpoints by clicking to the left of the line you wish to break on.
Click the "Run" or "Debug" icon to start your application. Qt Creator will package and deploy your application to QEMU or tablet device and start it on the target. Your application UI should appear on the remote device or virtual machine. The IDE will change to debug mode where you can view variables and software stack. You can view/step-through the code in the IDE while your application runs on the remote device or virtual machine.