cocos 2d x 在mac环境中的配置
编辑.bash_profile文件 或者 /ect/profile
注意拷贝的时候修改下对应的相对路径哈
# Add environment variable COCOS_CONSOLE_ROOT for cocos2d-x
export COCOS_CONSOLE_ROOT=/Users/chenlei/Desktop/WorkC++/cocos2d-x-3.2/tools/cocos2d-console/bin
export PATH=$COCOS_CONSOLE_ROOT:$PATH
#add java
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home #jdk安装路径
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
#add maven
export MAVEN_H2=/usr/local/Work/apache-maven-3.2.3
export PATH=$MAVEN_H2/bin:$PATH
#add ant
export ANT_ROOT=/usr/local/Work/apache-ant-1.9.4
export PATH=$ANT_ROOT/bin:$PATH
#add sdk
export ANDROID_SDK_ROOT=/usr/local/Work/androidsdk
export PATH=$ANDROID_SDK_ROOT/tools:$PATH
export NDK_ROOT=/usr/local/Work/android-ndk-r10b