小编ema*_*x79的帖子

构建ndk库时出错

我有一个带有原生部分的android项目.现在我试图让eclipse编译所有东西但是在本机编译期间它给了我这个错误:

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.
Run Code Online (Sandbox Code Playgroud)

现在我可以从Cygwin编译它并且它可以工作.它也可以在我的另一台计算机上使用eclipse完全相同的路径.

我发现如果我ndk-build从cygwin 发射它就没事了,但是如果我启动"sh ndk-build"它会给我带来eclipse的错误.

我认为这是问题所在,但我不知道为什么在命令前加上sh它不起作用(也用bash作为前缀给我错误).

有人可以帮忙吗?

先感谢您.

eclipse android cygwin android-ndk

4
推荐指数
1
解决办法
3617
查看次数

标签 统计

android ×1

android-ndk ×1

cygwin ×1

eclipse ×1