Maemo is an embedded release of Linux that supports the ARM architecture. Its development environment is naturally Desktop Linux. Maemo uses the Debian package management system, so it is best to build a Development Environment On Debian or Ubuntu (currently supports both X86 and ARM architectures ). To simplify development, Scratchbox is recommended as a sandbox. This software can be used in a virtual Maemo environment for debugging and provides good cross-platform compilation support. If you do not have a Linux environment
Maemo is an embedded release of Linux that supports the ARM architecture. Its development environment is naturally Desktop Linux. Maemo uses the Debian package management system, so it is best to build a Development Environment On Debian or Ubuntu (currently supports both X86 and ARM architectures ). To simplify development, Scratchbox is recommended as a sandbox. This software can be used in a virtual Maemo environment for debugging and provides good cross-platform compilation support. If you do not have a Linux environment, download the image provided by Nokia and use it on VMPlayer.
Note that Scratchbox requires the kernel to provide binfmt_misc support. This item is usually compiled into a module. You can run the command lsmod | grep binfmt to check whether this module is currently loaded, or check the/proc/sys/fs/binfmt_misc/status file to determine whether this function is supported. In addition, if you are AMD64 (x86_64) architecture, you also need to install ia32-libs to provide support for 32-bit libraries. In addition, Scratchbox conflicts with the VDSO features of the Linux kernel and needs to be disabled as described here.
Start installation now. First download the installation script and add the execution permission:
Wget-c http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
Chmod a + x./maemo-scratchbox-install_5.0.sh./maemo-sdk-install_5.0.sh
Then install Scratchbox. For the AMD64 system, run the following command:
Sudo./maemo-scratchbox-install_5.0.sh-F-u $ USER
If it is an i386 system, run the following command:
Sudo./maemo-scratchbox-install_5.0.sh-u $ USER
The installation script automatically downloads the required installer and installs it.
Next, install the Maemo SDK:
Newgrp sbox
/Maemo-sdk-install_5.0.sh
After accepting the protocol and selecting the package to be installed, the script automatically downloads and installs the required package. After the installation is complete, you can log on to the Scratchbox environment:
/Scratchbox/login
Finally, install the private Binary Package provided by Nokia. Accept the EULA and add the repository entry to the/etc/apt/sources. list file in the Scratchbox environment. Run the following command to install it:
Sb-conf select FREMANTLE_ARMEL
Vi/etc/apt/sources. list # add repository entry
Apt-get update
Fakeroot apt-get install nokia-binaries nokia-apps
Sb-conf select FREMANTLE_X86
Vi/etc/apt/sources. list # add repository entry
Apt-get update
Fakeroot apt-get install nokia-binaries nokia-apps
OK. Now we can develop and test it in Scratchbox.