title: Android NDK Error using Cygwin: ERROR: GNUMAKE variable is defined to an invalid name
body: <p>I am trying to build a static library using Android NDK. For this I have installed Cygwin &amp; android-ndk-r7. </p>
  
  <p>To build the library I have already created the required source file and Android.mk file. These files are located under "D:\NDK\test" on my machine.</p>
  
  <p>My NDK Tools are installed under "C:\Android\android-ndk-r7" &amp; Cygwin files are located under "C:\Cygwin\http%3a%2f%2fcygwin.mirrors.hoobly.com%2f". Hence there are no space in any of the locations. </p>
  
  <p>For building the library, I launch Cygwin and point it to the location where my source files and Android.mk file is located. Then to give the build command I type "/cygdrive/c/Android/android-ndk-r7/ndk-build". On giving the above command, I get an error message:</p>
  
  <blockquote>
    <p>ERROR: Cannot find 'make' program. Please install Cygwin make package
    or define the GNUMAKE variable to point to it.</p>
  </blockquote>
  
  <p>I went through several blogs and followed the solutions on them:</p>
  
  <ol>
  <li><p>Install make under Devel folder in Cygwin installation. This didnt do any change. </p></li>
  <li><p>Create an Environmental Variable GNUMAKE and define it as /usr/bin/make. I also tried defining this variable to different locations:</p>
  
  <blockquote>
    <p>C:\Cygwin\http%3a%2f%2fcygwin.mirrors.hoobly.com%2f\bin<br>
    C:\Android\android-ndk-r7\prebuilt\windows\bin<br>
    C:\Android\android-ndk-r7     </p>
  </blockquote>
  
  <p>But with each I got the same error:</p>
  
  <blockquote>
    <p>ERROR: Your GNUMAKE variable is defined to an invalid name: C:\Android\android-ndk-r7
    Please fix it to point to a valid make executable (e.g. /usr/bin/make)</p>
  </blockquote></li>
  </ol>
  
  <p>So it looks like I am not pointing the path correctly.
  Can someone please tell me which path should GNUMAKE point to.</p>
  
  <p>I also did make -v on my Cygwin prompt and the below message pops up (which makes me believe that everything related to Cygwin installation is fine):</p>
  
  <pre><code>$ make -v
  </code></pre>
  
  <p>GNU Make 3.81</p>
  
  <p>Copyright (C) 2006  Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.
  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE.</p>
  
  <p>This program built for Windows32</p>
  
  <p>Thanks for your help.</p>