Editing Building a Virtual Machine for Maemo development

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 27: Line 27:
*Install Scratchbox <pre>$ sudo apt-get install scratchbox-core scratchbox-devkit-apt-https scratchbox-devkit-autotools-legacy scratchbox-devkit-debian-squeeze scratchbox-devkit-doctools scratchbox-devkit-git scratchbox-devkit-perl scratchbox-devkit-python-legacy scratchbox-devkit-qemu scratchbox-devkit-svn scratchbox-libs scratchbox-toolchain-cs2007q3-glibc2.5-arm7 scratchbox-toolchain-cs2007q3-glibc2.5-i486 scratchbox-toolchain-host-gcc xserver-xephyr</pre>
*Install Scratchbox <pre>$ sudo apt-get install scratchbox-core scratchbox-devkit-apt-https scratchbox-devkit-autotools-legacy scratchbox-devkit-debian-squeeze scratchbox-devkit-doctools scratchbox-devkit-git scratchbox-devkit-perl scratchbox-devkit-python-legacy scratchbox-devkit-qemu scratchbox-devkit-svn scratchbox-libs scratchbox-toolchain-cs2007q3-glibc2.5-arm7 scratchbox-toolchain-cs2007q3-glibc2.5-i486 scratchbox-toolchain-host-gcc xserver-xephyr</pre>
*Create a Scratchbox user <pre>$ /scratchbox/sbin/sbox_adduser <username></pre>
*Create a Scratchbox user <pre>$ /scratchbox/sbin/sbox_adduser <username></pre>
-
*Log out-in or execute to refresh group permissions<pre>$ newgrp sbox && newgrp</pre>
 
== Installing the Maemo SDK ==
== Installing the Maemo SDK ==
Line 33: Line 32:
*Download the Maemo SDK installer: <pre>$ wget http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh</pre>
*Download the Maemo SDK installer: <pre>$ wget http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh</pre>
*Replace all occurrences of 'etch' with 'squeeze': <pre>$ sed -i -e 's/etch/squeeze/g' maemo-sdk-install_5.0.sh</pre>
*Replace all occurrences of 'etch' with 'squeeze': <pre>$ sed -i -e 's/etch/squeeze/g' maemo-sdk-install_5.0.sh</pre>
-
*Launch the installer: <pre>$ sh ./maemo-sdk-install_5.0.sh</pre>
+
*Launch the installer: <pre>$ sudo sh ./maemo-sdk-install_5.0.sh</pre>
== Log in to Scratchbox ==
== Log in to Scratchbox ==
Line 39: Line 38:
#Log in to Scratchbox <pre>$ /scratchbox/login</pre>
#Log in to Scratchbox <pre>$ /scratchbox/login</pre>
#Proceed further to accept the EULA in order to obtain the Nokia proprietary binary packages. These Nokia binaries are essential for the complete functionality of the Maemo SDK:
#Proceed further to accept the EULA in order to obtain the Nokia proprietary binary packages. These Nokia binaries are essential for the complete functionality of the Maemo SDK:
 +
#Add this source to the Scratchbox repositories for both ARM and x86 architectures using the instructions in the next step: <pre>deb http://skeiron.org/repo/repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries</pre>
#Execute the commands below on the FREMANTLE_ARMEL and FREMANTLE_X86 targets.
#Execute the commands below on the FREMANTLE_ARMEL and FREMANTLE_X86 targets.
-
  <nowiki>[sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
+
  [sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
-
   [sbox-FREMANTLE_ARMEL: ~] > echo "deb http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries" >> /etc/apt/sources.list
+
   [sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list # add deb line
   [sbox-FREMANTLE_ARMEL: ~] > apt-get update
   [sbox-FREMANTLE_ARMEL: ~] > apt-get update
   [sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps
   [sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps
   [sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_X86
   [sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_X86
-
   [sbox-FREMANTLE_X86: ~] > echo "deb http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries" >> /etc/apt/sources.list
+
   [sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list # add deb line
   [sbox-FREMANTLE_X86: ~] > apt-get update
   [sbox-FREMANTLE_X86: ~] > apt-get update
-
   [sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps</nowiki>
+
   [sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps
-
 
+
#The above step installs all needed Nokia proprietary binary packages along with the open source binaries that have dependencies to Nokia proprietary binary packages. With this, your Maemo 5 SDK environment is set up completely and ready for development.
-
The above step installs all needed Nokia proprietary binary packages along with the open source binaries that have dependencies to Nokia proprietary binary packages. With this, your Maemo 5 SDK environment is set up completely and ready for development.
+
#If you got any DNS errors with apt-get install resolving 'repository.maemo.org', you may need to update the resolver config inside scratchbox with: <pre>$ sudo /scratchbox/sbin/sbox_sync</pre>
-
 
+
-
If you got any DNS errors with apt-get install resolving 'repository.maemo.org', you may need to update the resolver config inside scratchbox with: <pre>$ sudo /scratchbox/sbin/sbox_sync</pre>
+
-
 
+
-
 
+
-
Consider adding some more repositories to /etc/apt/sources.list :
+
-
<pre><nowiki>
+
-
#Extras
+
-
deb http://repository.maemo.org/extras/ fremantle free non-free
+
-
deb-src http://repository.maemo.org/extras/ fremantle free
+
-
 
+
-
#Extras Testing
+
-
deb http://repository.maemo.org/extras-testing/ fremantle free non-free
+
-
deb-src http://repository.maemo.org/extras-testing/ fremantle free
+
-
 
+
-
#Extras Devel
+
-
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
+
-
deb-src http://repository.maemo.org/extras-devel/ fremantle free</nowiki></pre>
+
-
[[Category:Fremantle]]
+
-
[[Category:Scratchbox]]
+

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)