<?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=194.109.161.58</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=194.109.161.58"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/194.109.161.58"/>
	<updated>2026-04-21T22:12:15Z</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=19398</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=19398"/>
		<updated>2013-03-04T17:53:33Z</updated>

		<summary type="html">&lt;p&gt;194.109.161.58: forgot to add &amp;quot;-eR&amp;quot; to the build-dep step, sorry&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;
Using lenny (old, from the archives):&lt;br /&gt;
 # aptitude install debootstrap&lt;br /&gt;
 # debootstrap --arch i386 lenny /srv/lenny-ia32 &amp;lt;nowiki&amp;gt;http://archive.debian.org/debian/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 # echo &amp;quot;deb &amp;lt;nowiki&amp;gt;http://maemo-sdk.garage.maemo.org/download/host debian-lenny&amp;lt;/nowiki&amp;gt; free&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/etc/apt/sources.list&lt;br /&gt;
 # aptitude install schroot&lt;br /&gt;
&lt;br /&gt;
Or using sqeeze (current stable):&lt;br /&gt;
 # aptitude install debootstrap&lt;br /&gt;
 # debootstrap --arch i386 squeeze &amp;lt;nowiki&amp;gt;/srv/lenny-ia32 http://ftp.debian.org/debian/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 # echo &amp;quot;deb &amp;lt;nowiki&amp;gt;http://maemo-sdk.garage.maemo.org/download/host debian-squeeze&amp;lt;/nowiki&amp;gt; free&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/etc/apt/sources.list&lt;br /&gt;
 # aptitude install schroot&lt;br /&gt;
You may want to adjust the /srv/lenny-ia32 directory, but then you&#039;d have to adjust it in the rest of the instructions as well (together with any other lenny references if you like).&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;s&amp;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;
 &#039;&#039;&#039;location&#039;&#039;&#039;=/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; (A comma-separated list of users on the host which are allowed access to the chroot)&lt;br /&gt;
 groups=&#039;&#039;&#039;&#039;&#039;&amp;lt;YOUR_USER_GROUPNAME_HERE!!&amp;gt;&#039;&#039;&#039;&#039;&#039; (A comma-separated list of groups on the host which are allowed access to the chroot. probably &amp;quot;users&amp;quot;)&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 aliases=stable,default&lt;br /&gt;
 EOF&amp;lt;/s&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 # eval $(sed -rne &#039;/^(FIRST|LAST)_.ID/p&#039; /etc/adduser.conf)&lt;br /&gt;
 # &#039;&#039;&#039;USER_LIST&#039;&#039;&#039;=$(sed -e &#039;s/ /,/&#039; &amp;lt;&amp;lt;&amp;lt; $(awk -F: $FIRST_UID&#039;&amp;lt;=$3 &amp;amp;&amp;amp; $3&amp;lt;=&#039;$LAST_UID&#039; {print $1}&#039; /etc/passwd))&lt;br /&gt;
 # &#039;&#039;&#039;GROUP_LIST&#039;&#039;&#039;=$(sed -e &#039;s/ /,/&#039; &amp;lt;&amp;lt;&amp;lt; $(awk -F: $FIRST_GID&#039;&amp;lt;=$3 &amp;amp;&amp;amp; $3&amp;lt;=&#039;$LAST_GID&#039; {print $1}&#039; /etc/passwd))&lt;br /&gt;
 # echo -e &amp;quot;[lenny]&lt;br /&gt;
 description=Debian lenny&lt;br /&gt;
 type=directory&lt;br /&gt;
 &#039;&#039;&#039;directory&#039;&#039;&#039;=/srv/lenny-ia32&lt;br /&gt;
 priority=3&lt;br /&gt;
 users=&#039;&#039;&#039;$USER_LIST&#039;&#039;&#039;&lt;br /&gt;
 groups=&#039;&#039;&#039;$GROUP_LIST&#039;&#039;&#039;&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 aliases=stable,default&amp;quot; &amp;gt;&amp;gt; /etc/schroot/schroot.conf&lt;br /&gt;
 # echo &amp;quot;export PS1=&#039;(lenny)\w \\$ &#039;&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/root/.bashrc&lt;br /&gt;
