Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use C with Android ndk

I am trying to develop a Android project that makes a simple call from Java code to native C code. I refer this link for my guidance: http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/

when I am compiling the native.c using

:ndk-build

it shows:

ndk-build command not found

Could anyone give the reason for this?

thanks ,

like image 883
TamiL Avatar asked Aug 01 '12 05:08

TamiL


1 Answers

From your question description, i assume that your path is not set. You need to set your NDK path in your environment variable.

for more information you can visit following site.

  • http://marakana.com/forums/android/examples/49.html
  • http://code.google.com/p/awesomeguy/wiki/JNITutorial#Unpack_Android_NDK
  • How to install and Build NDK with eclipse?
like image 89
Lucifer Avatar answered Oct 23 '22 10:10

Lucifer