Reputation: 106
I'm trying to just run a Hello World application using cocos2dx v3.4 written in c++. I installed the NDK, apache ant, and the android ADT. Unfortunately after running the build_native.py script in proj.android I concluded that I need the NDK v9 instead of 10. Also i need to change the directories for the SDK. I tried the following in Terminal
unset NDK_ROOT
unset ANDROID_SDK_ROOT
unset ANT_ROOT
Even after doing this and checking the environment to see if they are still there I run setup.py and it still says the variables are all set. Since I cant run the build_native.py script when I import a new project and the cocos2dx library it just crashes on startup.
Also when i run in eclipse I get an error saying:
[2015-05-12 21:37:40 - libcocos2dx] Could not find libcocos2dx.apk!
Upvotes: 0
Views: 1585
Reputation: 326
This is how to go about it on mac.
/Users/(ur computer name)/.bash_profile
i
(to edit in vim) on your keyboard and scroll the cursor to the variable you want to change esc
key and type the following :wq
in order (that is to save your changes in vim)
you should be back to the normal terminal prompt by now and need to do one last thing.source /Users/(ur computer name)/.bash_profile
you should be fine by now, if you encounter any other problem feel free to ask in the comment below
Upvotes: 1