&lt;br /&gt;
===Installing Maemo SDK+===&lt;br /&gt;
While still logged in as root on the host:&lt;br /&gt;
 # schroot -c lenny&lt;br /&gt;
 (lenny)~ #&lt;br /&gt;
or&lt;br /&gt;
 # chroot /srv/lenny-ia32/ /bin/bash&lt;br /&gt;
 (lenny)/ #&lt;br /&gt;
&lt;br /&gt;
You are now logged in as root in the chrooted environment as  &#039;&#039;root&#039;&#039;.&lt;br /&gt;
 (lenny)~ # aptitude update&lt;br /&gt;
 (lenny)~ # aptitude install maemo-sdk&lt;br /&gt;
 (lenny)~ $ maemo-sdk reload catalogue&lt;br /&gt;
 (lenny)~ # maemo-sdk list available tools&lt;br /&gt;
 etch&lt;br /&gt;
 etch-2008&lt;br /&gt;
 lenny-2009-1&lt;br /&gt;
&lt;br /&gt;
Install tools:&lt;br /&gt;
 (lenny)~ # maemo-sdk --mirror &amp;lt;nowiki&amp;gt;http://archive.debian.org/debian/ install tools lenny-2009-1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 (lenny)~ # maemo-sdk list available toolchains&lt;br /&gt;
 arm-2005q3&lt;br /&gt;
 arm-2007q3&lt;br /&gt;
 i386-2007q3&lt;br /&gt;
&lt;br /&gt;
Install toolchain:&lt;br /&gt;
 (lenny)~ # maemo-sdk install toolchain arm-2007q3&lt;br /&gt;
&lt;br /&gt;
As the SDK needs to use sudo to gain root access later, we need to configure sudo:&lt;br /&gt;
 (lenny)~ # visudo&lt;br /&gt;
You will be in an editor session now. Modify the file so that it looks like this (remove the comment sign in front of the last lign):&lt;br /&gt;
 Defaults	env_reset&lt;br /&gt;
 root	ALL=(ALL) ALL&lt;br /&gt;
 %sudo ALL=NOPASSWD: ALL&lt;br /&gt;
&lt;br /&gt;
Now, log out of the schroot section, log out of the root account, and as a normal user on the host, log in to the chroot:&lt;br /&gt;
 (lenny)~ # logout&lt;br /&gt;
 # logout&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
 (lenny)~ $&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, choose a rootstrap to install:&lt;br /&gt;
 (lenny)~ $ maemo-sdk list available rootstraps&lt;br /&gt;
&lt;br /&gt;
You get a list of rootstraps&lt;br /&gt;
 diablo4.1.2_armel&lt;br /&gt;
 diablo4.1.2_i386&lt;br /&gt;
 diablo4.1.1_armel&lt;br /&gt;
 diablo4.1.1_i386&lt;br /&gt;
 diablo4.1_armel&lt;br /&gt;
 diablo4.1_i386&lt;br /&gt;
 fremantle5.0minimal_armel&lt;br /&gt;
 fremantle5.0minimal_i386&lt;br /&gt;
 fremantle5.0beta1_armel&lt;br /&gt;
 fremantle5.0beta1_i386&lt;br /&gt;
 scirocco2.2_armel&lt;br /&gt;
 scirocco2.2_i386&lt;br /&gt;
 mistral2.0_armel&lt;br /&gt;
&lt;br /&gt;
Now, install your desired rootstrap. For example&lt;br /&gt;
&lt;br /&gt;
 (lenny)~ $ maemo-sdk install rootstrap &#039;&#039;&#039;&#039;&#039;diablo4.1.2_armel&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 (lenny)~ $ sb2 -eR apt-get update&lt;br /&gt;
 (lenny)~ $ sb2 -eR apt-get install maemo-sdk-runtime maemo-sdk-dev maemo-sdk-debug&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 a normal (non-root) user on the host:&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
 (lenny)~ $ mkdir -p ~/src/mytest&lt;br /&gt;
 (lenny)~ $ cd ~/src/mytest&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 -eR apt-get update&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 apt-get -eR build-dep maemopad&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 apt-get source maemopad&lt;br /&gt;
 (lenny)~/src/mytest $ cd maemopad-2.6&lt;br /&gt;
 (lenny)~/src/mytest/maemopad-2.6 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl&lt;br /&gt;
 (lenny)~/src/mytest/maemopad-2.6 $ 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 &amp;amp;&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
 (lenny)~ $ export DISPLAY=:2&lt;br /&gt;
 (lenny)~ $ cd ~/src/mytest/&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 -eR dpkg -i maemopad_2.6-3+0m5_armel.deb&lt;br /&gt;
 (lenny)~/src/mytest $ maemo-sdk start gui&lt;br /&gt;
