【问题标题】:How can I build my project with Android NDK on windows?如何在 Windows 上使用 Android NDK 构建我的项目?
【发布时间】:2012-03-12 14:00:10
【问题描述】:

我尝试在 Windows 中运行我的项目。项目使用android ndk。我安装 Cygwin 并在 PATH 中添加“C:\cygwin\bin”。安装 GnuMake,并设置变量 GNUMAKE = /cygdrive/c/Art/GnuMake/bin/make.exe。我还在 Eclipse 中为我的项目添加了本机支持。 当我尝试运行这个项目时,Eclipse 显示:

**** Build of configuration Default for project FFWall ****

C:\cygwin\bin\bash.exe C:\Art\android-ndk\ndk-build V=1 
make: *** No targets specified and no makefile found.  Stop.
ERROR: Your GNUMAKE variable is defined to an invalid name: /cygdrive/c/Art/GnuMake/bin/make.exe
Please fix it to point to a valid make executable (e.g. /usr/bin/make)

**** Build Finished ****

我该如何解决这个问题?

【问题讨论】:

    标签: android makefile android-ndk cygwin


    【解决方案1】:

    我猜你正在使用 GNU 的 Make.exe,试试 Cygwin 的 bin 文件夹中的 make.exe。

    【讨论】:

      【解决方案2】:

      使用 GNUMAKE = C:\cygwin\bin\bash.exe 它对我有用

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-10-13
        • 1970-01-01
        • 2012-01-25
        • 1970-01-01
        • 2012-03-30
        • 2014-09-23
        • 2018-02-17
        • 1970-01-01
        相关资源
        最近更新 更多