From my experience it needs to be done with sudo. Wait for it to finish.

5) Now execute this:

Code:

sudo ant compile_native_es

The engine should now start compiling for ARM. You may come across many errors and warnings to start off with. Warnings about the empty line can be ignored.

6) Install any missing libraries. For this the SDK repository needs to be enabled. See here for the details (use Nokia N900 info). You can use Hildon Application Manager to add the repository with the following details:

Those are the ones I can remember, however check the errors yourself if you have problems and inform me. I'm sure it'll jog my memory!

9) Now with the necessary libraries you can try to compile again... however it may still not work! You need to modify platform_build/build_es.xml to properly find libawt.so. I used Filebox to get the directories easily. Edit the lines that reference java.home.

10) After all this it should compile successfully. However there are probably still some optimisations that need to be made.