views:

491

answers:

2

Hey,

I've been running the Android SDK for a while now in Eclipse (MAC OSX). I've downloaded the NDK and installed the C/C++ tools in Eclipse, but could anyone guide me on using the NDK? For example, do I just create an Android project like normal and build it with the NDK instead?

Really could do with a decent tutorial if anyone know of any.

EDIT: OK so I have the NDK installed now (I think) but does anyone have any idea how to use it? I got as far as this (taken from here):

Run Terminal

cd ~/android-ndk-1.5_r1

make APP=hello-jni

In order to run the hello-jni sample application, but I get an error in terminal saying:

Android NDK: APP variable defined to unknown applications: hellojni
Android NDK: You might want to use one of the following:
build/core/main.mk:81: * Android NDK: Aborting . Stop.

Any ideas why?

Thanks

James

+2  A: 

Here is an excellent tutorial.

How to set up and use the NDK

Eclipse is not much help when it comes to the NDK I'm afraid

Donal Rafferty
Eclipse is in fact in great help when developing NDK applications. This tutorial is outdated, better look into the latest NDK
ognian
Excellent, thanks for the info, I didn't know tat was possible in Eclipse
Donal Rafferty
+1  A: 

Tutorial: Using Eclipse for NDK projects

ognian
Any help with the end bit, "Now create the Android.mk file in jni directory and start coding and building native Android code in Eclipse!"?
ing0
This tutorial covers only setting up Eclipse to work with NDK projects. Using NDK itself is another topic and is documented in the download package from Android's website
ognian