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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值