Confirmed users, Bureaucrats and Sysops emeriti
969
edits
(Note Ubuntu Hardy Heron problems) |
(Make it a little clearer what Scratchbox is before we diving into the installation instructions.) |
||
| Line 1: | Line 1: | ||
==Setting Up Scratchbox== | ==Setting Up Scratchbox== | ||
The maemo SDK is based around a tool called scratchbox. Scratchbox is a sandboxed emulator that you run on a fast development machine to configure, compile and run (test) the binaries that are to be installed on a target mobile device. It eliminates a lot of the difficulties associated with traditional cross compilation by essentially letting you pretend you're not cross compiling. To set it up, Nokia has written a very useful script called maemo-scratchbox-install. | |||
These instructions are for setting up a new scratchbox installation. If you have an existing (i.e. 3.2/bora) scratchbox installation, you'll have to set an alternate path for the installation. | |||
=== Debian-based Linux distributions === | === Debian-based Linux distributions === | ||
Scratchbox will be installed | Scratchbox will be installed by default from Debian .deb packages to the path /scratchbox | ||
<code><pre> | <code><pre> | ||
| Line 15: | Line 13: | ||
sudo chmod a+x ./maemo-scratchbox-install_4.0.1.sh | sudo chmod a+x ./maemo-scratchbox-install_4.0.1.sh | ||
sudo ./maemo-scratchbox-install_4.0.1.sh | sudo ./maemo-scratchbox-install_4.0.1.sh | ||
sudo /scratchbox/sbin/sbox_adduser | sudo /scratchbox/sbin/sbox_adduser $USER yes | ||
</pre> | </pre> | ||
</code> | </code> | ||
Replace $USER with an explicit user name if you want to create a scratchbox login for a user other than the current user. | |||
=== Other Linux distributions === | === Other Linux distributions === | ||
| Line 26: | Line 26: | ||
sudo chmod a+x ./maemo-scratchbox-install_4.0.sh | sudo chmod a+x ./maemo-scratchbox-install_4.0.sh | ||
sudo ./maemo-scratchbox-install_4.0.sh -s /scratchbox | sudo ./maemo-scratchbox-install_4.0.sh -s /scratchbox | ||
sudo /scratchbox/sbin/sbox_adduser | sudo /scratchbox/sbin/sbox_adduser $USER yes | ||
</pre> | </pre> | ||
</code> | </code> | ||
Again, replace $USER with an alternative user name if you like. | |||
==Setting Up Maemo Chinook SDK== | ==Setting Up Maemo Chinook SDK== | ||