Mac 系统下cocos2dx 环境变量设置

 

Mac 系统环境变量设置
 
vim ~/.bash_profile 
 

export PATH=$PATH:/Users/wangchengcheng/Downloads/LearningSoftWare/Android/SDK/android-sdk-macosx/tools
export PATH=$PATH:/Users/wangchengcheng/Downloads/LearningSoftWare/Android/SDK/android-sdk-macosx/platform-tools?
export PATH=$PATH:/Users/wangchengcheng/Downloads/LearningSoftWare/Android/NDK/android-ndk-r10

export ANDROID_NDK_ROOT=/Users/wangchengcheng/Downloads/LearningSoftWare/Android/NDK/android-ndk-r10
export ANDROID_SDK_ROOT=/Users/wangchengcheng/Downloads/LearningSoftWare/Android/SDK/android-sdk-macosx
export NDK_ROOT=/Users/wangchengcheng/Downloads/LearningSoftWare/Android/NDK/android-ndk-r10
export PATH=$PATH:/Users/wangchengcheng/Downloads/LearningSoftWare/Cocos2d-x/cocos2d-x-3.3/tools/cocos2d-console/bin
 
创建新项目
 

cocos new MyCocos2dxStudy -p com.wcc.MyCocos2dxStudy -l cpp -d  /Users/wangchengcheng/Documents/LearningWorkSpace/Cocos2dx/Cocos2dxStudy

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。