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.
-
Using lenny (old, from the archives):
 
  # aptitude install debootstrap
  # aptitude install debootstrap
-
  # debootstrap --arch i386 lenny /srv/lenny-ia32 <nowiki>http://archive.debian.org/debian/</nowiki>
+
  # debootstrap --arch i386 lenny /srv/lenny-ia32 http://ftp.debian.org/debian/
-
  # echo "deb <nowiki>http://maemo-sdk.garage.maemo.org/download/host debian-lenny</nowiki> free" >> /srv/lenny-ia32/etc/apt/sources.list
+
  # 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
-
 
+
   
-
Or using sqeeze (current stable):
+
-
  # aptitude install debootstrap
+
-
# debootstrap --arch i386 squeeze <nowiki>/srv/lenny-ia32 http://ftp.debian.org/debian/</nowiki>
+
-
# echo "deb <nowiki>http://maemo-sdk.garage.maemo.org/download/host debian-squeeze</nowiki> free" >> /srv/lenny-ia32/etc/apt/sources.list
+
-
# aptitude install schroot
+
-
You may want to adjust the /srv/lenny-ia32 directory, but then you'd have to adjust it in the rest of the instructions as well (together with any other lenny references if you like).
+
-
 
+
  <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 reload catalogue
 
  (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
-
Install tools:
+
-
  (lenny)~ # maemo-sdk --mirror <nowiki>http://archive.debian.org/debian/ install tools lenny-2009-1</nowiki>
+
-
 
+
  (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
-
Install toolchain:
+
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 -eR build-dep maemopad
 
  (lenny)~/src/mytest $ sb2 apt-get source maemopad
  (lenny)~/src/mytest $ sb2 apt-get source maemopad
-
  (lenny)~/src/mytest $ cd maemopad-2.6
+
  (lenny)~/src/mytest $ cd maemopad-2.4
-
  (lenny)~/src/mytest/maemopad-2.6 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl
+
  (lenny)~/src/mytest/maemopad-2.4 $ export SBOX_REDIRECT_FORCE=/usr/bin/perl
-
  (lenny)~/src/mytest/maemopad-2.6 $ sb2 dpkg-buildpackage -rfakeroot -d -b
+
  (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.6-3+0m5_armel.deb
+
  (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.
-
 
-
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
 
-
I'm not sure where I got them --[[User:swajime|SwaJime]] 22:50, 5 August 2010 (UTC)
 
===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
-
This page has been brought up to date.--[[User:swajime|SwaJime]] 23:03, 5 August 2010 (UTC)
 
[[Category:Development]]
[[Category:Development]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)