How to run HelloWorld and Tests on BlackBerry Tablet OS¶
Setup qnx and cocos2d-x environment¶
1. Download the latest cocos2d-x from https://github.com/cocos2d/cocos2d-x, extract it to your folder, for example C:\cocos2d-x
2. Download blackberry ndk and simulator from https://bdsc.webapps.blackberry.com/native/download/, and install them.
3. Click the desktop icon named 'BlackBerry Native SDK for Tablet OS 1.0' to start the QNX IDE.
4. 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:\cocos2d-x\****\proj.qnx`
->Click 'Finish' button.
Now all qnx projects is being imported to workspace.
---------------------------------------------------------
---------------------------------------------------------
---------------------------------------------------------
Building Projects¶
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
Run application¶
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'.