标签:
Xcode写C++ 程序确实比较差,所以这两天在安装eclipse来写,环境折腾来折腾去的,烦都烦死,安装完了还容易出错,终于解决了,先安装cocos2d-x,然后安装ant,ndk,android sdk,adt plugin等等一系列东西,在下载一个写C++的eclipse,修改~/.bash_profile.终于可以了。提供我目前的 .bash_profile
提供一个下载的地址,由于中国的万里长城,给一个不用爬出去的地址: http://www.androiddevtools.cn
# Add environment variable COCOS_CONSOLE_ROOT for cocos2d-x export COCOS_CONSOLE_ROOT=/Users/roy/cocos2d-x/tools/cocos2d-console/bin export PATH=$COCOS_CONSOLE_ROOT:$PATH # Add environment variable COCOS_FRAMEWORKS for cocos2d-x export COCOS_FRAMEWORKS=/Applications/Cocos/frameworks export PATH=$COCOS_FRAMEWORKS:$PATH # Add include for cocos2d-x export COCOS_INCLUDE=/Applications/Cocos/frameworks/cocos2d-x-3.4rc1/cocos export PATH=$COCOS_INCLUDE:$PATH # Add environment variable ANT_ROOT for cocos2d-x export ANT_ROOT=$ANT_HOME/bin export GOPATH=~/go export ANDROID_SDK_ROOT=/Users/roy/Library/Android/sdk export PATH=$ANDROID_ROOT:$PATH export NDK_ROOT=/Users/roy/Library/Android/ndk export PATH=$NDK_ROOT:$PATH # Add environment variable COCOS_TEMPLATES_ROOT for cocos2d-x export COCOS_TEMPLATES_ROOT=/Users/roy/cocos2d-x/templates export PATH=$COCOS_TEMPLATES_ROOT:$PATH export PATH=/Users/roy/Library/Android/sdk/platform-tools:/Users/roy/Library/Android/sdk/tools:$PATH
今天讲的是如何改变cocos代码中设备的方向,链接如下:http://www.cocos2d-x.org/wiki/Device_Orientation
标签:
原文地址:http://www.cnblogs.com/RoysPhoneBlog/p/4621721.html