Error creating ndk library

I have an Android project with a native part. Now I'm trying to make eclipse compile everything, but at compile time it gives me this error:

sh ndk-build all ERROR: You are using a non-Cygwin compatible Make program. Currently using: C:/cygwin/bin/make To solve the issue, follow these steps: 1. Ensure that the Cygwin 'make' package is installed. NOTE: You will need GNU Make 3.81 or later! 2. Define the GNUMAKE environment variable to point to it, as in: export GNUMAKE=/usr/bin/make 3. Call 'ndk-build' again. 

Now I can compile it from Cygwin, and it works. It also works with eclipse on my other computer with exactly the same paths.

I found that if I run ndk-build from cygwin, everything is fine, but if I run "sh ndk-build", it will give me an eclipse error.

I think this is a problem, but I don’t know why adding a command with sh does not work (also adds it with bash).

Can anybody help?

Thanks in advance.

+4
source share
1 answer

The problem is resolved, The ndk path is not configured correctly in the eclipse settings. (in eclipse Window-> preferences-> Android-> NDK-> NDK_Location)

+13
source

All Articles