Cygwin emulates the GNU / Linux environment on your Windows computer. This means that you are working with a "shell" that is not quite the same as on the Windows command line.
If you enter asdf.exe into your Windows command line, it will try to find asdf.exe in the current directory. If he finds it, the file will be executed. If he cannot find it, he will go through all the directories of your %PATH% and try again.
However, if you type asdf in your bash (there are several types of shells, the Bourne Again SHell is one of them), it will not look at it in the current directory. Instead, it will try to find it in one of your PATH directories. I can not give you any sources here, but AFAIK is for security reasons. If you want to run a file that is not in your PATH , you must add it with an absolute relative path. You can use ./ , it points to the current directory.
To do this, you need to enter ./ndk-build , because it is in the current directory, and not in your path. Something like /path/to/ndk/ndk-build will also work, but you need to enter a little more :).
(Actually, itβs even more difficult if you want to execute the file, for this you need execute permissions. Google will help you if you have problems with this.)
svens source share