您的位置:首页 > 移动开发 > Cocos引擎

VS2008下cocos2d-x工程配置

2012-03-05 20:51 337 查看
Cocos2dx Project settings in VS2008:

First we should build the libcocos2d, because we will use the outputof the libcocos2d building in our own project, so its setting should be finished first.

Libcocos2d Project:

1. Configuration Properties ->General -> Output Directory: the result(lib files) will be built to here soit should be a place we should know.

2. Configuration Properties ->C/C++ -> General -> Additional Include Directories: here should be all the head files’ directories that will be used by this project.

3. Configuration Properties ->Linker -> General -> Output File: $(OutDir)\$(ProjectName).dll

The OutDir is the same as the OutputDirectory in 1.

4. Configuration Properties ->Linker -> General ->Additional Library Directories: $(OutDir)

5. Configuration Properties ->Linker -> Input -> Additional Dependencies: put down all the libraries we will use. Like : libEGL.lib libgles_cm.lib libxml2.lib libzlib.lib libpng.lib
libjpeg.lib libiconv.lib pthreadVCE2.lib

My Cocos2d Project:

1. Configuration Properties ->General -> Output Directory: this should be same with the one of Libcocos2dproject.

2. Configuration Properties-> C/C++ -> General -> Additional Include Directories:

Like:..\..\cocos2dx\include;..\..\cocos2dx;..\..\cocos2dx\platform;..\..\cocos2dx\platform\third_party\win32\OGLES. We could add more if they will be use by our project just for improving developing speed.

3. Configuration Properties ->Linker -> General -> Output File: $(OutDir)\$(ProjectName).exe

4. Configuration Properties ->Linker -> General ->Additional Library Directories: $(OutDir)

5. Configuration Properties ->Linker -> Input -> Additional Dependencies: libcocos2d.lib libgles_cm.lib2
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: