【发布时间】:2011-10-07 12:38:30
【问题描述】:
我是使用 Android 的 NDK 进行开发的新手。 当我在 Win7 上开发时,我安装了 Cygwin 以构建本机二进制文件。
从项目文件夹 /home/simon/ndk/hello-neon 运行 ndk-build 时出现错误
ERROR: You are using a non-Cygwin compatible Make program.
Currently using: C:/Programs/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.
现在阻止我的问题是 ndk-build 脚本似乎无法在以下行中调用 check-cygwin-make.mk 脚本:
GNUMAKE=`cygpath -u $GNUMAKE`
PROGDIR_MIXED=`cygpath -m $PROGDIR`
CYGWIN_GNUMAKE=`$GNUMAKE -f "$PROGDIR_MIXED/build/core/check-cygwin-make.mk" 2>&1`
打电话时
echo $CYGWIN_GNUMAKE
我收到回复:
make: C:/Programs/cygwin/home/simon/build/core/check-cygwin-make.mk: No such fil
e or directory make: AndroidManifest.xml build.properties default.properties jni
res src No rule to make target `C:/Programs/cygwin/home/simon/build/core/check-
cygwin-make.mk'. Stop.
现在我迷路了,因为我不了解 check-cygwin-make.mk 脚本的作用,而且我在驱动器上的任何地方都找不到它。
我知道 C:/Program Files/ 文件夹名称中的空格存在问题,我认为现在这不是问题。
我希望有人可以帮助我解决这个问题, 问候, 西蒙
【问题讨论】:
标签: android cygwin android-ndk