yoii0 发表于 2017-7-21 00:00:00

如何在Tizen平台中运行HelloWorld及测试项目

取出(check out)开发分支(develop branch)。1. 从https://github.com/cocos2d/cocos2d-x下载最新的cocos2d-x引擎2. 创建证书文件
运行{TIZEN_SDK}/tools/certificate-generator/certificate-generator.bat or .sh文件。http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/certificate_generator.png点击'Window'->'Preference'->'Tizen SDK'->'Secure Profiles'
[*]点击“Add”按钮设置资料
[*]设置“Certificate”(证书)路径
[*]输入密码
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/secure_profiles.png
[*]3. 用Tizen SDK 2.1编译所有项目3.1 创建工作空间Create Workspace in cocos2d-x/samples/Cpp/{SampleName}
或者Create Workspace in cocos2d-x/samples/Cpp/TestCpp
如果设置路径不正确,则无法使用断点(breakpoint)
3.2 导入项目点击'File'->'Import'->'Tizen'->'Native Projects'->'Next'http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/import.png点击“Browse”选择cocos2d-x根路径,勾上以“proj.tizen”结尾的项目,点击“Finish”完成。
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/import_projects.pngcocos2d-x/external/Box2D/proj.tizen
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/imported_protjects.png3.3 复制资源文件将cocos2d-x/samples/Cpp/HelloCpp/Resources/.复制到cocos2d-x/samples/Cpp/HelloCpp/proj.tizen/res目录下。3.4 编译所有项目,运行测试项目右键单击“proj.tizen”项目,选择“Run as”(运行方式)再选择“Run Configurations”(运行配置)http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/runas.png右键单击“Tizen Native Application”然后选择“New”。http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/tizen_native_application_new.png点击“Run”。http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/run_testcpp.pngTestCpp测试项目正在运行。如图所示。http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/testcpp1.png
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/testcpp2.png
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/testcpp3.png
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/testcpp5.png
http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/testcpp6.png如果你是在“cocos2d-x/samples/Cpp/HelloCpp”路径下创建工作空间并导入“proj.tizen”项目,你会看到如下所示。http://www.cocos.com/docs/cocos2d-x/v2/getting-started/setting-up-development-environments/tizen-environment-setup/res/hellocpp.png
页: [1]
查看完整版本: 如何在Tizen平台中运行HelloWorld及测试项目