Outdated Docs > How to run HelloWorld and tests of cocos2d-x on Tizen

How to run HelloWorld and tests of cocos2d-x on Tizen

  1. Download the lastest cocos2d-x form https://github.com/cocos2d/cocos2d-x

  2. Create certificate file

Run {TIZEN_SDK}/tools/certificate-generator/certificate-generator.bat or .sh

Click ‘Window’->‘Preference’->‘Tizen SDK’->‘Secure Profiles’
1. Click ‘Add’ button to set the profile.
2. Set the Certificate path.
3. Input the password.

h2. 3. Build all projects with Tizen SDK 2.1
h3. 3.1 Create Workspace

Create Workspace in cocos2d-x/samples/Cpp/{SampleName}

ex.

Create Workspace in cocos2d-x/samples/Cpp/TestCpp

If you set incorrect path than you can’t use the breakpoint.
h3. 3.2 Import projects
Click ‘FIle’->‘Import’->‘Tizen’->‘Native Projects’->‘Next’

Click ‘Browse’ button to select the root path of cocos2d-x, check the projects those ended with proj.tizen and click finish.

cocos2d-x/external/Box2D/proj.tizen
cocos2d-x/external/chipmunk/proj.tizen
cocos2d-x/cocos2dx/proj.tizen
cocos2d-x/CocosDenshion/proj.tizen
cocos2d-x/extenshions/proj.tizen
cocos2d-x/samples/Cpp/TestCpp/proj.tizen

h3. 3.3 Copy resource files.
Copy cocos2d-x/samples/Cpp/HelloCpp/Resources/**.** to cocos2d-x/samples/Cpp/HelloCpp/proj.tizen/res
h3. 3.4 build all projects, run tests project
Right Click project proj.tizen and the select ‘Run As’~~>‘Run Configurations’.

Right Click ‘Tizen Native Application’ and select ‘New’.

Click ‘Run’ Button

TestCpp is running now!





If you create workspace in cocos2d-x/samples/Cpp/HelloCpp and import proj.tizen than you can see below screen.

import.png (18.6 kB) pyrasis, 2013-05-21 01:05

import_projects.png (96 kB) pyrasis, 2013-05-21 02:11

import_projects.png (108 kB) pyrasis, 2013-05-21 02:13

imported_protjects.png (12.2 kB) pyrasis, 2013-05-21 02:13

runas.png (43.9 kB) pyrasis, 2013-05-21 05:25

tizen_native_application_new.png (37.9 kB) pyrasis, 2013-05-21 05:29

run_testcpp.png (48.4 kB) pyrasis, 2013-05-21 05:31

testcpp1.png (45.2 kB) pyrasis, 2013-05-21 05:37

testcpp2.png (61.5 kB) pyrasis, 2013-05-21 05:37

hellocpp.png (176.8 kB) pyrasis, 2013-05-21 05:39

testcpp3.png (78.1 kB) pyrasis, 2013-05-21 05:49

testcpp4.png (32.5 kB) pyrasis, 2013-05-21 05:49

testcpp5.png (144.4 kB) pyrasis, 2013-05-21 05:50

testcpp6.png (253.7 kB) pyrasis, 2013-05-21 05:50

certificate_generator.png (15.3 kB) pyrasis, 2013-05-21 12:28

secure_profiles.png (38 kB) pyrasis, 2013-05-21 12:31

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.