Yet another tutorial to install the Maemo development environment

January 19th, 2007

In research group, I am collaborating in a project that intends to test some libraries on the Nokia 770/N880. As a first step, I wrote a little tutorial to install the Maemo development environment, based on the official tutorial.

I can not link to the wiki page because it is internal to the group, and the tool that we are using does not allow to grant access only to one page. So I reproduce here the tutorial.

How to install the Maemo development environment

Maemo is the same sytem that the Nokia 770 runs, but intended to be executed in an usual computer. With this environment, you may test your programs before compiling them to the ARM architecture. It is exactly the same system that the Nokia 770 (except propietary applications such as the web browser), but compiled for i386.

  • Download the installer.
  • Execute it with root permissions (as root or with sudo)
  • If you are lucky enough, it will work under your system. I am not, so I switched to the alternative method..
  • The Debian packages seem not to work under Ubuntu Edgy, so I used the tar.gz files.
  • Obtain the following files
  • Untar all the files in ‘/’, in the above order
  • Execute as root /scratchbox/run_me_first.sh, and then add your user with /scratchbox/sbin/sbox_adduser. Choose the same username than in your system, and reply to all the questions with the default answers.
  • Restart your session, or execute su your_username
  • Now you are able to login in the scratchbox environment with /scratchbox/login
  • Create a .bash_profile with the following contents. You can use vi if you want.
    • unalias ls
    • export LANGUAGE=en_GB
    • export PAGER=less
    • export DISPLAY=:2
  • Now that the scratchbox is set up, download the Maemo SDK
  • Follow the rest of instructions
  • Now you have the environment set up to compile applications for the Nokia 770, but they will not run on the actual Nokia 770, because the architecture of the binaries will be i386. Let us set up also the environment to compile applications for the ARMEL architecture.
  • Download the following file:
  • Follow these instructions
  • Now you should have two different configurations in your scratchbox environment: SDK_PC and SDK_ARMEL
  • To test an application in your computer, you should use the environment SDK_C. Select it with the following command:
    • sbox-config -st SDK_PC
  • Once you are sure that your application is ready to be run on the Nokia 770, switch to the SDK_ARMEL configuration, and recompile
    • sbox-config -st SDK_ARMEL
  • Thanks to QEMU, you may execute the ARMEL binaries in your computer before uploading them to the Nokia 770. Some features may not behave as in the actual 770 though.

Installing a X server for the Maemo environment

  • There is a X server preinstalled with the Maemo development environment. To use it, create, outside the scratchbox, a file with the following contents

    #!/bin/sh -e
    prefix=/scratchbox/users/${LOGNAME}/targets/SDK_PC/usr
    export LD_LIBRARY_PATH=${prefix}/lib; export LD_LIBRARY_PATH
    exec ${prefix}/bin/Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac
  • You may call it start-xephyr.sh
  • To use this X server with the Maemo development environment, run the file, outside the scratchbox. The X server will be up and running, on the display number 2. This display appears as a window in your desktop.
  • To launch the Maemo desktop environment, inside the scratchbox, execute the following:
    • af-sb-init.sh start
  • The Maemo desktop should appear in the window corresponding to the Xephyr X server.
  • Only a small set of applications is installed in the Maemo environment, and it lacks all the propietary applications from Nokia (such as the web browser). It is intended to test your applications rather than to be used as a substitute of the Nokia 770.
  • Once you get bored with the Maemo desktop, stop it with the following command
    • af-sb-init.sh stop

sources.list for the Maemo environment

The scratchbox is like just another system within your Linux system. The two configurations (SDK_PC and SDK_ARMEL) are based on Debian, and so they use APT to manage software packages. You must set up the proper repositories to be used inside the scratchbox environment. Be careful and do not use the following repositories in your computer, only within the strachbox environment.

Go and edit /etc/apt/sources.list, and the following repositories. Remove any repository already included in the file. Remember, edit the file once you have login in the scratchbox. Do not edit the sources.list in your system.

deb http://catalogue.tableteer.nokia.com/certified/ mistral user
deb http://catalogue.tableteer.nokia.com/non-certified/ mistral user
deb http://repository.maemo.org/extras/ mistral free non-free
deb-src http://repository.maemo.org/extras/ mistral free non-free
deb http://repository.maemo.org/ scirocco free non-free
deb-src http://repository.maemo.org/ scirocco free non-free

Execute apt-get update after editing the file.

5 Comments Add your own

  • 1. Connecting geeks » &hellip  |  January 19th, 2007 at 4:11 am

    […] Following with my last post, in the project I am collaborating with, we are interested in making VoIP calls using our libraries in the Nokia 770. We are going to explore the possibility of using Ekiga, a VoIP and videconferencing client for GNOME. Furthermore, as I will probably buy a N800 in the next days or weeks, I am getting ready to test videconferencing with Ekiga on the N800 . […]

  • 2. bill  |  January 30th, 2007 at 11:14 pm

    hey
    great work!
    Hope you can get Ekiga to work…
    i really would like to have that videoconference option…
    seems really stoopid to have the camera hanging off the end and no way to videochat… or stills … or anything…

    i have been messing with the N800 i have, and the built in “internet call” will send the text and voice to the jabber (talk.google.com) server no problem… just no video.
    and it allegedly sends video with the nokia PC only program…

    do you think the video can be activated for jabber protocol?

  • 3. herraiz  |  January 31st, 2007 at 1:00 am

    I don’t know, but I don’t think so :-(

  • 4. stone  |  May 12th, 2007 at 5:46 am

    I just got the Nokia N800 and i have problem in connecting the phone with the internet. I am presently in Nigeria with the American Embassy. Please can you you tell me how to do this. Thank you

  • 5. Jeff at www.thenewsroom.com  |  June 25th, 2007 at 4:57 am

    Some alternatives to the n770….http://thenewsroom.com/details/428470?c_id=wom-bc-js

Leave a Comment

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


What's this?

This is a blog about the new Nokia 770. It will show tricks, hacks, reviews, etc about this impressive gadget. Comments and feedback are welcome.

You can contact me at isra _at_ herraiz.org, or just leaving a comment in any post.

Latest comments

Gizmo to offer free calls both to landline and mobile lines  4
santi, Sabeel, mami [...]

Non-HID bluetooth keyboards working!  17
Rob Mulally, gene jaleski, herraiz [...]

Bluetooth keyboards for the Nokia 770  9
jose manuel a.lopez, jose manuel a.lopez, Bill [...]

wxWidgets and wxPython almost hildonized  12
jaremo, cowbot, Peter [...]

Calendar

May 2012
M T W T F S S
« Jan    
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts

Valid XHTML
Valid CSS
No-www.org