101
edits
| Line 42: | Line 42: | ||
=== Setting up scratchbox (for Maemo devices only) === | === Setting up scratchbox (for Maemo devices only) === | ||
Below is the condensed version of [http://wiki.maemo.org/Documentation/Maemo5_Final_Installation Maemo install guide]. If you have questions or need something a little different, it is a good reference. | |||
<pre> | |||
# | |||
# Scratchbox: install these before doing your Maemo 5 scratchbox. | |||
# | |||
# Install instructions for scratchbox itself. Only need to do these steps once. | |||
sudo echo "deb http://scratchbox.org/debian/ maemo5-sdk main" >> /etc/apt.d/sources.list | |||
sudo apt-get update | |||
sudo apt-get install scratchbox-toolchain-cs2007q3-glibc2.5-arm7 | |||
# Needed for Ubuntu. | |||
sudo echo "vm.vdso_enabled = 0" >> /etc/sysctl.conf | |||
sudo echo "vm.mmap_min_addr = 4096" >> /etc/sysctl.conf | |||
sudo sysctl -p | |||
# | |||
# Maemo 5.0 scratchbox | |||
# | |||
wget 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 | |||
sudo sh ./maemo-scratchbox-install_5.0.sh -s /scratchbox | |||
sudo /scratchbox/sbin/sbox_ctl start | |||
# If this is your first scratchbox installation, run this and re-login. | |||
sudo /scratchbox/sbin/sbox_adduser $USER yes | |||
sh ./maemo-sdk-install_5.0.sh | |||
# | |||
# Run /scratchbox/login. You are now chroot'ed inside scratchbox environment. | |||
# | |||
sb-conf st FREMANTLE_ARMEL -c cs2007q3-glibc2.5-arm7 | |||
wget http://repository.maemo.org/stable/5.0/armel/maemo-sdk-rootstrap_5.0_armel.tgz | |||
sb-conf se FREMANTLE_ARMEL | |||
sb-conf rs maemo-sdk-rootstrap_5.0_armel.tgz | |||
# Unfortunately anything built with QT requires a EULA. | |||
# Here you will need to go to http://tablets-dev.nokia.com/eula/index.php and | |||
# accept their EULA. Add the deb repo you subsequently receive to /etc/apt.d/sources.list | |||
fakeroot apt-get update | |||
fakeroot apt-get install nokia-binaries nokia-apps | |||
</pre> | |||
For Fennec e10s, you will need to install some additional packages. | |||
<pre> | |||
# You are still logged in to scratchbox, right? | |||
fakeroot apt-get install libqt4-dev libqt4-gui \ | |||
libxaw7-dev libfreetype6-dev libxi-dev \ | |||
libhildonmime-dev libosso-dev libidl-dev liblocation-dev \ | |||
libasound2-dev libhildon1-dev libiw-dev \ | |||
libxdamage-dev libxcomposite-dev libnotify-dev libhildonfm2-dev \ | |||
libconic0-dev python | |||
</pre> | |||
=== Getting the source === | === Getting the source === | ||
edits