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 4: | Line 4: | ||
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 | |
- | + | $ debootstrap --arch i386 lenny /srv/lenny-ia32 http://ftp.debian.org/debian/ | |
- | + | $ echo "deb http://maemo-sdk.garage.maemo.org/download/host debian-lenny free" >> /srv/lenny-ia32/etc/apt/sources.list | |
- | + | $ aptitude install schroot | |
- | + | $ cat >> /etc/schroot/schroot.conf <<EOF | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[lenny] | [lenny] | ||
description=Debian lenny | description=Debian lenny | ||
type=directory | type=directory | ||
- | + | location=/srv/lenny-ia32 | |
priority=3 | priority=3 | ||
- | users='''''<YOUR_USERNAME_HERE!!>''''' | + | users='''''<YOUR_USERNAME_HERE!!>''''' |
- | groups='''''<YOUR_USER_GROUPNAME_HERE!! | + | groups='''''<YOUR_USER_GROUPNAME_HERE!!''''' (probably "users")> |
root-groups=root | root-groups=root | ||
+ | run-setup-scripts=true | ||
+ | run-exec-scripts=true | ||
aliases=stable,default | aliases=stable,default | ||
- | EOF | + | EOF |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
===Installing Maemo SDK+=== | ===Installing Maemo SDK+=== | ||
- | + | As root on the host: | |
- | + | $ schroot -c 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''. | ||
- | + | $ aptitude update | |
- | + | $ aptitude install maemo-sdk | |
- | + | $ maemo-sdk install tools lenny-2009 | |
- | + | $ maemo-sdk install tools lenny-2009-1 | |
- | + | As user on the host: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | As | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
$ schroot -c lenny | $ schroot -c lenny | ||
- | + | You are now logged in as root in the chrooted environment as a ''user''. | |
- | You are now logged in | + | $ maemo-sdk install rootstrap diablo4.1.2_armel |
- | + | $ 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 72: | ||
* 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 82: | ||
* 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.