Saturday, December 10, 2011

Harmattan repository dependencies package

A first problem that the (few) N9 developers face is presented by the fact that there seems to be no apparent possibility for on-device compilation.
Nokia provides a proper Scratchbox and QT as development environments.
But what can be done for the people who would like to work from Windows and still compile natively?

Well, as always, the truth lies just beneath the surface, and specifically, it lies in a special .deb package deployed on the Nokia Harmattan Beta Repository

At that location, all the different beta's are made available.
We are looking for a very specific package, namely the package harmattan-repository_0.4+0m6_all.deb, which, when installed, will update our aptitude sources with the proper beta repository.

NOTE: at this time, it has not been tested if packages from previous beta versions refer to the latest beta. Thus, I strongly suggest you to grab the mentioned package from the latest beta, always.

So, in order to access the beta repository (and finally perform on-device compilation), follow the simple steps:

1) fire up a shell on your N9, wget the following package:
2) switch to root (devel-su)
3) dpkg -i

Once this has completed, install libc6-dev, gcc, g++ with apt-get and you will be ready to develope on your device! :)

No comments: