I'm using the Qt SDK 1.1 beta on Ubuntu 10.10. I'll deal with developing with this in another post (Eclipse keybindings, the combination of graphical and source editing (and the limitations therein), issues to bear in mind). Here I want to deal with deployment. Qt Creator offers a number of targets:
- Desktop (not relevant to this app)
- Remote compiler
I chose the last three. On Linux, there is no native support for deploying or compiling for Symbian. Compiling can be dealt with by the "remote compiler", but what about deploying?
I can, now, to the following; all from within Qt Creator:
- Compile Qt applications and get a signed SIS file for installation
- Install the SIS file on to a USB-connected N8
- Start the application and get its console output back in the IDE.
Configuring the remote compiler
- Get a Forum Nokia account, if you do not have one.
- Install runonphone.
- Download this script: runonphone.wrap, and put it on your PATH (make sure it's executable).
In Qt Creator, select Tools > Options... > Projects > Remote compiler and authenticate with your Forum Nokia details:
Open your project, and select Projects > Remote Compiler > Build. Ensure Signed is checked.
Switch to the Run tab and create a new deployment and run configuration.
- Working directory:
- Arguments: either
install(for deploy) or
Configuring the device
- Go to
- Send the SIS files under
TRKto your phone (e.g. via Bluetooth) and install via launching them.
- Go to the main launcher menu and launch RnD Tools > TRK.
- Under Options > Settings ensure USB is set as the connection method.
- Connect your Symbian phone via a USB cable.
- Select Options > Connect.
Then, when you deploy and run in Qt Creator the SIS file should be sent over the
usbserial connection and launched on the device.
Unfortunately, if there's a problem you can sometimes end up in a state where you need to
kill -9 the processes blocking the port. It also doesn't seem to like working on
/dev/ttyUSB0 - but these could all be interrelated problems. Improvements to the script very welcome!