NDK You are using a non-Cygwin compatible Make program. 解决方法
**** Build of configuration Default for project test ****
sh ndk-build all
ERROR: You are using a non-Cygwin compatible Make program.
Currently using: C:/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.
**** Build Finished ****
Nb了,我明明用了GNU Make 3.81 为什么还出这个错误?
1、确认GNU Make 版本
2、确认路径不含有中文或者空格
luozhuang@luozhuang-Vm ~
$ make -v
GNU Make 3.82.90
Built for i686-pc-cygwin
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
按要求设置 export GNUMAKE=/usr/bin/make 也不行。
后来经过研究发现,解决方法就是:
在eclipse设置项目属性
Project Properties -> C/C++ Build
Builder Settings
默认情况 设置为 Use default build command
默认是ndk-build
要修改为
取消Use default build command
Build command 设为具体的路径
比如我的是
C:\luozhuangNDK\ndk-build.cmd
问题马上解决。。。
google真坑人。。
补充:综合编程 , 其他综合 ,