Common Issues Related Cygwin and NDK | Techbirds

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

3. 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-r9b

to

C:\Android\android-ndk-r9b

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

Alternative Solution:

Define the PATH to it using DOS-like notation:

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

Cygwin cannot find make program

What I’m trying to do is successfully compile native code using Cygwin. The error message I get when I run type my directory to the Ndk-build in the terminal is

ERROR: Cannot find ‘make’ program. Please install Cygwin make package or define the GNUMAKE variable to point to it.

Solution:

  • You probably just need to install the make package.
  • Run the setup.exe command that you used to install Cygwin in the first place, and select “make”.
  • First, to confirm that this is the problem, run make from the terminal.
  • You’ll likely have to install some other packages as well.

ERROR: Android NDK: Host ‘awk’ tool is outdated

While using ndk-build command in Ndk r9 to build a project on 32-bit ubuntu, I got this error:
Android NDK: Host ‘awk’ tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !

It didn’t work even if I add the HOST_AWK environment variable and point it to gawk.
There are two reasons:

  1. The prebuilt awk tool comes with ndk r9 is compiled for 64bit and can’t run on 32bit OS.
  2. The HOST_AWK environment variable is overridden by {Ndk_root}/build/core/init.mk to point to the prebuilt awk comes with ndk

To solve this problem, remove {ndk_root}/prebuilt/ windows-x86_64/bin/awk. Now the ndk-build script will use correct awk tool.

2,186 total views, 2 views today

Share this Onfacebook-1426104twitter-4579445linkedin-8062414google-3030380