&amp;lt;s&amp;gt;Notice that Maemopad appears in the x11 window.&amp;lt;/s&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Now you can launch MaemoPad from the Extras menu in the Xephyr window.&lt;br /&gt;
 (lenny)~/src/mytest $ 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;
 (lenny)~ # 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;
I have ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/bin/run-standalone.sh and ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/bin/af-sb-init.sh &lt;br /&gt;
I&#039;m not sure where I got them --[[User:swajime|SwaJime]] 22:50, 5 August 2010 (UTC)&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;
This page has been brought up to date.--[[User:swajime|SwaJime]] 23:03, 5 August 2010 (UTC)&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>194.109.161.58</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Maemo_SDK%2B_installation_on_Debian_(AMD64)&amp;diff=19399</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=19399"/>
		<updated>2013-03-04T17:50:15Z</updated>

		<summary type="html">&lt;p&gt;194.109.161.58: updating the catalog before listing anyway, made non-link urls unclickable, added &amp;quot;build-dep&amp;quot; step as that&amp;#039;s what I needed to&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;
Using lenny (old, from the archives):&lt;br /&gt;
 # aptitude install debootstrap&lt;br /&gt;
 # debootstrap --arch i386 lenny /srv/lenny-ia32 &amp;lt;nowiki&amp;gt;http://archive.debian.org/debian/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 # echo &amp;quot;deb &amp;lt;nowiki&amp;gt;http://maemo-sdk.garage.maemo.org/download/host debian-lenny&amp;lt;/nowiki&amp;gt; free&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/etc/apt/sources.list&lt;br /&gt;
 # aptitude install schroot&lt;br /&gt;
&lt;br /&gt;
Or using sqeeze (current stable):&lt;br /&gt;
 # aptitude install debootstrap&lt;br /&gt;
 # debootstrap --arch i386 squeeze &amp;lt;nowiki&amp;gt;/srv/lenny-ia32 http://ftp.debian.org/debian/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 # echo &amp;quot;deb &amp;lt;nowiki&amp;gt;http://maemo-sdk.garage.maemo.org/download/host debian-squeeze&amp;lt;/nowiki&amp;gt; free&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/etc/apt/sources.list&lt;br /&gt;
 # aptitude install schroot&lt;br /&gt;
