[SOLVED ]NDK_ROOT not Defined in Eclipse

I’ve compeletely setup the 3 things you for Android version of Cocos2dX projects:

I’ve setup in terminal
1.apache ant
2.ndk_root
3.adt eclipse juno

but when I open Eclipse, it says “NDK_ROOT not defined.”

How do I define NDK_ROOT, how can I set the environment variables??

cocos2dx 3…3
OSX Yosemite

You can define NDK_ROOT here :

Your project->Properties(right click)->C/C++ Build->Environment

then add a new variable

Name: NDK_ROOT

Value: your_ndk_path

Also you can use cocos console tool, it’s more convenient.

1 Like

this is exactly what I did, thanks for posting anyway :smile: