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 | ||
- | + | ||
- | + | xxx # cat >> /etc/schroot/schroot.conf <<EOF | |
- | + | xxx [lenny] | |
- | + | xxx description=Debian lenny | |
- | + | xxx type=directory | |
- | + | xxx '''location'''=/srv/lenny-ia32 | |
- | + | xxx priority=3 | |
- | + | xxx users='''''<YOUR_USERNAME_HERE!!>''''' (A comma-separated list of users on the host which are allowed access to the chroot) | |
- | + | xxx groups='''''<YOUR_USER_GROUPNAME_HERE!!>''''' (A comma-separated list of groups on the host which are allowed access to the chroot. probably "users") | |
- | [lenny] | + | xxx root-groups=root |
- | description=Debian lenny | + | xxx aliases=stable,default |
- | type=directory | + | xxx EOF |
- | '''location'''=/srv/lenny-ia32 | + | |
- | priority=3 | + | |
- | users='''''<YOUR_USERNAME_HERE!!>''''' (A comma-separated list of users on the host which are allowed access to the chroot) | + | |
- | groups='''''<YOUR_USER_GROUPNAME_HERE!!>''''' (A comma-separated list of groups on the host which are allowed access to the chroot. probably "users") | + | |
- | root-groups=root | + | |
- | aliases=stable,default | + | |
- | EOF | + | |
# eval $(sed -rne '/^(FIRST|LAST)_.ID/p' /etc/adduser.conf) | # eval $(sed -rne '/^(FIRST|LAST)_.ID/p' /etc/adduser.conf) | ||
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 install tools lenny-2009-1 | |
- | (lenny)~ # maemo-sdk | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
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 105: | Line 83: | ||
Now, install your desired rootstrap. For example | Now, install your desired rootstrap. For example | ||
- | (lenny)~ $ maemo-sdk install rootstrap ''''' | + | (lenny)~ $ maemo-sdk install rootstrap '''''fremantle5.0beta1_armel''''' |
(lenny)~ $ sb2 -eR apt-get update | (lenny)~ $ sb2 -eR apt-get update | ||
- | (lenny)~ $ sb2 -eR apt-get install maemo-sdk-runtime maemo-sdk-dev maemo-sdk- | + | (lenny)~ $ sb2 -eR apt-get install maemo-sdk-runtime maemo-sdk-dev maemo-sdk-dbg |
===Preparing host for target GUI=== | ===Preparing host for target GUI=== | ||
As root on the host: | As root on the host: | ||
- | + | $ aptitude install xserver-xephyr | |
===Building Maemopad to test the build environment=== | ===Building Maemopad to test the build environment=== | ||
- | As | + | As user on the host: |
$ schroot -c lenny | $ schroot -c lenny | ||
- | You are now logged in | + | You are now logged in as root in the chrooted environment as a ''user''. |
- | + | $ mkdir -p ~/src/mytest | |
- | + | $ cd ~/src/mytest | |
- | + | $ sb2 -eR apt-get update | |
- | + | $ sb2 apt-get source maemopad | |
- | + | $ cd maemopad-2.4 | |
- | + | $ export SBOX_REDIRECT_FORCE=/usr/bin/perl | |
- | + | $ sb2 dpkg-buildpackage -rfakeroot -d -b | |
- | + | ||
===Running Maemopad=== | ===Running Maemopad=== | ||
As ''user'' on the host: | As ''user'' on the host: | ||
- | $ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac | + | $ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb |
$ schroot -c lenny | $ schroot -c lenny | ||
- | You are now logged in | + | You are now logged in as root in the chrooted environment as a ''user''. |
- | + | $ export DISPLAY=:2 | |
- | + | $ sb2 -eR dpkg -i maemopad_2.4_armel.deb | |
- | + | $ maemo-sdk start gui | |
- | + | Notice that Maemopad appears in the x11 window. | |
- | + | $ maemo-sdk stop gui | |
- | + | ||
- | + | ||
===Installing Qt=== | ===Installing Qt=== | ||
As ''root'' in the chrooted environment: | As ''root'' in the chrooted environment: | ||
- | + | $ aptitude install qt4-dev-tools | |
===Known Issues=== | ===Known Issues=== | ||
Line 148: | Line 123: | ||
* 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 133: | ||
* 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.