You may want to adjust the /srv/lenny-ia32 directory, but then you&#039;d have to adjust it in the rest of the instructions as well (together with any other lenny references if you like).&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;s&amp;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;
 &#039;&#039;&#039;location&#039;&#039;&#039;=/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; (A comma-separated list of users on the host which are allowed access to the chroot)&lt;br /&gt;
 groups=&#039;&#039;&#039;&#039;&#039;&amp;lt;YOUR_USER_GROUPNAME_HERE!!&amp;gt;&#039;&#039;&#039;&#039;&#039; (A comma-separated list of groups on the host which are allowed access to the chroot. probably &amp;quot;users&amp;quot;)&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 aliases=stable,default&lt;br /&gt;
 EOF&amp;lt;/s&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 # eval $(sed -rne &#039;/^(FIRST|LAST)_.ID/p&#039; /etc/adduser.conf)&lt;br /&gt;
 # &#039;&#039;&#039;USER_LIST&#039;&#039;&#039;=$(sed -e &#039;s/ /,/&#039; &amp;lt;&amp;lt;&amp;lt; $(awk -F: $FIRST_UID&#039;&amp;lt;=$3 &amp;amp;&amp;amp; $3&amp;lt;=&#039;$LAST_UID&#039; {print $1}&#039; /etc/passwd))&lt;br /&gt;
 # &#039;&#039;&#039;GROUP_LIST&#039;&#039;&#039;=$(sed -e &#039;s/ /,/&#039; &amp;lt;&amp;lt;&amp;lt; $(awk -F: $FIRST_GID&#039;&amp;lt;=$3 &amp;amp;&amp;amp; $3&amp;lt;=&#039;$LAST_GID&#039; {print $1}&#039; /etc/passwd))&lt;br /&gt;
 # echo -e &amp;quot;[lenny]&lt;br /&gt;
 description=Debian lenny&lt;br /&gt;
 type=directory&lt;br /&gt;
 &#039;&#039;&#039;directory&#039;&#039;&#039;=/srv/lenny-ia32&lt;br /&gt;
 priority=3&lt;br /&gt;
 users=&#039;&#039;&#039;$USER_LIST&#039;&#039;&#039;&lt;br /&gt;
 groups=&#039;&#039;&#039;$GROUP_LIST&#039;&#039;&#039;&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 aliases=stable,default&amp;quot; &amp;gt;&amp;gt; /etc/schroot/schroot.conf&lt;br /&gt;
 # echo &amp;quot;export PS1=&#039;(lenny)\w \\$ &#039;&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/root/.bashrc&lt;br /&gt;
&lt;br /&gt;
===Installing Maemo SDK+===&lt;br /&gt;
While still logged in as root on the host:&lt;br /&gt;
 # schroot -c lenny&lt;br /&gt;
 (lenny)~ #&lt;br /&gt;
or&lt;br /&gt;
 # chroot /srv/lenny-ia32/ /bin/bash&lt;br /&gt;
 (lenny)/ #&lt;br /&gt;
&lt;br /&gt;
You are now logged in as root in the chrooted environment as  &#039;&#039;root&#039;&#039;.&lt;br /&gt;
 (lenny)~ # aptitude update&lt;br /&gt;
 (lenny)~ # aptitude install maemo-sdk&lt;br /&gt;
 (lenny)~ $ maemo-sdk reload catalogue&lt;br /&gt;
 (lenny)~ # maemo-sdk list available tools&lt;br /&gt;
 etch&lt;br /&gt;
 etch-2008&lt;br /&gt;
 lenny-2009-1&lt;br /&gt;
&lt;br /&gt;
Install tools:&lt;br /&gt;
 (lenny)~ # maemo-sdk --mirror &amp;lt;nowiki&amp;gt;http://archive.debian.org/debian/ install tools lenny-2009-1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 (lenny)~ # maemo-sdk list available toolchains&lt;br /&gt;
 arm-2005q3&lt;br /&gt;
 arm-2007q3&lt;br /&gt;
 i386-2007q3&lt;br /&gt;
&lt;br /&gt;
Install toolchain:&lt;br /&gt;
 (lenny)~ # maemo-sdk install toolchain arm-2007q3&lt;br /&gt;
&lt;br /&gt;
As the SDK needs to use sudo to gain root access later, we need to configure sudo:&lt;br /&gt;
 (lenny)~ # visudo&lt;br /&gt;
You will be in an editor session now. Modify the file so that it looks like this (remove the comment sign in front of the last lign):&lt;br /&gt;
 Defaults	env_reset&lt;br /&gt;
 root	ALL=(ALL) ALL&lt;br /&gt;
 %sudo ALL=NOPASSWD: ALL&lt;br /&gt;
&lt;br /&gt;
Now, log out of the schroot section, log out of the root account, and as a normal user on the host, log in to the chroot:&lt;br /&gt;
 (lenny)~ # logout&lt;br /&gt;
 # logout&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
 (lenny)~ $&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, choose a rootstrap to install:&lt;br /&gt;
 (lenny)~ $ maemo-sdk list available rootstraps&lt;br /&gt;
