Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Android NDK make program cannot find

I am trying to set up Android NDK using this Link.

I started Set up process by following command make -v and i am getting

    $ make -v      
    bash: make: command not found

Then I entered following commands as given in the above link

cd /cygwin/C/..path for my project

/cygwin/C/..path of ndk installed path

At this point I am getting

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

Note, I checked all this possibility error links:

Link-1

Link-2

Removed Spaces between folder.

Check this:

Screenshot image

like image 229
Venky Avatar asked Nov 21 '11 14:11

Venky


People also ask

How do I know if android NDK is installed?

You'll need to point to your NDK in your eclipse by adding the path of ndk-build to Window > preferences > android > NDK. Right click on your project folder. Choose android tools -> add native support (the bottom one) and click finish.

Where is NDK installed?

Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory. Each version is located in a subdirectory with the version number as its name. Note: Remove this property before distributing your source code; it should be left outside of your version control system.

How do I know what version of NDK I have?

Go to Tools->SDK Manager (or Files->Settings->Appearance & Behavior->System Settings->Android SDK ). Then select the SDK Tools tab, and check the Show Package Details checkbox. You will see your NDK version.


4 Answers

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

While trying to install Cygwin i missed out to install MAKE PACKAGE

Just need to search make in the Search box and it will shows the Branches that includes devel branch and from devel branch i selected make package.

That's all issue fixed.

Check this Youtube link for Complete Set up process for Android NDK.

Explained from SDK set up process to NDK Set up process.

like image 125
Venky Avatar answered Oct 20 '22 07:10

Venky


You're probably missing the devel branch in cygwin. Open the installer and on the package selection screen find "Devel". Next to it, it reads "default". click this to install the entire branch and you should be good after install.

like image 39
Scott Tomaszewski Avatar answered Oct 20 '22 08:10

Scott Tomaszewski


My suggestion would be

  • to install (in addition) GnuMake for Win32 - it has an appropriate version >3.81
  • to create environment variable GNUMAKE and point it to your_path/GnuMake32/bin
  • to call via cygwin make -v and enjoy the result

Hopefully helps.

But baseline is simple - it is really better to deploy something like Ubuntu (as separate OS or via VM) and run NDK there.

like image 3
87element Avatar answered Oct 20 '22 09:10

87element


Probably Cygwin developer package is not installed. By default it is not installed. You, probably, should run Cygwin installer and install developer tools.

like image 1
Alexander Kulyakhtin Avatar answered Oct 20 '22 07:10

Alexander Kulyakhtin