The Voodoo Compiler on the Nokia N900
2011-08-21
Introduction
This document describes how to install the Voodoo Compiler running on the Nokia N900 smartphone. With slight modifications, the same steps may also work for other devices featuring the Maemo operating system, such as the Nokia N810 or N9.
Getting Root Access
You can get root access to your N900 by installing the rootsh application. Following that link should get you to a page where you can download and install rootsh.
After installing rootsh, you can run applications as root by typing
sudo gainroot
in the X Terminal.
I prefer to configure things so that getting a root shell requires a
password. So, after becoming root with sudo gainroot
, I set a new
password for root using the passwd
command, and uninstalled
rootsh:
$ sudo gainroot # passwd # apt-get remove --purge rootsh #
Adding the Development Repositories
Using Application Manager
- Open the Application Manager
- Open the menu (tap on Application Manager at the top of the screen)
- Go to Application catalogs
- Go to New
- Enter the following data:
Name URL http:// - more steps
Using the command line
The following steps need to be performed as root.
- Add the following line to
/etc/apt/sources.list
:
deb http://... - Add the repository GPG key:
gpg...
Installing Development Packages
Using the command line
The following steps need to be performed as root.
apt-get install gcc libc6-devel make
Getting Voodoo
The Voodoo Compiler can be downloaded from the public git repository. The instructions here use commit 6a8bd64e62912e65342f72bfd5d7770d2eec189b, but any later version should work, too.
The following steps can be performed as a regular user.
- Download the Voodoo Compiler:
$ wget -O voodoo.tar.gz \ http://repo.or.cz/w/voodoo-lang.git/snapshot/6a8bd64e62912e65342f72bfd5d7770d2eec189b.tar.gz $
- Extract the tarball:
$ gunzip < voodoo.tar.gz | tar xf - $
Building Voodoo
These steps can be performed as a regular user.
Change to the directory where you extracted the Voodoo Compiler source code and run configure and make:
$ cd voodoo-lang $ ./configure $ make
Running the Tests
As a regular user, in the directory where you built the compiler, type make test.