cocos2dx使用版本︰v 2.0.4
cocosBuilder使用版本︰v 2.0 alpha 1
一、前提
如果NDK是放在D槽請先設定環變
export NDK_ROOT=/cygdrive/d/Android/cygwin/android-ndk-r8
二、步驟
創立一個cocos2Dx-Android專案
先下在cocos2Dx目錄底下,
輸入create-android-project.bat指令
註︰不能在Cygwin環境下執行。使用前請先將create-android-project.sh和create-android-project.bat裡的預設目錄設好。針對這個專案目錄內執行build_native.sh
創建完後,
針對這個專案目錄內執行build_native.sh
即可完成Android專屬的cocos2D專案
即可使用Eclipse匯入修改。
3.如果org.cocos2dx目錄遺失
In cocos2d-x 2.0.3 ...Cocos2d-x Lib java files has been considered as a different project only
So import that project in the eclipse
Lets make it Simple
Good Luck ..If any question please feel free to ask |
三、其它
無法在Visual Studio 2012 Express安裝Cocos2DX template
Editing InstallWizardForVS2012.js located in cocos2D\template\msvc
Line 92, replace vcprojects with vcprojects_WDExpress then run install-templates-msvc.bat and templates will be installed succesfully in VS 2012 Express.
Line 92, replace vcprojects with vcprojects_WDExpress then run install-templates-msvc.bat and templates will be installed succesfully in VS 2012 Express.
var strDestFolder = FileSys.BuildPath(strValue, "vcprojects_WDExpress");
相關網址︰
1.Jesús Bosch
2. 跨平臺開發IOS & Android版(中文)
3. 跨平臺開發IOS & Android版(原文)
4. 設定Windows底下的開發環境
5. 建置Cocos2D-X並用Eclipse引入
6. 新建專案後不用COPY一堆Lib的做法
7.
沒有留言 :
張貼留言