# Cygwin – “ERROR: You are using a non-Cygwin compatible Make program.”

“ERROR: You are using a non-Cygwin compatible Make program.
Currently using: C:/cygwin/bin/make

Solution:

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

1. Call ‘ndk-build’ again.”

If the ‘make’ is installed, this error probably stems from a bug. You need to move your ndk to a folder that does not have spaces in the path as well as your project.

For example:
from
C:\Program Files\Android\android-ndk-r5c
to
C:\Android\android-ndk-r5c

Then define the GNUMAKE environment variable as described in the error message text.

Alternative Solution: by AntonK:

Define the PATH to it using DOS-like notation:

PATH=…;C:\PROGRA~1\Android\android-ndk-r6b;

Did my solution solve your problem?

## 11 Replies to “Cygwin – “ERROR: You are using a non-Cygwin compatible Make program.””

1. Phil says:

thank you so much!!

this bug just cost me 2 hours of frustrating debugging.

2. Moving Android NDK to a directory without spaces is definitely the right step.
As an option you can define the PATH to it using DOS-like notation: PATH=…;C:\PROGRA~1\Android\android-ndk-r6b;…
However if you try to run ndk-build from Windows command line (like “bash ndk-build”), it will probably show the same queer error:

1. Hi Bro, tnx for your comment. I added your solution in my post 😉

3. android rocks says:

It worked after I remove the spaces in the path, thanks!

1. eclipses says:

Thank you for your comment 😉

4. android rocks says:

I removed the spaces and it worked! Thanks!!!!!!

5. Its not working for me , my ndk is at C:\Development\Android\android-ndk-r8

6. Hi all,

Thanks for all of these comments, it helps a lot.
I`ve been trying to solve this bug for a while but… nothing works up t now.
could you please explain about the 2nd step?

“2. Define the GNUMAKE environment variable to point to it, as in:

export GNUMAKE=/usr/bin/make”
I don`t have any GNUMAKE environment variable. Should I make it manually?

Thanks a lot!

1. Hi yair,
thank you for your comment. Have you installed “make”? If no, read my following post:

The step 2 is suggested from Cygwin, in my case “make” was installed in the following folder:

C:/cygwin/bin/make

So you need to define a GNUMAKE environment variable (it’s a new variable) just running the command:

export GNUMAKE=/usr/bin/make

As you can understand it depend from the previous path.

Another problem that different users found is when in the path was a space like “Program Files” but I don’t know if this is your case.

If it doesn’t work please, write me here the error message that appears to you.

7. Hoore says:

very very very very very very very very very very very very very very very very thx 🙂

This site uses Akismet to reduce spam. Learn how your comment data is processed.