Developers Manual > Cocos2d-x > Deprecated Docs for Cocos2d-x > Setting up Development Environments > BlackBerry Environment setup > How to run HelloWorld and Tests on BlackBerry Tablet OS

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:2d-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:2d-x**.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’.

import.png (25.2 kB) dumganhar, 2012-01-09 07:48

select_exist_prj.png (61.2 kB) dumganhar, 2012-01-09 07:50

after_import.png (15.1 kB) dumganhar, 2012-01-09 07:52

after_import.png (15.1 kB) dumganhar, 2012-01-09 07:53

build_projects.png (15.1 kB) dumganhar, 2012-01-09 07:54

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps