<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=96.248.214.254</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=96.248.214.254"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/96.248.214.254"/>
	<updated>2026-04-21T23:31:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Maemo_SDK%2B_installation_on_Debian_(AMD64)&amp;diff=19430</id>
		<title>Maemo SDK+ installation on Debian (AMD64)</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Maemo_SDK%2B_installation_on_Debian_(AMD64)&amp;diff=19430"/>
		<updated>2009-12-22T01:32:18Z</updated>

		<summary type="html">&lt;p&gt;96.248.214.254: /* Installing Maemo SDK+ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Maemo SDK+ package includes scratchbox 2 and Qt, but it will only install on 32-bit platforms.  If you&#039;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.&lt;br /&gt;
&lt;br /&gt;
===Building the chrooted platform===&lt;br /&gt;
All steps in this section are executed as root, directly on the host.&lt;br /&gt;
&lt;br /&gt;
 $ aptitude install debootstrap&lt;br /&gt;
 $ debootstrap --arch i386 lenny /srv/lenny-ia32 http://ftp.debian.org/debian/&lt;br /&gt;
 $ echo &amp;quot;deb http://maemo-sdk.garage.maemo.org/download/host debian-lenny free&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/etc/apt/sources.list&lt;br /&gt;
 $ aptitude install schroot&lt;br /&gt;
 $ cat &amp;gt;&amp;gt; /etc/schroot/schroot.conf &amp;lt;&amp;lt;EOF&lt;br /&gt;
 [lenny]&lt;br /&gt;
 description=Debian lenny&lt;br /&gt;
 type=directory&lt;br /&gt;
 location=/srv/lenny-ia32&lt;br /&gt;
 priority=3&lt;br /&gt;
 users=&#039;&#039;&#039;&#039;&#039;&amp;lt;YOUR_USERNAME_HERE!!&amp;gt;&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 groups=&#039;&#039;&#039;&#039;&#039;&amp;lt;YOUR_USER_GROUPNAME_HERE!!&#039;&#039;&#039;&#039;&#039; (probably &amp;quot;users&amp;quot;)&amp;gt;&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 run-setup-scripts=true&lt;br /&gt;
 run-exec-scripts=true&lt;br /&gt;
 aliases=stable,default&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
===Installing Maemo SDK+===&lt;br /&gt;
As root on the host:&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in as root in the chrooted environment as  &#039;&#039;root&#039;&#039;.&lt;br /&gt;
 $ aptitude update&lt;br /&gt;
 $ aptitude install maemo-sdk&lt;br /&gt;
 $ maemo-sdk install tools lenny-2009&lt;br /&gt;
 $ maemo-sdk install tools lenny-2009-1&lt;br /&gt;
As user on the host:&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in as root in the chrooted environment as a  &#039;&#039;user&#039;&#039;.&lt;br /&gt;
 $ maemo-sdk install rootstrap diablo4.1.2_armel&lt;br /&gt;
 $ sb2 -eR apt-get install maemo-sdk-runtime maemo-sdk-dev maemo-sdk-dbg&lt;br /&gt;
&lt;br /&gt;
===Preparing host for target GUI===&lt;br /&gt;
As root on the host:&lt;br /&gt;
 $ aptitude install xserver-xephyr&lt;br /&gt;
&lt;br /&gt;
===Building Maemopad to test the build environment===&lt;br /&gt;
As user on the host:&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in as root in the chrooted environment as a &#039;&#039;user&#039;&#039;.&lt;br /&gt;
 $ mkdir -p ~/src/mytest&lt;br /&gt;
 $ cd ~/src/mytest&lt;br /&gt;
 $ sb2 -eR apt-get update&lt;br /&gt;
 $ sb2 apt-get source maemopad&lt;br /&gt;
 $ cd maemopad-2.4&lt;br /&gt;
 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl&lt;br /&gt;
 $ sb2 dpkg-buildpackage -rfakeroot -d -b&lt;br /&gt;
&lt;br /&gt;
===Running Maemopad===&lt;br /&gt;
As &#039;&#039;user&#039;&#039; on the host:&lt;br /&gt;
 $ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in as root in the chrooted environment as a &#039;&#039;user&#039;&#039;.&lt;br /&gt;
 $ export DISPLAY=:2&lt;br /&gt;
 $ sb2 -eR dpkg -i maemopad_2.4_armel.deb&lt;br /&gt;
 $ maemo-sdk start gui&lt;br /&gt;
Notice that Maemopad appears in the x11 window.&lt;br /&gt;
 $ maemo-sdk stop gui&lt;br /&gt;
&lt;br /&gt;
===Installing Qt===&lt;br /&gt;
As &#039;&#039;root&#039;&#039; in the chrooted environment:&lt;br /&gt;
 $ aptitude install qt4-dev-tools&lt;br /&gt;
&lt;br /&gt;
===Known Issues===&lt;br /&gt;
The procedures above work quite well, other than the fact that the following scripts are missing from the chrooted environment:&lt;br /&gt;
 * run-standalone.sh&lt;br /&gt;
 * af-sb-init.sh&lt;br /&gt;
They don&#039;t seem to be important.. just a cosmetic matter.&lt;br /&gt;
&lt;br /&gt;
===Guides used as a source for this document===&lt;br /&gt;
Parts of the following sites were used to compose this guide.  These sites should be visited to get more detail on the process.&lt;br /&gt;
 &lt;br /&gt;
* https://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html&lt;br /&gt;
* http://www.debian-administration.org/articles/566&lt;br /&gt;
* http://nion.modprobe.de/blog/archives/539-Setting-up-build-chroots-on-Debian.html&lt;br /&gt;
* http://repository.maemo.org/stable/4.1.2/INSTALL.txt&lt;br /&gt;
* http://maemo-sdk.garage.maemo.org/install-debian.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>96.248.214.254</name></author>
	</entry>
</feed>