This guide is for Nokia QT SDK for Linux OS
Though of creating a quick and easy to refer guide to getting started in Maemo including setting up the environment, creating a basic ‘HeyAll’ program and running it on the Nokia N900.
Tested on 32 bit Ubuntu 9.04 running on a Core 2 Duo.
1. Remove Old SDK
Just to ensure that there are no issues with two SDKs, we will start by remove the old SDK. Run the SDKMaintenanceTool. This should be located as a menu item.
If you don't have it in any menu on your menu bar, Find it from the installation location.
Once you run it, simply select the tab ‘Package Manager’, then select the option ‘Remove all components’, and then finally click on ‘Next’.
Now just click on ‘Uninstall’. Now the Nokia SDK will be uninstalled completely. Now click ‘Finish’ to exit the uninstall tool.
2. Installing QT SDK
Download the current Nokia QT SDK from nokia’s website by going to the following link :
Download Nokia QT SDK
You will now need to change permissions of the downloaded file so that it can be executed and installed. Open terminal navigate to the folder where you have downloaded the file and run :
Code:
chmod u+x Nokia_Qt_SDK_Lin32_offline_v1_0_en
Now the file is ready to run.
Code:
./Nokia_Qt_SDK_Lin32_offline_v1_0_en
If you get any error while running the installation file with the above command, you may need administrative right. Simply use the following command to run :
Code:
sudo ./Nokia_Qt_SDK_Lin32_offline_v1_0_en
Follow the on screen instructions and select full install. You may want to remove the old QT SDK settings. You are free to do so. The installation process may take a while, so just wait till it finishes.
3. Rebuilding Qt SDK Debugging Helper
Now Qt SDK is installed, but there is still one more important thing that needs to done before we start creating codes. We need to make sure that the debugging helpers are built and working properly.
Now Run QT SDK and follow navigate to Tools > Option > QT4. Now click on "Qt for Fremantle PR1.2 Devices (Nokia Qt SDK)" then click on "Rebuild". You will then notice that the error indicated by red cross is now a Go indicated by green tick mark.
Again follow the same process for "Simulator Qt for GCC (Nokia Qt SDK)" and then click Ok to exit.
Now lets configure our Nokia N900 device.
4. Setting up Nokia N900
Now add the Nokia N900 to Qt SDK and use one click testing and deployment on nokia device itself.
In this guide we will use wifi instead of USB cables, after all, this is the wireless age! Ok, Let get the N900 ready for use.
If you are not on the latest firmware, it is recommended that you update your phone to the latest available firmware. You can check for the any available firmware updates by going to : Menu > Settings > About Product.
It should be on the Firmware Version: 10.2010.19-1.203.1 and make sure you have setup the extras repository.
Now run the App Manager : Menu > App Manager.
Now choose the Application Manager title and then choose Application Catalogues, you can check to make sure you have maemo.org or Maemo Extras. If you have both repositories, then you need to disable Maemo Extras.
Now open maemo.org which should show you the following information :
Code:
Catalog name: maemo.org
Web address: http://repository.maemo.org/extras/
Distribution: fremantle-1.2
Components: free non-free
Now choose Download > Development > mad-developer
This will communicate with Qt SDK and will allow it to deploy code on your N900 device.
Now install the client. You will be ask to setup a new root password. Please keep it as simple as possible so that you do not forget it.
5. Adding the N900 device to Qt SDK
Load Mad Developer if it is not already loaded.
Now this should show you your IP address on wlan0.
On your QT SDK go to Tools > Options > Projects > Maemo Device Configurations.
Click on the Add button. It will now add the N900 device, and show you the following information :
Code:
Name: Nokia N900
Device Type: Select Remote device
Authentication Type: Select Password
Host Name: here input the IP which is shown on the N900 device
Username: developer
Password: Choose the "Developer Password" on the N900 device and it here
Now click 'Test' and check everything works.
You should now get the following information :
Code:
Device configuration successful.
Hardware architecture: armv7l
Kernel version: 2.6.28-omap1
List of installed Qt packages:
libqt4-core 4.6.2
libqt4-dbus 4.6.2
libqt4-gui 4.6.2
libqt4-maemo5 4.6.2
libqt4-maemo5-core 4.6.2
libqt4-maemo5-dbus 4.6.2
libqt4-maemo5-gui 4.6.2
libqt4-maemo5-maemo5 4.6.2
libqt4-maemo5-xml 4.6.2
libqt4-multimedia 4.6.2
libqt4-network 4.6.2
libqt4-opengl 4.6.2
libqt4-phonon 4.6.2
libqt4-sql 4.6.2
libqt4-sql-sqlite 4.6.2
libqt4-svg 4.6.2
libqt4-webkit 4.6.2
libqt4-xml 4.6.2
libqt4-xmlpatterns 4.6.2
Now you can close the information box. You must provide a new password everytime you load Mad-Developer.
Hence, we must deploy a key to make sure we can load Mad-Developer on our N900 device which is usable. Well, encrypted keys are not yet supported. I cannot ensure it will be supported in future.
Now Click 'Generate SSH Key'
A new message box will be show. Now here choose the key size as 4096. Once done, then click on 'Generate SSH Key'.
Once you get the key, click 'Save Public Key' and again click on 'Save Private Key' as well.
Make sure you keep these keys saved in some safe location. Now go back to Maemo Device Configuration by clicking close.
If you want to change the Private Key location, change the 'Authentication Type' to 'Key' and after that click browse and select the new private key that you just created.
Now again change 'Authentication Type' to 'Password' and click on 'Deploy Public Key'. Now a dialog box asking to select the public key will appear. Click on the one public key file you just saved before and click on open.
Now you will get a message saying : 'Key was successfully deployed'
Now again change the Authentication Type back to 'Key' and test to make sure it successfully connects.
Now close the current screen by clicking on Ok which will take you to the main screen.
Now justs make our first ‘Hey All’ Program.
Bookmarks