How to run HelloWorld and Tests on BlackBerry Tablet OS¶
Setup qnx and cocos2d-x environment¶
- Download the latest cocos2d-x from https://github.com/cocos2d/cocos2d-x, extract it to your folder, for example C:2d-x
- Download blackberry ndk and simulator from https://bdsc.webapps.blackberry.com/native/download/, and install them.
- Click the desktop icon named ‘BlackBerry Native SDK for Tablet OS 1.0’ to start the QNX IDE.
- Import cocos2d project Click the menu, ‘File’ —> ‘Import…’—>‘General’—>‘Existing Projects into workspace’—>‘Next’ —>‘Select root directory:_**_**[Browse…]’ —>Select the folder in step 1 and click ok button —>Select the projects which have a suffix `C:2d-x**.qnx` ->Click ‘Finish’ button. Now all qnx projects is being imported to workspace.
Right click ‘TestCocos2dx’ and select ‘Build Project’, it will finish building after some minutes
If you get compilation errors, you might need to build Cocos2dx project, and all others
First, you should configure blackberry native sdk and simulator according to https://bdsc.webapps.blackberry.com/native/documentation/getting\_started.html.
Then, right click ‘TestCocos2dx’ and select ‘Run as —> 1.BlackBerry Tablet OS C/C++ application’.