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

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

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

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

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

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

.;..Classes;E:cocos2d-2.0-x-2.0.4cocos2dx;E:cocos2d-2.0-x-2.0.4cocos2dxinclude;E:cocos2d-2.0-x-2.0.4cocos2dxkazmathinclude;E:cocos2d-2.0-x-2.0.4cocos2dxplatformwin32;E:cocos2d-2.0-x-2.0.4cocos2dxplatform hird_partywin32;E:cocos2d-2.0-x-2.0.4cocos2dxplatform hird_partywin32OGLES;E:cocos2d-2.0-x-2.0.4external;E:cocos2d-2.0-x-2.0.4CocosDenshioninclude;%(AdditionalIncludeDirectories)

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

C:ComputerSciencecocos2d-x-3.5extensions;

C:ComputerSciencecocos2d-x-3.5cocos;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2cocos2dxinclude;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2cocos2dxkazmathinclude;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2cocos2dxplatformwin32;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2cocos2dxplatform hird_partywin32;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2cocos2dxplatform hird_partywin32OGLES;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2external;

D:softasp.netToolscocos2d-2.1rc0-x-2.1.2CocosDenshioninclude;

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

【C/C++】

附加包含目录:

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

..Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocoseditor-support;$(EngineRoot)cocosaudioinclude;$(EngineRoot)cocos etwork;$(EngineRoot)external;$(EngineRoot)externalchipmunkincludechipmunk;$(EngineRoot)externalcurlincludewin32;$(EngineRoot)externalwebsocketswin32include;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)

继承的值:

$(EngineRoot)cocoseditor-support

$(EngineRoot)cocos

$(EngineRoot)cocosplatform

$(EngineRoot)cocosplatformdesktop

$(EngineRoot)externalglfw3includewin32

【链接器】

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

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

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

【C/C++】

附加包含目录:

..Classes;C:ComputerSciencecocos2d-x-3.5;C:ComputerSciencecocos2d-x-3.5cocos;C:ComputerSciencecocos2d-x-3.5cocoseditor-support;C:ComputerSciencecocos2d-x-3.5cocosaudioinclude;C:ComputerSciencecocos2d-x-3.5cocos etwork;C:ComputerSciencecocos2d-x-3.5external;C:ComputerSciencecocos2d-x-3.5externalchipmunkincludechipmunk;C:ComputerSciencecocos2d-x-3.5externalcurlincludewin32;C:ComputerSciencecocos2d-x-3.5externalwebsocketswin32include;C:ComputerSciencecocos2d-x-3.5extensions;C:ComputerSciencecocos2d-x-3.5cocosplatform;C:ComputerSciencecocos2d-x-3.5cocosplatformwin32;C:ComputerSciencecocos2d-x-3.5externalglfw3includewin32;%(AdditionalIncludeDirectories)

【链接器】

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

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