Android NDK: ERROR: You NDK_MODULE_PATH variable contains spaces
来源:互联网 发布:淘宝游戏点卡货源 编辑:程序博客网 时间:2024/06/05 19:54
- Android NDK: ERROR: You NDK_MODULE_PATH variable contains spaces
- (三)error:Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined
- Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined
- Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined
- Are you sure your NDK_MODULE_PATH variable is properly defined ?
- 使用ec编译cocos项目是出现Android.mk文件报错Are you sure your NDK_MODULE_PATH variable is properly defined 的解决办法
- Android之ndk编译出现这个错误error: unused variable 'a' [-Werror=unused-variable]
- NDK_MODULE_PATH
- Android NDK error收集
- “The Android NDK cannot be installed into a path with spaces”的解决方法
- Your project contains error(s) Android
- Android launch: your project contains error(s)
- NDK-jni error for android
- Android Studio NDK编译Error
- NDK编译时NDK_MODULE_PATH定义问题(cocos2d-x)(转)
- cocos2dx, 编译android 的NDK_MODULE_PATH的设置
- 关于Android import-module 和NDK_MODULE_PATH
- 针对Error: You must either define the environment variable DJANGO_SETTINGS_MODULE ...问题的解决
- archlinux安装流程
- POJ 3070 矩阵快速幂求斐波那契数列
- 玩家就是宇宙,而你就是那个玩家——谈Minecraft
- 编译VTK的MFC库
- C#全局键盘钩子
- Android NDK: ERROR: You NDK_MODULE_PATH variable contains spaces
- 二叉树的先序遍历 Binary Tree Preorder Traversal
- jQuery操作<input type="radio">
- hdu 2845
- 用单链表解约瑟夫环问题!
- EntityFramework走马观花之CRUD(下)
- move table and purge table
- java.io.IOException: 您的主机中的软件放弃了一个已建立的连接
- "new types may not be defined in a return type" error
来自:http://paralaxer.com/cocos2d-x-project-setup/
I create project on windows first , and then create meta-project ( copy project to new folder Desktop/MyMetaProject ) and I success with run on windows , but when I run make with terminal , I got an error
$ make
./build_native.sh
NDK_ROOT = E:/Download/Android/android-ndk-r8b
COCOS2DX_ROOT = /cygdrive/c/Users/Vinh Loc/Desktop/SuperTeo meta-project/MyProject/SuperTeo/proj.android/../../..
APP_ROOT = /cygdrive/c/Users/Vinh Loc/Desktop/SuperTeo meta-project/MyProject/SuperTeo/proj.android/..
APP_ANDROID_ROOT = /cygdrive/c/Users/Vinh Loc/Desktop/SuperTeo meta-project/MyProject/SuperTeo/proj.android
Using prebuilt externals
Android NDK: ERROR: You NDK_MODULE_PATH variable contains spaces
Android NDK: Please fix the error and start again.
make[1]: Entering directory `/cygdrive/c/Users/Vinh Loc/Desktop/SuperTeo meta-project/MyProject/SuperTeo/proj.android’
/cygdrive/e/Download/Android/android-ndk-r8b/build/core/setup-imports.mk:27: *** Android NDK: Aborting . Stop.
make[1]: Leaving directory `/cygdrive/c/Users/Vinh Loc/Desktop/SuperTeo meta-project/MyProject/SuperTeo/proj.android’
makefile:2: recipe for target `all’ failed
make: *** [all] Error 2
Not to worry. The error message “Your NDK_MODULE_PATH variable contains spaces” says it all. The problem is in these lines of build_native.sh:
echo “Using prebuilt externals”
“$NDK_ROOT”/ndk-build -C “$APP_ANDROID_ROOT” $* \
“NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt”
Because your COCOS2DX_ROOT contains spaces (“Vinh Loc” and “SuperTeo meta-project”) it is causing this line to fail. This is actually a bug in Cocos2d-X which can be fixed. They have fixed the issue on many of the other lines by wrapping the variables in quotes, like this:
mkdir “$APP_ANDROID_ROOT”/assets
Can you please post in the forums of cocos2d-x.org so this issue can be resolved?
In the meantime, you can easily get it working on your system by putting your meta-project in a safe, spaces-free directory, like /cygdrive/c/Projects/MyProject/