&lt;br /&gt;
You get a list of rootstraps&lt;br /&gt;
 diablo4.1.2_armel&lt;br /&gt;
 diablo4.1.2_i386&lt;br /&gt;
 diablo4.1.1_armel&lt;br /&gt;
 diablo4.1.1_i386&lt;br /&gt;
 diablo4.1_armel&lt;br /&gt;
 diablo4.1_i386&lt;br /&gt;
 fremantle5.0minimal_armel&lt;br /&gt;
 fremantle5.0minimal_i386&lt;br /&gt;
 fremantle5.0beta1_armel&lt;br /&gt;
 fremantle5.0beta1_i386&lt;br /&gt;
 scirocco2.2_armel&lt;br /&gt;
 scirocco2.2_i386&lt;br /&gt;
 mistral2.0_armel&lt;br /&gt;
&lt;br /&gt;
Now, install your desired rootstrap. For example&lt;br /&gt;
&lt;br /&gt;
 (lenny)~ $ maemo-sdk install rootstrap &#039;&#039;&#039;&#039;&#039;diablo4.1.2_armel&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 (lenny)~ $ sb2 -eR apt-get update&lt;br /&gt;
 (lenny)~ $ sb2 -eR apt-get install maemo-sdk-runtime maemo-sdk-dev maemo-sdk-debug&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 a normal (non-root) user on the host:&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
 (lenny)~ $ mkdir -p ~/src/mytest&lt;br /&gt;
 (lenny)~ $ cd ~/src/mytest&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 -eR apt-get update&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 apt-get build-dep maemopad&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 apt-get source maemopad&lt;br /&gt;
 (lenny)~/src/mytest $ cd maemopad-2.6&lt;br /&gt;
 (lenny)~/src/mytest/maemopad-2.6 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl&lt;br /&gt;
 (lenny)~/src/mytest/maemopad-2.6 $ 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 &amp;amp;&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
 (lenny)~ $ export DISPLAY=:2&lt;br /&gt;
 (lenny)~ $ cd ~/src/mytest/&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 -eR dpkg -i maemopad_2.6-3+0m5_armel.deb&lt;br /&gt;
 (lenny)~/src/mytest $ maemo-sdk start gui&lt;br /&gt;
&amp;lt;s&amp;gt;Notice that Maemopad appears in the x11 window.&amp;lt;/s&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Now you can launch MaemoPad from the Extras menu in the Xephyr window.&lt;br /&gt;
 (lenny)~/src/mytest $ 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;
 (lenny)~ # 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;
I have ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/bin/run-standalone.sh and ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/bin/af-sb-init.sh &lt;br /&gt;
I&#039;m not sure where I got them --[[User:swajime|SwaJime]] 22:50, 5 August 2010 (UTC)&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;
This page has been brought up to date.--[[User:swajime|SwaJime]] 23:03, 5 August 2010 (UTC)&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>194.109.161.58</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Maemo_SDK%2B_installation_on_Debian_(AMD64)&amp;diff=19400</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=19400"/>
		<updated>2013-03-02T05:29:26Z</updated>

		<summary type="html">&lt;p&gt;194.109.161.58: fixed lenny, added squeeze. was figuring it out anyway...&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;
Using lenny (old, from the archives):&lt;br /&gt;
 # aptitude install debootstrap&lt;br /&gt;
 # debootstrap --arch i386 lenny /srv/lenny-ia32 http://archive.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;
&lt;br /&gt;
Or using sqeeze (current stable):&lt;br /&gt;
 # aptitude install debootstrap&lt;br /&gt;
 # debootstrap --arch i386 squeeze /srv/lenny-ia32 http://ftp.debian.org/debian/&lt;br /&gt;
 # echo &amp;quot;deb http://maemo-sdk.garage.maemo.org/download/host debian-squeeze free&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/etc/apt/sources.list&lt;br /&gt;
 # aptitude install schroot&lt;br /&gt;
