Categories
Android Cygwin NDK

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:

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

  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 on “Cygwin – “ERROR: You are using a non-Cygwin compatible Make program.””

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:

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!

Hi yair,
thank you for your comment. Have you installed “make”? If no, read my following post:
https://www.myerrorsandmysolutions.com/2011/07/06/cygwin-error-cannot-find-make-program-please-install-cygwin-make-package-or-define-the-gnumake-variable-to-point-to-it/

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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