Tuesday, March 30, 2010

Debugging on Symbian S60 Nokia device with Qt Creator

Qt Creator 1.3 and later provides support for Symbian S60 development (especially Qt apps, of course).

In addition to building for WINSCW (Symbian S60 Emulator) and GCCE (Symbian ARM target), Qt Creator also provides support for running and debugging Qt applications right on the Symbian S60 / Nokia device.

To debug/run Qt apps on Symbian S60 device:
  1. Setup the Qt for Symbian development environment properly.
  2. Install App TRK on your Nokia / Symbian S60 device.
  3. Run App TRK and if configure it as USB. (Qt Creator currently only supports USB)
  4. Connect your Nokia device to your computer. (make sure Nokia Ovi Suite / PC Suite is running)
  5. Configure Qt Creator project to build using GCCE.
  6. Configure Qt Creator project to run using "Symbian device".
  7. Run/Debug your app from Qt Creator!

Troubleshooting


You may get stuck with the message "Waiting for App TRK to start on COMxx" during Run/Debug from Qt Creator:


The cause is because Qt Creator up to version 1.3.1 doesn't work well with high port numbers. This should be resolved in Qt Creator 1.3.2, but in the meantime there is a workaround:

  1. Go to System -> Advanced Properties -> Device Manager.
  2. Expand Ports, and double-click your Nokia device to bring the Properties dialog.
  3. Click Port Settings tab. Click Advanced. And set the port to something to (COM1 to COM4 if possible).
  4. Click OK on all dialogs.
  5. Now disconnect and reconnect your Nokia/Symbian device. And you should be good to go.
For more information about Qt C++ development, check out C++ GUI Programming with Qt 4 (2nd Edition).

To learn Symbian C++ development, I recommend Porting to the Symbian Platform: Open Mobile Development in C/C++ (Symbian Press).

References:

No comments:

Post a Comment

Be the first to comment!