Developers Manual > Cocos2d-x > Deprecated Docs for Cocos2d-x > Setting up Development Environments > Windows 7 Environment Setup > Cocos2d-x Application Wizard for Visual Studio User Guide

Cocos2d-x Application Wizard for Visual Studio User Guide

0. Overview

  • Cocos2d-x-win32’s project can be generated by Wizard.
  • Wizard supports Visual Studio 2008, Visual Studio 2010, Visual C2008 Express and Visual C** 2010 Express* .

1. Frist of all, get the cocos2d-x source code from github

2. Build Cocos2d-x Solution

Win32

  • Run the Build-win32.bat script, which adapts vc2008 or vc2010 automatically, to build the solution,
  • or open cocos2d-win32 sln file and build the solution in IDE.
    • The cocos2d-win32.vc2008.sln is the vc2008 solution for win32.
    • The cocos2d-win32.vc2010.sln is the vc2010 solution for win32.

  • Confirm the binary target.(example with win32)
  • Cocos2d-win32 binary in the folder named Debug.win32 or Release.win32;
  • Cocos2d-wohone binary in PRJ_TG3\LIB\Win32Lib.

  • Run HelloWorld and tests(example with win32)



  1. Install the cocos2d-x application wizard to Micro Soft Visual C*+ development environment
  2. Run install-templates-msvc.bat to install the cocos2d-x application wizard automatically.
  3. The script files for each msvc IDE in the directory:** .

* The script whose name with the suffix “Express” is used to install wizard for virsual c*+ express version.

4. Add a New Application Project

Warning: If you want to create a project in your own solution, modify the project Output Directory property, and replace the value “\$(SolutionDir” with "..







5. Build and Run the New Cocos2d-x Project



cc_setup_js.PNG (6.5 kB) yangws, 2011-03-04 22:42

cc_tests_win32.PNG (22.9 kB) yangws, 2011-03-04 22:42

cc_build_folder.PNG (28.6 kB) yangws, 2011-03-04 22:42

cc_helloworld_win32.PNG (96.2 kB) yangws, 2011-03-04 22:42

cc_new_project_binary.PNG (33.4 kB) yangws, 2011-03-04 22:42

cc_new_project_location.PNG (26.6 kB) yangws, 2011-03-04 22:42

cc_new_project_run.PNG (59.5 kB) yangws, 2011-03-04 22:42

cc_add_new_project.PNG (10.3 kB) yangws, 2011-03-04 22:48

cc_build_solution.PNG (7.8 kB) yangws, 2011-03-04 22:48

cc_new_project_feature.PNG (23.1 kB) yangws, 2011-03-04 22:48

cc_setup_js_success.PNG (4.9 kB) yangws, 2011-03-04 22:48

cc_new_project_source.PNG (46.5 kB) yangws, 2011-03-04 22:51

cc_repository.PNG (10.4 kB) yangws, 2011-03-15 01:20

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps Support Email: support@cocos.org