Editing Maemo SDK+ installation on Debian (AMD64)
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | {{Out of date}} | ||
+ | |||
+ | |||
The Maemo SDK+ package includes scratchbox 2 and Qt, but it will only install on 32-bit platforms. If you're running Debian with a 64-bit kernel, Maemo SDK+ can be installed into a chrooted 32-bit environment that sits on top of your 64-bit platform. This guide takes you through all the steps to the point of compilation and running the test. | The Maemo SDK+ package includes scratchbox 2 and Qt, but it will only install on 32-bit platforms. If you're running Debian with a 64-bit kernel, Maemo SDK+ can be installed into a chrooted 32-bit environment that sits on top of your 64-bit platform. This guide takes you through all the steps to the point of compilation and running the test. | ||
Line 4: | Line 7: | ||
All steps in this section are executed as root, directly on the host. | All steps in this section are executed as root, directly on the host. | ||
- | |||
# aptitude install debootstrap | # aptitude install debootstrap | ||
- | # debootstrap --arch i386 lenny /srv/lenny-ia32 | + | # debootstrap --arch i386 lenny /srv/lenny-ia32 http://ftp.debian.org/debian/ |
- | # echo "deb | + | # echo "deb http://maemo-sdk.garage.maemo.org/download/host debian-lenny free" >> /srv/lenny-ia32/etc/apt/sources.list |
# aptitude install schroot | # aptitude install schroot | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<s># cat >> /etc/schroot/schroot.conf <<EOF | <s># cat >> /etc/schroot/schroot.conf <<EOF | ||
[lenny] | [lenny] | ||
Line 50: | Line 45: | ||
# chroot /srv/lenny-ia32/ /bin/bash | # chroot /srv/lenny-ia32/ /bin/bash | ||
(lenny)/ # | (lenny)/ # | ||
- | |||
You are now logged in as root in the chrooted environment as ''root''. | You are now logged in as root in the chrooted environment as ''root''. | ||
(lenny)~ # aptitude update | (lenny)~ # aptitude update | ||
(lenny)~ # aptitude install maemo-sdk | (lenny)~ # aptitude install maemo-sdk | ||
- | |||
(lenny)~ # maemo-sdk list available tools | (lenny)~ # maemo-sdk list available tools | ||
etch | etch | ||
etch-2008 | etch-2008 | ||
lenny-2009-1 | lenny-2009-1 | ||
- | + | (lenny)~ # maemo-sdk install tools lenny-2009-1 | |
- | + | ||
- | (lenny)~ # maemo-sdk | + | |
- | + | ||
(lenny)~ # maemo-sdk list available toolchains | (lenny)~ # maemo-sdk list available toolchains | ||
arm-2005q3 | arm-2005q3 | ||
arm-2007q3 | arm-2007q3 | ||
i386-2007q3 | i386-2007q3 | ||
- | + | (lenny)~ # maemo-sdk install toolchain arm-2005q3 | |
- | + | Apparently, you'll need to use arm-2007q3 instead if you are no longer using diablo. | |
(lenny)~ # maemo-sdk install toolchain arm-2007q3 | (lenny)~ # maemo-sdk install toolchain arm-2007q3 | ||
- | |||
As the SDK needs to use sudo to gain root access later, we need to configure sudo: | As the SDK needs to use sudo to gain root access later, we need to configure sudo: | ||
(lenny)~ # visudo | (lenny)~ # visudo | ||
Line 120: | Line 109: | ||
(lenny)~ $ cd ~/src/mytest | (lenny)~ $ cd ~/src/mytest | ||
(lenny)~/src/mytest $ sb2 -eR apt-get update | (lenny)~/src/mytest $ sb2 -eR apt-get update | ||
- | |||
(lenny)~/src/mytest $ sb2 apt-get source maemopad | (lenny)~/src/mytest $ sb2 apt-get source maemopad | ||
- | (lenny)~/src/mytest $ cd maemopad-2. | + | (lenny)~/src/mytest $ cd maemopad-2.4 |
- | (lenny)~/src/mytest/maemopad-2. | + | (lenny)~/src/mytest/maemopad-2.4 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl |
- | (lenny)~/src/mytest/maemopad-2. | + | (lenny)~/src/mytest/maemopad-2.4 $ sb2 dpkg-buildpackage -rfakeroot -d -b |
===Running Maemopad=== | ===Running Maemopad=== | ||
Line 133: | Line 121: | ||
(lenny)~ $ export DISPLAY=:2 | (lenny)~ $ export DISPLAY=:2 | ||
(lenny)~ $ cd ~/src/mytest/ | (lenny)~ $ cd ~/src/mytest/ | ||
- | (lenny)~/src/mytest $ sb2 -eR dpkg -i maemopad_2. | + | (lenny)~/src/mytest $ sb2 -eR dpkg -i maemopad_2.4_armel.deb |
(lenny)~/src/mytest $ maemo-sdk start gui | (lenny)~/src/mytest $ maemo-sdk start gui | ||
<s>Notice that Maemopad appears in the x11 window.</s><br /> | <s>Notice that Maemopad appears in the x11 window.</s><br /> | ||
Line 148: | Line 136: | ||
* af-sb-init.sh | * af-sb-init.sh | ||
They don't seem to be important.. just a cosmetic matter. | They don't seem to be important.. just a cosmetic matter. | ||
- | |||
- | |||
- | |||
===Guides used as a source for this document=== | ===Guides used as a source for this document=== | ||
Line 161: | Line 146: | ||
* http://maemo-sdk.garage.maemo.org/install-debian.html | * http://maemo-sdk.garage.maemo.org/install-debian.html | ||
- | |||
[[Category:Development]] | [[Category:Development]] |
Learn more about Contributing to the wiki.