Editing Maemo training material/Getting Started/Installing the SDK

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:
-
{{LaTeX2HTML2Wiki}}
 
=<span class="arabic">2</span>.<span class="arabic">1</span> Getting started=
=<span class="arabic">2</span>.<span class="arabic">1</span> Getting started=
Line 113: Line 112:
<br /><div class="graybox">
<br /><div class="graybox">
-
 
+
  user@system:~$ sh maemo-sdk-install_X.X.sh
  user@system:~$ sh maemo-sdk-install_X.X.sh
-
 
-
</div><br /><br />
 
-
 
-
if you get the error "Error opening terminal: xterm." try:
 
-
 
-
<br /><div class="graybox">
 
-
 
-
 
-
user@system:~$ sudo ln -s /lib/terminfo/x/xterm /usr/share/terminfo/x/xterm
 
</div><br /><br />
</div><br /><br />
Line 179: Line 169:
=<span class="arabic">2</span>.<span class="arabic">8</span> Manual install of the maemo SDK=
=<span class="arabic">2</span>.<span class="arabic">8</span> Manual install of the maemo SDK=
-
In order to install the maemo SDK manually, the first step is to download the necessary rootstrap files. There will be two: one for the X86 target, and the other one for the ARM target.
+
In order to install the maemo SDK manually, the first step is to download the necessary rootstrap files. There will be two: one for the X86 target, and the other one for the ARM target.
The rootstrap files are available in the same location as the automatic install scripts (for maemo 4.1 SDK they can be found at [http://repository.maemo.org/stable/diablo/ maemo.org]).
The rootstrap files are available in the same location as the automatic install scripts (for maemo 4.1 SDK they can be found at [http://repository.maemo.org/stable/diablo/ maemo.org]).
Line 237: Line 227:
# Using TAB arrows, navigate to the proper rootstrap file (the one that ends with i386), and select it by pressing space and then press ENTER to go forward.
# Using TAB arrows, navigate to the proper rootstrap file (the one that ends with i386), and select it by pressing space and then press ENTER to go forward.
# Unpacking the rootstrap will not take long, and soon after that, a dialog will come up with a question about files installation. Select "Yes" (even if it is not entirely obvious what the question means), and then select the <code>C-library</code>, <code>/etc</code>, <code>Devkits</code> and <code>fakeroot</code>. Other tools can be installed later from the maemo SDK repository (or local mirror of the repository).
# Unpacking the rootstrap will not take long, and soon after that, a dialog will come up with a question about files installation. Select "Yes" (even if it is not entirely obvious what the question means), and then select the <code>C-library</code>, <code>/etc</code>, <code>Devkits</code> and <code>fakeroot</code>. Other tools can be installed later from the maemo SDK repository (or local mirror of the repository).
-
# After extracting the selected files from the rootstrap, the target is now ready. You should next opt to select the target (so that it becomes active and will be default target from now on). Selecting the target will restart the Scratchbox session and if everything went well, you are now left with a very minimal maemo SDK environment: <br /><br />
+
# After extracting the selected files from the rootstrap, the target is now ready. You should next opt to select the target (so that it becomes active and will be default target from now on). Selecting the target will restart the Scratchbox session and if everything went well, you are now left with a very minimal maemo SDK environment: <br /><br /><div class="graybox">  
-
<div class="graybox">  
+
  Shell restarting...
  Shell restarting...
  [sbox-DIABLO_X86: ~] > arch
  [sbox-DIABLO_X86: ~] > arch
Line 244: Line 233:
  [sbox-DIABLO_X86: ~] > dpkg -l | grep maemo-repository
  [sbox-DIABLO_X86: ~] > dpkg -l | grep maemo-repository
  ii  maemo-repository      4.1-1              Configuration for maemo repository.
  ii  maemo-repository      4.1-1              Configuration for maemo repository.
-
</div>
+
</div><br /><br />
-
 
+
# In order to complete the SDK installation, you will have to fetch the package list and then install the maemo-sdk-dev meta-package. The package depends on a lot of other packages, and all of them will be downloaded into the target. The number of packages is quite significant, so reserve some time for this step. This step will require a working Internet connection (or DNS redirection into a local copy of the repository). <br /><br /><div class="graybox">  
-
# In order to complete the SDK installation, you will have to fetch the package list and then install the maemo-sdk-dev meta-package. The package depends on a lot of other packages, and all of them will be downloaded into the target. The number of packages is quite significant, so reserve some time for this step. This step will require a working Internet connection (or DNS redirection into a local copy of the repository). <br /><br />
+
-
 
+
-
<div class="graybox">  
+
  [sbox-DIABLO_X86: ~] > apt-get update
  [sbox-DIABLO_X86: ~] > apt-get update
-
</div>
+
</div><br /><br /><div class="graybox">  
-
 
+
-
<div class="graybox">  
+
  [sbox-DIABLO_X86: ~] > fakeroot apt-get install maemo-sdk-dev
  [sbox-DIABLO_X86: ~] > fakeroot apt-get install maemo-sdk-dev
-
</div>
+
</div><br /><br />Using fakeroot is important in the above command so that the package install scripts think that they are running as the root user. Otherwise the installation phase will fail with errors. Modern Debian-style repositories are signed with GPG keys in order to prevent tampering with the repository contents. The maemo repositories, however, do not use this convention, and this makes <code>apt-get</code> slightly conserned. This can be ignored by accepting installation of unverified packages.
-
 
+
-
Using fakeroot is important in the above command so that the package install scripts think that they are running as the root user. Otherwise the installation phase will fail with errors. Modern Debian-style repositories are signed with GPG keys in order to prevent tampering with the repository contents. The maemo repositories, however, do not use this convention, and this makes <code>apt-get</code> slightly conserned. This can be ignored by accepting installation of unverified packages.
+
# The closed Nokia binaries can be obtained by running the script maemo-sdk-nokia-binaries_X.X.sh. If you choose to accept the EUSA, then proceed to the following step.
# The closed Nokia binaries can be obtained by running the script maemo-sdk-nokia-binaries_X.X.sh. If you choose to accept the EUSA, then proceed to the following step.
# You can install all the nokia binaries in your targets by installing the meta package 'maemo-explicit'.
# You can install all the nokia binaries in your targets by installing the meta package 'maemo-explicit'.
Line 266: Line 248:
=<span class="arabic">2</span>.<span class="arabic">9</span> Manual install of the ARMEL target=
=<span class="arabic">2</span>.<span class="arabic">9</span> Manual install of the ARMEL target=
-
If the X86 target was installed manually (above), it is advisable to create the ARMEL target to enable building software for the Internet Tablets. This step can also be postponed until the need to perform cross-building for Internet Tablets arises.
+
If the X86 target was installed manually (above), it is advisable to create the ARMEL target to enable building software for the Internet Tablets. This step can also be postponed until the need to perform cross-building for Internet Tablets arises.
If the automatic install process was used, the ARMEL target is already available (as DIABLO_ARMEL), and the following steps are not necessary.
If the automatic install process was used, the ARMEL target is already available (as DIABLO_ARMEL), and the following steps are not necessary.

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)

Templates used on this page: