【问题标题】:Error in building ndk library构建ndk库时出错
【发布时间】:2012-07-25 08:31:12
【问题描述】:

我有一个带有原生部分的 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.

现在我可以从 Cygwin 编译它,它可以工作了。它也可以在我的另一台计算机上以完全相同的路径从 eclipse 中运行。

我发现如果我从 cygwin 启动 ndk-build 没问题,但如果我启动“sh ndk-build”它会给我 Eclipse 的错误。

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

有人可以帮忙吗?

提前谢谢你。

【问题讨论】:

  • 您使用的是哪个 NDK 版本?

标签: android eclipse android-ndk cygwin


【解决方案1】:

问题解决了, Eclipse 首选项中未正确设置 ndk 路径。 (在eclipse Window->preferences->Android->NDK->NDK_Location)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-03
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    相关资源
    最近更新 更多