android - Cannot use ndk-build on Cygwin -
i have use ndk clien't project. using windows 7.
i followed installation instructions. have installed cygwin 1.7.1.
in cygwin bash, go android ndk root directory.
when see contents of directory, usin $dir command, can see contents including ndk-build, when try use ndk-build, result get:
$ndk-build bash: ndk-build: command not found.
not sure doing wrong.
cygwin emulates gnu/linux environment on windows computer. means you're working "shell" not same windows command-line.
if type asdf.exe
in windows command-line, tries find asdf.exe in current directory. if can find it, file executed. if can't find it, it'll go through every directory of %path%
, try again.
however, if type asdf
in bash (there multiple kind of shells, bourne again shell 1 of them), not after in current directory. instead it'll try find in 1 of path
directories. can't give sources here, afaik it's security reasons. if want run file not in path
, must prepend absolute of relative path. can use ./
, points current directory.
that's why need type ./ndk-build
, because it's in current directory , not path. /path/to/ndk/ndk-build
work, have type bit more :).
(in fact it's more complicated, if want execute file, need execute permissions it. google if have problems that.)
Comments
Post a Comment