错误建筑NDK库 [英] Error in building ndk library
问题描述
我有一个本土的部分Android项目。现在我努力使日食编译所有的事情,但在本地编译期间,它给了我这个错误:
I have an android project with a native part. Now I am trying to make eclipse compile all things but during the native compilation it gives me this error:
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.
现在我可以从Cygwin的编译和它的作品。这也从日食工作在我的其他计算机完全相同的路径。
Now I can compile it from Cygwin and it works. It also works from eclipse in my other computer with exactly the same paths.
我发现,如果我启动 NDK的构建
cygwin的版本是好的,但是,如果我推出SH NDK的构建它给了我日食的错误。
I found that if I launch ndk-build
from cygwin it is all right but if I launch "sh ndk-build" it gives me the error of eclipse.
我觉得这是问题,但我不知道为什么prepending与 SH
命令它不工作(也$ P $使用bash ppending它给我的错误)。
I think this is the problem, but I do not know why prepending the command with sh
it does not work (also prepending it with bash gives me the error ).
有人能帮忙吗?
感谢您提前。
推荐答案
问题解决了,
NDK的路径没有正确设置好的日食preferences。
(Eclipse中的Window - > preferences-> Android-> NDK-> NDK_Location)
Problem solved, The ndk path was not properly setted in eclipse preferences. (in eclipse Window->preferences->Android->NDK->NDK_Location)
这篇关于错误建筑NDK库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!