./buile_native.sh出现please define NDK_ROOT解决方法
2013-05-28 14:04
281 查看
小弟在使用cocos2d-x编写Android游戏,在cygwin编译输入./build_native.sh编译时控制台上提示please define NDK_ROOT。然后我查找网上网友的方法修改了cocos2d-2.1beta3-x-2.1.1\template\android的build_native.sh文件,但还是没有解决。最后我又仔细观察cygwind下面的.bash_profile文件,发现我在配置NDK_ROOT后少写了一句话,export NDK_ROOT 。把这句话加上就解决了。
解决方法:
找到cygwin\home\air.yu下面.bash_profile文件,用文件编辑器打开,然后在文件的最后面加上下面两句话,这个问题就解决了。
注:air.yu是我的Windows用户名,这个地方要选择你自己登录的计算机用户名文件夹。
NDK_ROOT=/cygdrive/e/Develop/android-ndk-r8b
export NDK_ROOT
解决方法:
找到cygwin\home\air.yu下面.bash_profile文件,用文件编辑器打开,然后在文件的最后面加上下面两句话,这个问题就解决了。
注:air.yu是我的Windows用户名,这个地方要选择你自己登录的计算机用户名文件夹。
NDK_ROOT=/cygdrive/e/Develop/android-ndk-r8b
export NDK_ROOT
相关文章推荐
- ./buile_native.sh出现please define NDK_ROOT异常
- coco2dx编译到android出现please define NDK_ROOT解决办法
- [置顶] ./build_native 时出现please define NDK_ROOT
- ./build_native 时出现please define NDK_ROOT
- cocos2d 关于Eclipse 提示 :please define NDK_ROOT的问题(解决Eclipse不会自动编译CPP的问题)
- AR或者OM出现Please Define Sales Representatives解决方法
- XCode编译Worklight native源码出现“buildtime.sh: Permission denied”错误的解决方法
- AR或者OM出现 Please Define Sales Representatives 错误解决方法
- cocostudio打包时提示ANT_ROOT not defined. Please define it in your environment解决方法
- BlackBerry PlayBook NDK 启动时出现“License check failure”错误的解决方法。
- WinDbg出现 NT symbols are incorrect, please fix symbols,解决方法
- sudo出现sudo:must be setuid root问题的解决方法
- SDK编译运行时出现的Unexpected value from nativeGetEnabledTags: 0刷屏解决方法
- Apache 在更改DocumentRoot,或新增虚拟目录之后出现403错误的解决方法汇总详解(Linux)
- Redhat 5.4 RAC multipath 配置raw,运行root.sh 时报错Failed to upgrade Oracle Cluster Registry configuration 解决方法
- sudo出现sudo:must be setuid root问题的解决方法
- ndk编译时出现:*** 目标文件“clean”含有 : 和 :: 两种条目 问题的解决方法
- Eclipse 中 please define NDK_ROOT 错误提示
- Oracle 11gR2 RAC root.sh Deconfigure the existing cluster configuration 解决方法
- Mac使用mysql中出现ERROR 1045: Access denied for user: 'root@localhost' 以及密码过期解决方法