This is how you can compile NodeJS on your N900 Maemo Mobile Phone. The Nokia N900 is an ARMv7 device, so this tutorial will maybe also help to build it for other ARMv7 devices (like the Galaxy S3 Tizen version).
First you need to have the Maemo SDK.
Then you can login into it:
1 2 |
|
Make sure you have python 2.5 (or higher):
In your scratchbox:
1
|
|
Then outside the scratchbox I needed to remove the python symlink to make python2.5 the default:
1
|
|
Download the latest NodeJS
1 2 3 |
|
Add these 2 lines at the top inside the variables section in “deps/v8/build/common.gypi”:
1 2 |
|
Compile:
1 2 3 |
|
Now you can copy “out/Release/node” to your N900 and start having fun with NodeJS!
I created a github repository where we can put some code snippets: https://github.com/krispypen/NodeJSForMaemoSnippets