VS2008下cocos2d-x工程配置

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

發佈了32 篇原創文章 · 獲贊 10 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章