Installing Maemo SDK: my experience

As I'm *expecting* my n800 by this weekend I've started yesterday to install maemo SDK on my machines.

The installation instructions are good, the installation scripts do help a lot, but sometimes they print too much to the screen that you give up, don't read anything and face some problems later.

The starting point for everybody interested on maemo is http://maemo.org/. To install the SDK go to http://maemo.org/development/sdks/. By today the stable version is 3.x bora, more specifically 3.2.

So, lets install 3.2 version... BUT you have to install 3.1 first, and them upgrade to 3.2.

Installing maemo 3.1

First I got the INSTALL.txt and the installer scripts Scratchbox Installer script and SDK installer script.

Then I ran maemo-scratchbox-install_3.1.sh as root. On this step I probably missed something it printed out and I had problems later. Basically it could not install the package scratchbox-devkit-maemo3-1.0 and it's required by maemo sdk. The 1.0 version of this package didn't install on my system (ubuntu gutsy, far from stable... hehe), so I got the 1.0.1 version from here and finally was able to install it with:
dpkg -i scratchbox-devkit-maemo3_1.0.1_i386.deb.

With scratchbox properly installed it's time to install maemo sdk for real:

Ran ./maemo-sdk-install_3.1.sh as regular user. It does print out A LOT, and I obviously didn't read "anything" again! Guess what, I had another problem, I could resolve names inside scratchbox env:

[sbox-SDK_X86: ~] > apt-get update
Err http://repository.maemo.org bora/free Packages
  Could not resolve 'repository.maemo.org'

This is what I missed:

Even though the SDK was successfully installed, the installation process
was unable to run 'apt-get update' inside the installed targets in order
to update the local package database. This could be due to a error in
network configuration inside scratchbox. A common causes are incorrect proxy
settings and the 'hosts' line in /scratchbox/etc/nsswitch.conf.
For the 'hosts' line in /scratchbox/etc/nsswitch.conf the following should
usually be enough:
hosts:          files dns

Once network connections inside scratchbox are working, you should run
'apt-get update' on both targets.

After looking on the internet and finding how to solve it, I decided to check the backlog and there it was.

Finally maemo sdk 3.1 was installed. Obviously I wanted the 3.2, so time to upgrade.

Upgrading to maemo 3.2

From the scratchbox environment (/scratchbox/login) I ran the following commands on both targets (SDK_ARMEL and SDK_X86):

$ apt-get update
$ PAGER=less fakeroot apt-get dist-upgrade

Note: Use sb-conf select TARGET to switch between targets.

That's it! Maemo 3.2 is working fine on my machine.

Final notes

Do you think I would suggest to read everything that the scripts print out, right? I won't :) Do as you choose... google is your "best" friend.

Rodrigo Vivi: I'm just waiting! :)

Comments

"After looking on the

"After looking on the internet and finding how to solve it" how to solve it?

Thanks for the Info

Thanks for the Info

how to solve this problem

how to solve this problem "Once network connections inside scratchbox are working, you should run
'apt-get update' on both targets."

Post new comment

Google Friend Connect (leave a quick comment)
loading...
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options