Note: the following instruction should also work on top of previous installations of scratchbox, you don’t need to uninstall the previous version, but you should be logged out of it.

Install the Nokia development kit for the N900 (MAEMO 5 SDK). I choose:

Run it by:
$ sudo python ./

(If you don’t have python, you need to install it first, follow the on-screen instructions)

This will launch the GUI installer, chose to install the development version. This will install scratchbox and most of the libraries that you will need.

Launch scratchbox:
$ scratchbox

Now you can choose the platform you want to work on with the scratchbox tools:

> sb-menu

Choose “FREMANTLE ARMEL” to run code natively on the N900.

You now need to install a few libraries from inside scratchbox:

> apt-get install python2.5 libqt4-core libqt4-gui libqt4-dev libidl-dev

There are two important things you will need to remember in your mozconfig:

1) tell it to use Qt:
ac_add_options –enable-default-toolkit=cairo-qt

2) Currently we also need to disable crashreporter as it hasn’t been converted to Qt
ac_add_options –disable-crashreporter

For reference my MOZCONFIG is NR_QT_NokiaRelease_mozconfig.txt:

# cs2007q3 gcc 4.2 is busted, we think, and doesn’t
# look in the expected places. –dougt.
# $PWD/… was added due to bug 463076
export LDFLAGS=”-Wl,-rpath-link,$PWD/dist/bin/:/usr/lib:/lib”

# Options for
mk_add_options MOZ_BUILD_PROJECTS=”xulrunner mobile”
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-fennecNokia-qt-release
mk_add_options MOZ_MAKE_FLAGS=”-j3 –no-print-directory”
ac_add_options –enable-gstreamer

# Global options
# ac_add_options –enable-debug
# ac_add_options –disable-optimize

# XULRunner options
ac_add_app_options xulrunner –enable-application=xulrunner
ac_add_app_options xulrunner –disable-javaxpcom

# Enabling –with-arm-kuser implies Linux on ARM and enables kernel
# optimizations for that platform
ac_add_app_options xulrunner –with-arm-kuser

# Disabling tests due to bug 454881
ac_add_options –disable-tests

# mobile options
ac_add_app_options mobile –enable-application=mobile
ac_add_app_options mobile –with-libxul-sdk=../xulrunner/dist

# enable qt
ac_add_options –enable-default-toolkit=cairo-qt
ac_add_options –disable-crashreporter