MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Packaging and running binaries on the device

To run your application on the Harmattan device:

1. Set up a USB connection or a WLAN connection between the development host and the device.
2. Compile your application on the HARMATTAN_ARMEL target.
3. Create a Debian package of your application.
4. Copy and install your application on the device.
5. To launch the application, tap the application icon in the Applications view on the device.
Note: You can also run your application on the device without creating a Debian package. For instructions, see Running stand-alone binaries on the device.

Packaging your application into a Debian package

To package your application into a Debian package:

1. Navigate into the project directory and enter the following command:

dpkg-buildpackage -rfakeroot

This creates the following files into the parent directory of the project:

  • .dsc description file
  • .tar.gz zipped package file
  • _armel.deb binary package
  • _armel.changes changelog

2. To check that the package was created in the parent directory, enter the following commands:

cd ..

ls <project name>*deb 

The Debian package for the project is now available for installation.

Running your application on the device

1. To copy the Debian package to the device, enter the following command:

 scp <project name>*armel.deb developer@192.168.2.15:/<location for the package>/

2. On the device terminal, enter the following command:

 devel-su - root 

3. Enter the root password.

4. Enter the following command:

dpkg -i <location>/<project name>*armel.deb

You can now launch the application on the device by tapping on the icon in the Applications view on the device.