执行在Cocos2d-x上创建的android-project时出错,错误是:
$ ./build_native.sh
NDK_ROOT = D:\Updated Eclipse\android-ndk-r10
COCOS2DX_ROOT = /cygdrive/d/Cocos2d-x/cocos2d-x-2.2.5/projects/MyApp/proj.android/../../..
APP_ROOT = /cygdrive/d/Cocos2d-x/cocos2d-x-2.2.5/projects/MyApp/proj.android/..
APP_ANDROID_ROOT = /cygdrive/d/Cocos2d-x/cocos2d-x-2.2.5/projects/MyApp/proj.android
Using prebuilt externals
ERROR: You are using a non-Cygwin compatible Make program.
Currently using: D:/Cocos2d-X/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.
我已经安装了所有必需的SW并正确设置了路径,环境等,
Cocos2d-x版本: Cocos2d-x-2.2.5
Android ADT:最新的Android SDK
Android NDK: android-ndk-r10
Cygwin: 32位
已安装Cygwin软件包 autoconf,automake,binutils,gcc-core,gcc-g **,gcc4-core,gcc4-g **,gdb,pcre,pcre-devel,gawk,make
Python: python-2.7.8.msi
路径和环境是:
ANDROID_NDK_PATH C:\ Users \ d \ Documents \ Android \ ndk \ android-ndk-r8d
COCOS2DX_ROOT D:\ Cocos2d-X \ cocos2d-x-2.2.5
GNUMAKE / usr / bin / make
NDK_PROJECT_PATH D:\ Cocos2d-X \ cocos2d-x-2.2.5 \ projects
NDK_ROOT D:\更新了Eclipse \ android-ndk-r10
路径 D:\ Cocos2d-X \ Cygwin \ bin
请帮我解决这个问题。
由于
答案 0 :(得分:1)
您的NDK位于“更新的Eclipse”文件夹中。您需要重命名文件夹,使其没有任何空间。重命名后,更新“build_native.sh”中的NDK路径,然后尝试重建。