Import TestCPP from proj.blackberry directory
Now some projects are also Required to build TestCPP or any other Sample / Your Project Successfully
extensions -> C:Downloadscocos2d-x-2.2.2cocos2d-x-2.2extensionsproj.blackberry
CocosDenshion -> C:Downloadscocos2d-x-2.2.2cocos2d-x-2.2CocosDenshionproj.blackberry
Cocos2dx -> C:Downloadscocos2d-x-2.2.2cocos2d-x-2.2cocos2dxproj.blackberry
Box2D -> C:Downloadscocos2d-x-2.2.2cocos2d-x-2.2externalBox2Dproj.blackberry
Chipmunk -> C:Downloadscocos2d-x-2.2.2cocos2d-x-2.2externalchipmunkproj.blackberry
so import these Projects one by one or select Cocos2d-x Root directory and select it in List view of Check boxes
Now if you want to make for Simulator go to all of these projects Including TestCPPSelect Project – > right click -> Properties -> C/C++ Build -> Manage Configuration Select Simulator (Do same for Device if you want to make it for Device)
Select Configuration from drop down menu Simulator (Active)do all these for all Projects 😀 because the build Library will be in that folder
For example you have choose Device-Release in Cocos2dx Project or CocosDenshion and your TestCPP is in Simulator configuration it will look for cocos2dx lib file in Simulator folder but actually the file is in Device-Release
so it will show you error be care full and choose appropriate configurationto run on simulator Add a new target if no simulator is found & Right click on Project Run As Blackberry C/C++ Application
For WP8 i would recommend Cocos2d-XNA instead of Cocos2d-x as it will let you able to make it for WP7 & WP8
So i am not covering it in this Tutorial may be in Future
Some Advice :
Build your Project on Windows in Visual Studio write code and test it on Machine instead of slow emulators/Simulators/ and checking again and again on Device when you find it’s working fine and completed then go in Eclipse import the project as the Classes folder will be same on all Platform run it on Device or Bluestacks For android
do same thing for Blackberry or any other Platform it will save you lot of headache and Time..
In next tutorial I will show you how to create your own Project & write Hello World!
Check Index of Cocos2d-X Tutorial Series
Hi. Thank you so much for the tutorial! I really need it. Before step 3 Marmelade, I have some errors like “mkdir, rm, cp: command not found”, “bad interpreter: No such file or directory”… It can be for wrong packages of Cygwin installed? Can you help me?
HI David i am not exactly sure that what is the error so please post full error which file it’s not founding and also Check 1 thing that there is no space in Path & please post full error with screenshot if you can by uploading on any image site
This comment has been removed by the author.
Hi, thank you for your response.
My path is “C:UsersDavidDownloadscocos2d-x-2.2.2cocos2d-x-2.2.2” without spaces.
When I do right click on Test.cpp and run it as Android project, i have these errors on the Adt Bundle console are the follows:
HI David looks like you have not set SHELLOPTS in environment vairbales check it here
https://github.com/cocos2d/cocos2d-x/pull/2158 if the error remains let me know on my fb pagehttps://www.facebook.com/pages/Developer-House/165333163615797just message me i will come on Team Viewer and solve the prob.
Thanks for reading the Tutorial
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.
©2019. All rights reserved. Terms & Privacy