Getting Started With MIPS NDK r5b

Technical documentation
03/06/2011

Installation

The Linux host tarball includes the MIPS prebuilt toolchain. To install, simply untar and run build.sh:

% tar xvzf android-ndk-r5b-mips-linux.tgz
% cd android-ndk-r5b-mips-linux
% sh builder.sh

The Windows version needs to download the MIPS toolchain from Code Sourcery. To install, download and unzip android-ndk-r5b-mips-windows.zip. Then:

c:\...> install.bat

Followed by:

c:\...> builder.bat

If Windows complains about java missing, download and install the latest JRE from Sun. If you're having trouble doing this, or don't know what it means, Android or the NDK is the least of your problems.

Building Sample Applications

Upon successful installation, the NDK builder should come up:

Specify the location of one of the sample applications in the "Application Directory" entry. Also make sure that you specify the location where your copy of the NDK was unpacked. Click on "Build" to build. Check "Verbose" if you prefer details.

Note:

  1. The NDK has been verified on Windows 7 64-bit, Windows XP 32-bit, and Ubuntu 10.04 64-bit.

Running Sample Applications

To run the sample application, you will need to create an Eclipse project for it. Select "File->Import" and choose "Existing Projects Into Workspace":

Choose the root directory of the sample application that you've built from the above steps, and click "Finish"

Next, create a debug configuration for your project, like so:

Make sure that you opt for manual target selection:

Click "Debug" and Voila! Hello World is running on your MIPS handset:

Please post your experience on this forum, or direct urgent needs to techtalk[at]viosoft.com.tw or android[at]viosoft.com.

-- Deckard

Files