cd /Work/cocos2d-x-3.2 出现NextGenmatoiMac:cocos2d-x-3.2 nextgen$ ./setup.py
Setting up cocos2d-x...
->Check environment variable COCOS_CONSOLE_ROOT
->Search for environment variable COCOS_CONSOLE_ROOT...
->COCOS_CONSOLE_ROOT is found : /Applications/Cocos/frameworks/cocos2d-x/tools/cocos2d-console/bin
->Update variable COCOS_CONSOLE_ROOT in files ['.bash_profile', '.bash_login', '.profile']
->File /Users/nextgen/.bash_profile updated!
->Configuration for Android platform only, you can also skip and manually edit "/Users/nextgen/.bash_profile"
->Check environment variable NDK_ROOT
->Search for environment variable NDK_ROOT...
->NDK_ROOT is found : /Developer/Android/android-ndk-r8b
->Check environment variable ANDROID_SDK_ROOT
->Search for environment variable ANDROID_SDK_ROOT...
->ANDROID_SDK_ROOT not found
->Search for command android in system...
->Command android not found
->Please enter the path of ANDROID_SDK_ROOT (or press Enter to skip):
->Check environment variable ANT_ROOT
->Search for environment variable ANT_ROOT...
->ANT_ROOT is found : /Applications/Cocos/tools/ant/bin
Please execute command: "source /Users/nextgen/.bash_profile" to make added system variables take effec
Medelis-Mac-mini-3:bin Medeli$ python cocos.py new MidiDemo_Owen2 -p com.coco2dx.org -l cpp -d ~/Desktop/owen
输入 NextGenmatoiMac:cocos2d-x-3.2 nextgen$ cocos new -l cpp -p com.test.project HelloGame 即可