“ERROR: You are using a non-Cygwin compatible Make program.
Currently using: C:/cygwin/bin/make
Solution:
Follow these steps:
- Ensure that the Cygwin ‘make’ package is installed.
NOTE: You will need GNU Make 3.81 or later! -
Define the GNUMAKE environment variable to point to it, as in:
export GNUMAKE=/usr/bin/make
- 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.””
thank you so much!!
this bug just cost me 2 hours of frustrating debugging.
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 Bro, tnx for your comment. I added your solution in my post 😉
It worked after I remove the spaces in the path, thanks!
Thank you for your comment 😉
I removed the spaces and it worked! Thanks!!!!!!
Its not working for me , my ndk is at C:\Development\Android\android-ndk-r8
Hi saurabh jain,
thank you for your comment. The error message is the same? 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/
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.
very very very very very very very very very very very very very very very very thx 🙂