You may want to adjust the /srv/lenny-ia32 directory, but then you&#039;d have to adjust it in the rest of the instructions as well (together with any other lenny references if you like).&lt;br /&gt;
  &lt;br /&gt;
 &amp;lt;s&amp;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;
 &#039;&#039;&#039;location&#039;&#039;&#039;=/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; (A comma-separated list of users on the host which are allowed access to the chroot)&lt;br /&gt;
 groups=&#039;&#039;&#039;&#039;&#039;&amp;lt;YOUR_USER_GROUPNAME_HERE!!&amp;gt;&#039;&#039;&#039;&#039;&#039; (A comma-separated list of groups on the host which are allowed access to the chroot. probably &amp;quot;users&amp;quot;)&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 aliases=stable,default&lt;br /&gt;
 EOF&amp;lt;/s&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 # eval $(sed -rne &#039;/^(FIRST|LAST)_.ID/p&#039; /etc/adduser.conf)&lt;br /&gt;
 # &#039;&#039;&#039;USER_LIST&#039;&#039;&#039;=$(sed -e &#039;s/ /,/&#039; &amp;lt;&amp;lt;&amp;lt; $(awk -F: $FIRST_UID&#039;&amp;lt;=$3 &amp;amp;&amp;amp; $3&amp;lt;=&#039;$LAST_UID&#039; {print $1}&#039; /etc/passwd))&lt;br /&gt;
 # &#039;&#039;&#039;GROUP_LIST&#039;&#039;&#039;=$(sed -e &#039;s/ /,/&#039; &amp;lt;&amp;lt;&amp;lt; $(awk -F: $FIRST_GID&#039;&amp;lt;=$3 &amp;amp;&amp;amp; $3&amp;lt;=&#039;$LAST_GID&#039; {print $1}&#039; /etc/passwd))&lt;br /&gt;
 # echo -e &amp;quot;[lenny]&lt;br /&gt;
 description=Debian lenny&lt;br /&gt;
 type=directory&lt;br /&gt;
 &#039;&#039;&#039;directory&#039;&#039;&#039;=/srv/lenny-ia32&lt;br /&gt;
 priority=3&lt;br /&gt;
 users=&#039;&#039;&#039;$USER_LIST&#039;&#039;&#039;&lt;br /&gt;
 groups=&#039;&#039;&#039;$GROUP_LIST&#039;&#039;&#039;&lt;br /&gt;
 root-groups=root&lt;br /&gt;
 aliases=stable,default&amp;quot; &amp;gt;&amp;gt; /etc/schroot/schroot.conf&lt;br /&gt;
 # echo &amp;quot;export PS1=&#039;(lenny)\w \\$ &#039;&amp;quot; &amp;gt;&amp;gt; /srv/lenny-ia32/root/.bashrc&lt;br /&gt;
&lt;br /&gt;
===Installing Maemo SDK+===&lt;br /&gt;
While still logged in as root on the host:&lt;br /&gt;
 # schroot -c lenny&lt;br /&gt;
 (lenny)~ #&lt;br /&gt;
or&lt;br /&gt;
 # chroot /srv/lenny-ia32/ /bin/bash&lt;br /&gt;
 (lenny)/ #&lt;br /&gt;
&lt;br /&gt;
You are now logged in as root in the chrooted environment as  &#039;&#039;root&#039;&#039;.&lt;br /&gt;
 (lenny)~ # aptitude update&lt;br /&gt;
 (lenny)~ # aptitude install maemo-sdk&lt;br /&gt;
 (lenny)~ # maemo-sdk list available tools&lt;br /&gt;
 etch&lt;br /&gt;
 etch-2008&lt;br /&gt;
 lenny-2009-1&lt;br /&gt;
&lt;br /&gt;
If nothing shows, try again after running:&lt;br /&gt;
 (lenny)~ $ maemo-sdk reload catalogue&lt;br /&gt;
&lt;br /&gt;
Install tools:&lt;br /&gt;
 (lenny)~ # maemo-sdk --mirror http://archive.debian.org/debian/ install tools lenny-2009-1&lt;br /&gt;
&lt;br /&gt;
 (lenny)~ # maemo-sdk list available toolchains&lt;br /&gt;
 arm-2005q3&lt;br /&gt;
 arm-2007q3&lt;br /&gt;
 i386-2007q3&lt;br /&gt;
&lt;br /&gt;
Install toolchain:&lt;br /&gt;
 (lenny)~ # maemo-sdk install toolchain arm-2007q3&lt;br /&gt;
