android - NDK_ROOT not defined. Please define NDK_ROOT in your environment -
i have problem regarding cocos2dx v3 setting android on mac. use video (https://www.youtube.com/watch?v=2li1irrp_0w) guide. in video doing fine on own eclipse, there's error shows under console tab. statement error found : "python /users/kirbyasterabadilla/desktop/oracleeye/proj.android/build_native.py -b release ndk_root not defined. please define ndk_root in environment".
i tried installing ndk plugin inside eclipse ide still can't solve problem.
please me one. should make error disappear?
python /users/kirbyasterabadilla/desktop/oracleeye/proj.android/build_native.py -b release ndk_root not defined. please define ndk_root in environment
it sounds should export ndk_root
log in script. below os x 10.8.5 machine:
$ cat ~/.bash_profile # macports installer addition on 2012-07-19 @ 20:21:05 export path=/opt/local/bin:/opt/local/sbin:$path # android export android_ndk_root=/opt/android-ndk-r9 export android_sdk_root=/opt/android-sdk export java_home=`/usr/libexec/java_home` export android_home="~/.android" export ndk_root="$android_ndk_root" export path="$android_sdk_root/tools/":"$android_sdk_root/platform-tools/":"$path"
according david turner on ndk mailing list, both android_ndk_root
, android_sdk_root
need set because other tools depend on values (see recommended ndk directory?).
interestingly, turner said nothing android_home
or ndk_root
(and searching ndk group android_home
returned 0 results).
after modifying ~/.bash_profile
, perform following (or logoff , on):
source ~/.bash_profile
if modifying log in script not help, try setting in eclipse:
Comments
Post a Comment