码迷,mamicode.com
首页 > 其他好文 > 详细

[COCOS2DX]官网helloworld在VS2012中的部署

时间:2015-04-16 17:13:52      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:

VS2012、JDK、Eclipse(和adt插件)之类的基本安装这里直接略过。

以下为对cocos2dx 3.5版本在VS2012中部署的摸索:

技术分享

开源项目“愤怒的小鸟”原来设置:

技术分享

.;..\Classes;E:cocos2d-2.0-x-2.0.4\cocos2dx;E:cocos2d-2.0-x-2.0.4\cocos2dx\include;E:cocos2d-2.0-x-2.0.4\cocos2dx\kazmath\include;E:cocos2d-2.0-x-2.0.4\cocos2dx\platform\win32;E:cocos2d-2.0-x-2.0.4\cocos2dx\platform\third_party\win32;E:cocos2d-2.0-x-2.0.4\cocos2dx\platform\third_party\win32\OGLES;E:cocos2d-2.0-x-2.0.4\external;E:cocos2d-2.0-x-2.0.4\CocosDenshion\include;%(AdditionalIncludeDirectories)

http://www.xuebuyuan.com/1968031.html里面用到的配置:

C:\ComputerScience\cocos2d-x-3.5\extensions;

C:\ComputerScience\cocos2d-x-3.5\cocos;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\cocos2dx\include;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\cocos2dx\kazmath\include;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\cocos2dx\platform\win32;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\cocos2dx\platform\third_party\win32;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\cocos2dx\platform\third_party\win32\OGLES;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\external;

D:\soft\asp.netTools\cocos2d-2.1rc0-x-2.1.2\CocosDenshion\include;

官网下载的COCOS2dX-3.5工具包中cpp-tests项目里面的配置:

【C/C++】

附加包含目录:

技术分享

..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\network;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\websockets\win32\include;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)

继承的值:

$(EngineRoot)cocos\editor-support

$(EngineRoot)cocos

$(EngineRoot)cocos\platform

$(EngineRoot)cocos\platform\desktop

$(EngineRoot)external\glfw3\include\win32

【链接器】

附加库目录:$(OutDir);$(SolutionDir)$(Configuration).win32;%(AdditionalLibraryDirectories)

附加依赖项:libcurl_imp.lib;websockets.lib;opengl32.lib;glew32.lib;%(AdditionalDependencies)

我最终摸索好的配置(找不到的库文件直接文件检索然后把路径添加进去就行了):

【C/C++】

附加包含目录:

..\Classes;C:\ComputerScience\cocos2d-x-3.5;C:\ComputerScience\cocos2d-x-3.5\cocos;C:\ComputerScience\cocos2d-x-3.5\cocos\editor-support;C:\ComputerScience\cocos2d-x-3.5\cocos\audio\include;C:\ComputerScience\cocos2d-x-3.5\cocos\network;C:\ComputerScience\cocos2d-x-3.5\external;C:\ComputerScience\cocos2d-x-3.5\external\chipmunk\include\chipmunk;C:\ComputerScience\cocos2d-x-3.5\external\curl\include\win32;C:\ComputerScience\cocos2d-x-3.5\external\websockets\win32\include;C:\ComputerScience\cocos2d-x-3.5\extensions;C:\ComputerScience\cocos2d-x-3.5\cocos\platform;C:\ComputerScience\cocos2d-x-3.5\cocos\platform\win32;C:\ComputerScience\cocos2d-x-3.5\external\glfw3\include\win32;%(AdditionalIncludeDirectories)

【链接器】

附加库目录:$(OutDir);$(SolutionDir)$(Configuration).win32;%(AdditionalLibraryDirectories)

附加依赖项:libcurl_imp.lib;websockets.lib;opengl32.lib;glew32.lib;%(AdditionalDependencies)

[COCOS2DX]官网helloworld在VS2012中的部署

标签:

原文地址:http://www.cnblogs.com/lzhitian/p/4432312.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!