&lt;br /&gt;
As the SDK needs to use sudo to gain root access later, we need to configure sudo:&lt;br /&gt;
 (lenny)~ # visudo&lt;br /&gt;
You will be in an editor session now. Modify the file so that it looks like this (remove the comment sign in front of the last lign):&lt;br /&gt;
 Defaults	env_reset&lt;br /&gt;
 root	ALL=(ALL) ALL&lt;br /&gt;
 %sudo ALL=NOPASSWD: ALL&lt;br /&gt;
&lt;br /&gt;
Now, log out of the schroot section, log out of the root account, and as a normal user on the host, log in to the chroot:&lt;br /&gt;
 (lenny)~ # logout&lt;br /&gt;
 # logout&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
 (lenny)~ $&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, choose a rootstrap to install:&lt;br /&gt;
 (lenny)~ $ maemo-sdk list available rootstraps&lt;br /&gt;
&lt;br /&gt;
You get a list of rootstraps&lt;br /&gt;
 diablo4.1.2_armel&lt;br /&gt;
 diablo4.1.2_i386&lt;br /&gt;
 diablo4.1.1_armel&lt;br /&gt;
 diablo4.1.1_i386&lt;br /&gt;
 diablo4.1_armel&lt;br /&gt;
 diablo4.1_i386&lt;br /&gt;
 fremantle5.0minimal_armel&lt;br /&gt;
 fremantle5.0minimal_i386&lt;br /&gt;
 fremantle5.0beta1_armel&lt;br /&gt;
 fremantle5.0beta1_i386&lt;br /&gt;
 scirocco2.2_armel&lt;br /&gt;
 scirocco2.2_i386&lt;br /&gt;
 mistral2.0_armel&lt;br /&gt;
&lt;br /&gt;
Now, install your desired rootstrap. For example&lt;br /&gt;
&lt;br /&gt;
 (lenny)~ $ maemo-sdk install rootstrap &#039;&#039;&#039;&#039;&#039;diablo4.1.2_armel&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 (lenny)~ $ sb2 -eR apt-get update&lt;br /&gt;
 (lenny)~ $ sb2 -eR apt-get install maemo-sdk-runtime maemo-sdk-dev maemo-sdk-debug&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 a normal (non-root) user on the host:&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
 (lenny)~ $ mkdir -p ~/src/mytest&lt;br /&gt;
 (lenny)~ $ cd ~/src/mytest&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 -eR apt-get update&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 apt-get source maemopad&lt;br /&gt;
 (lenny)~/src/mytest $ cd maemopad-2.6&lt;br /&gt;
 (lenny)~/src/mytest/maemopad-2.6 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl&lt;br /&gt;
 (lenny)~/src/mytest/maemopad-2.6 $ 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 &amp;amp;&lt;br /&gt;
 $ schroot -c lenny&lt;br /&gt;
You are now logged in &amp;lt;s&amp;gt;as root in&amp;lt;/s&amp;gt; to the chrooted environment as a &#039;&#039;normal (non-root) user&#039;&#039;.&lt;br /&gt;
 (lenny)~ $ export DISPLAY=:2&lt;br /&gt;
 (lenny)~ $ cd ~/src/mytest/&lt;br /&gt;
 (lenny)~/src/mytest $ sb2 -eR dpkg -i maemopad_2.6-3+0m5_armel.deb&lt;br /&gt;
 (lenny)~/src/mytest $ maemo-sdk start gui&lt;br /&gt;
&amp;lt;s&amp;gt;Notice that Maemopad appears in the x11 window.&amp;lt;/s&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Now you can launch MaemoPad from the Extras menu in the Xephyr window.&lt;br /&gt;
 (lenny)~/src/mytest $ 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;
 (lenny)~ # 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;
I have ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/bin/run-standalone.sh and ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/bin/af-sb-init.sh &lt;br /&gt;
I&#039;m not sure where I got them --[[User:swajime|SwaJime]] 22:50, 5 August 2010 (UTC)&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;
This page has been brought up to date.--[[User:swajime|SwaJime]] 23:03, 5 August 2010 (UTC)&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>194.109.161.58</name></author>
	</entry>
</feed>