Cocos2d-x构建错误windows eclipse

时间:2013-12-13 07:12:11

标签: cocos2d-x

我正在使用 cocos2d-x 开发一款Android 2d游戏。我在eclipse中导入了一个示例项目,但是当我尝试构建它时,它给了我一个错误:

构建项目HelloCpp的默认配置**

bash E:/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android/build_native.sh -k E:/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android/build_native.sh:非法选项 - k NDK_ROOT = E:\ zAndroid \ android-ndk-r9b COCOS2DX_ROOT = /e/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android/../../../ .. APP_ROOT = /e/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android/ .. APP_ANDROID_ROOT = /e/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android 使用预建的外部 +'E:\ zAndroid \ android-ndk-r9b / ndk-build'-C /eAzAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android -k NDK_MODULE_PATH = / e / zAndroid / cocos2d-的x 2.2 /样品/ CPP / HelloCpp / proj.android /../../../..:/ E / zAndroid / cocos2d的-X-2.2 /样品/ CPP / HelloCpp / proj.android /../ ../../../cocos2dx/platform/third_party/android/prebuilt make:输入目录'/cygdrive/e/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android' “C:/ program files / git / bin / rm.exe”:无法取消链接`NUL':参数无效 Android NDK:警告:忽略未知的导入目录:e
Android NDK:警告:忽略未知的导入目录:\ zAndroid \ cocos2d-x-2.2; e
Android NDK:警告:忽略未知的导入目录:\ zAndroid \ cocos2d-x-2.2 \ cocos2dx \ platform \ third_party \ android \ prebuilt
e:/zAndroid/android-ndk-r9b/build/core/prebuilt-library.mk:68:< em> * 目标模式不包含'%'。停止。 make:离开目录'/cygdrive/e/zAndroid/cocos2d-x-2.2/samples/Cpp/HelloCpp/proj.android'

构建完成**

1 个答案:

答案 0 :(得分:2)

计算机 - &gt;属性 - &gt;高级系统设置 - &gt;环境变量.. - &gt;路径(在系统变量中)你需要删除“C:/ program files / git / bin” 祝你好运。