PythonTip >> 博文 >> python

cocos2d-x-2.2.2项目添加到vs

zihua 2014-02-20 15:02:06 点击: 800 | 收藏


首先你的有python

***************create_project.py -project 项目名字 -package 包名 -language cpp,


1.首先cmd中可以执行python(就是你有设置环境变量path)

在E:\cocos2d-x\cocos2d-x-2.2.2\tools\project-creator目录下按住 Shift键,在按鼠标右键,会出现<在此处打开命令窗口>选项。

例子:

E:\cocos2d-x\cocos2d-x-2.2.2\tools\project-creator>python create_project.py -pro

ject HelloCocoStudio147 -package com.john.test -language cpp

proj.ios : Done!

proj.android : Done!

proj.win32 : Done!

proj.winrt : Done!

proj.wp8 : Done!

proj.mac : Done!

proj.blackberry : Done!

proj.linux : Done!

proj.marmalade : Done!

proj.tizen : Done!

New project has been created in this path: E:\cocos2d-x\cocos2d-x-2.2.2\tools\pr

oject-creator/../../projects/HelloCocoStudio147

Have Fun!

E:\cocos2d-x\cocos2d-x-2.2.2\tools\project-creator>



2.若cmd不能打开python则可以给出python路径。

在E:\cocos2d-x\cocos2d-x-2.2.2\tools\project-creator目录下按住 Shift键,在按鼠标右键,会出现<在此处打开命令窗口>选项。

E:\cocos2d-x\cocos2d-x-2.2.2\tools\project-creator>F:\python\python.exe create_p

roject.py -project HelloCocoStudio114117 -package com.john.test -language cpp

proj.ios : Done!

proj.android : Done!

proj.win32 : Done!

proj.winrt : Done!

proj.wp8 : Done!

proj.mac : Done!

proj.blackberry : Done!

proj.linux : Done!

proj.marmalade : Done!

proj.tizen : Done!

New project has been created in this path: E:\cocos2d-x\cocos2d-x-2.2.2\tools\pr

oject-creator/../../projects/HelloCocoStudio114117

Have Fun!

E:\cocos2d-x\cocos2d-x-2.2.2\tools\project-creator>



ok后

 E:\cocos2d-x\cocos2d-x-2.2.2\....../projects/HelloCocoStudio114117即是你创建的工程,点击里面的 proj.win32\HelloCocoStudio.sln进入vs

原文链接:http://www.tuicool.com/articles/YvQJrq

作者:zihua | 分类: python | 标签: python | 阅读: 800 | 发布于: 2014-02-20 15时 |