Manual Install Cocos2d-x vc template on Windows 7

Manual Installation Process

 

  1. Download the template file from HERE and extract it.
  2. Open the file CCAppWiz.win32.vsz
  3. Now check for Param="ABSOLUTE_PATH , edit this path according to your cocos2d-x folder (mine is located at D:\DEVELOPMENT\cocos2d-2.1beta3-x-2.1.0\cocos2d-2.1beta3-x-2.1.0\template\msvc\CCAppWiz.win32)
  4. Save this file.
  5. Now copy Cocos2d-x folder , CCAppWiz.win32.ico, CCAppWiz.win32.vsdir and CCAppWiz.win32.vsz form cocostemplate.
  6. Go to C:\Program Files\Microsoft Visual Studio 10.0\VC\vcprojects and paste the copied content.
  7. Restart Visual studio.
Thats it, we are done with the manual installation process. Now in visual studio go to the 
File->New->Project->Visual C++ and you should see the screen below.
 
奇怪,我下载的 cocos2d-x-2.1.4.zip 怎么没有 template/msvc 这个目录呢.
 
答案是:Since v2.1.2,cocos2d-x/tools/project-creator.py can do the magic for you.

大意是说,2.1.2版本之后,使用project-creator.py这个python脚本进行工程项目的创建和配置,不适用向导的方式创建了。

 这样的话,如果硬要使用VC模板向导的话,可以下载一个2.1.2之前的版本,可以去官网Download网址:Cocos2d-x Download下载一个比较中间的版本,比如:cocos2d-2.0-x-2.0.4 @ Nov 02 2012

 下载后解压96.11MB的cocos2d-2.0-x-2.0.4.zip文件,在解压后的cocos2d-2.0-x-2.0.4目录下,然后进入子目录cocos2d-2.0-x-2.0.4\template\msvc中去,里面有VS2008、VC2010、VC2012完整版和VS2008、VC2010精简版的js脚本,可以用于配置VC模板。

posted @ 2013-07-24 02:50  小糊涂的超级blog  阅读(296)  评论(0编辑  收藏  举报