I always forget how to setup cocos2d-x environment in general, so I decided to make a short post. Even though this is for windows same environment variables will need to be defined in other OS.
What you are going to need
COCOS_CONSOLE_ROOTwith value like
NDK_ROOTwith value like
ANDROID_SDK_ROOTwith value like
ANT_ROOTwith value like
After you have done all that try running the file setup.py(it is under cocos2d-x folder) in command line, if it can find all the variables you are good to go and start setting up your IDE.
Create a new multi-platform project:
Execute this command
cocos new MyGame -p com.MyCompany.MyGame -l cpp -d ~/MyCompany from