Log in

Compiling for your N900 on debian - Nick [entries|archive|friends|userinfo]

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Compiling for your N900 on debian [Jan. 12th, 2010|07:34 pm]
I've just got my Nokia N900, and while the phone-phone synchronisation pulled my calendar entries and contacts over from my N95 just fine, it didn't do the sms's.

Since it runs linux, the fact that the official software doesn't support it isn't the end of the world. Handily, someone's written a small sms importer program that reads in the sms's from the S60 pc-suite csv export, and loads them onto the phone.

Only snag is the pre-built version didn't support long sms's, so I needed to patch and re-compile. That means needing an arm cross-compiler, the build environment etc.

Handily, that's fairly easy to setup. The best guide I found was http://maemo-sdk.garage.maemo.org/install-debian.html, which got me almost all the way there.

One thing to note is that you need to install the "Nokia Binaries" if you want to do much development, which includes various key system components and dev libraries that aren't open source. http://wiki.forum.nokia.com/index.php/Maemo_5_SDK_installation_for_beginners has what I found to be a slightly easier guide to follow on that.

Now I'm about ready to try my newly compiled smsimporter. A couple of commands that I've found to be helpful are:
  • sb2 -eR apt-get install [pkg] - installs the given arm native package in the build root

  • maemo-sdk enter devel - enter a shell suitable for compiling for native arm

Hopefully I'll be knocking up a few more little bits of code on the weekend :)