Android NDK:NDK构建脚本失败-脚本“;勾选cygwin make.mk“;找不到

Android NDK:NDK构建脚本失败-脚本“;勾选cygwin make.mk“;找不到,android,cygwin,android-ndk,Android,Cygwin,Android Ndk,我是Android的NDK开发新手。 在Win7上开发时,我安装了Cygwin以构建本机二进制文件 从项目文件夹/home/simon/ndk/hello neon运行ndk build时,我得到了错误信息 ERROR: You are using a non-Cygwin compatible Make program. Currently using: C:/Programs/cygwin/bin/make To solve the issue, follow these steps:

我是Android的NDK开发新手。 在Win7上开发时,我安装了Cygwin以构建本机二进制文件

从项目文件夹/home/simon/ndk/hello neon运行ndk build时,我得到了错误信息

ERROR: You are using a non-Cygwin compatible Make program.
Currently using: C:/Programs/cygwin/bin/make

To solve the issue, 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.
现在阻止我的问题是,ndk build脚本似乎无法调用以下行中的check cygwin make.mk脚本:

GNUMAKE=`cygpath -u $GNUMAKE`
PROGDIR_MIXED=`cygpath -m $PROGDIR`
CYGWIN_GNUMAKE=`$GNUMAKE -f "$PROGDIR_MIXED/build/core/check-cygwin-make.mk" 2>&1`
打电话的时候

echo $CYGWIN_GNUMAKE
我得到的答复是:

make: C:/Programs/cygwin/home/simon/build/core/check-cygwin-make.mk: No such fil
e or directory make: AndroidManifest.xml build.properties default.properties jni 
 res src No rule to make target `C:/Programs/cygwin/home/simon/build/core/check-
cygwin-make.mk'. Stop.
现在我迷路了,因为我不理解check-cygwin-make.mk脚本的作用,在我的硬盘上找不到它

我知道C:/Program Files/文件夹名中的空格有问题,我认为这现在不是问题

我希望有人能帮我解决这个问题, 当做
Simon

安装android ndk和cygwin(使用“make”支持命令),然后像这样设置变量

Right-click My Computer, and then click Properties.
Click the Advanced tab.
Click Environment variables.
then edit"PATH" add this line
C:\cygwin\bin像这样

Right-click My Computer, and then click Properties.
Click the Advanced tab.
Click Environment variables.
then edit"PATH" add this line
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\程序文件<代码>C:\cygwin\bin


然后尝试使用您的构建步骤安装android ndk和cygwin(使用“make”支持命令),然后像这样设置变量

Right-click My Computer, and then click Properties.
Click the Advanced tab.
Click Environment variables.
then edit"PATH" add this line
C:\cygwin\bin像这样

Right-click My Computer, and then click Properties.
Click the Advanced tab.
Click Environment variables.
then edit"PATH" add this line
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\程序文件<代码>C:\cygwin\bin


然后尝试您的构建步骤

'check-cygwin-make.mk'位于'\android-ndk-r6b\build\core'中,您应该已经将android-ndk安装到路径中没有空格的目录中。
接下来,您应该从Cygwin shell或使用命令“bash-c ndk build”运行ndk build。

当然,指向Cygwin二进制文件(如前一个答案所示)和ndk build的必要路径都应该在PATH中指定。

'check-Cygwin-make.mk'位于'\android-ndk-r6b\build\core'中,您应该将android ndk安装到路径中没有空格的目录中。
接下来,您应该从Cygwin shell或使用命令“bash-c ndk build”运行ndk build。

当然,指向Cygwin二进制文件(如前一个答案所示)和ndk build的必要路径都应该在PATH中指定。

我有android-ndk-r9d,没有构建目录我有android-ndk-r9d,也没有构建目录