Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ndk-build not found as a command

I have been working with Android SDK for a while & just came across an requirement to use the NDK

So, I downloaded the Android NDK for Windows. Jumping on the first example, when I am trying to build the library using the process defined in the NDK example

http://developer.android.com/sdk/ndk/overview.html

Specifically the command /ndk-build from the command line

I am getting the error

ndk-build is not recognized as an internal or external command, operable program or batch file

I have added the path for ndk-build in the PATH variable and even tried calling the command going to the folder, still the same error

Does anybody have a clue?

like image 718
user669231 Avatar asked May 01 '11 09:05

user669231


People also ask

What is NDK build?

The Native Development Kit (NDK) is a set of tools that allows you to use C and C++ code with Android and provides platform libraries you can use to manage native activities.

How do I fix NDK missing a platforms directory?

It is currently set to /usr/local/opt/android-sdk/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local. properties to remove this warning.


1 Answers

Guess that should have been an answer instead of a comment.

You must use Cygwin as your shell in order to run ndk-build.
See http://www.cygwin.com/

like image 162
Scott C Wilson Avatar answered Nov 03 '22 01:11

Scott C Wilson