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真坑人。。

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值