2009年4月3日 星期五

IrrLicht 編譯與安裝

1. IrrLicht 編譯與安裝

軟體: IrrLicht 1.5 , Vs 2005, Kdevelop
系統: Windows XP, Fc 9.0
linux下 直接解壓縮後, make 便可.

Windows 則有些許問題:
首先編譯IrrLicht Engine

. Error 1:

C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(226) : error C2146: 语法错误 : 缺少“;”(在标识符“PVOID64”的前面)

修改方式:

在winnt.h 文件中

typedef void *PVOID;
typedef void * POINTER_64 PVOID64;

改成:

#define POINTER_64 __ptr64 // <= 加入這一行
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;

. Error 2:

找不到 d3d9.h , 這代表未安裝directX 9.0, 或未設置 vs 2005 的項目目錄.
安裝DirectX 9.0 開發包, 在vs2005 裡, 工具->選項 ->項目與解決方案 -> Vc++目錄
新增 include, lib, 等等的目錄到所安裝的 Dx9位置.


Irrlicht Example 編譯:

.Error 1:
d:\workspace\irrlicht-1.5\examples\demo\cdemo.h(21) : fatal error C1083: 无法打开包括文件:“irrKlang.h”: No such file or directory

解決方式:

軟件中給出的解決方法如下:
// problem here? go to http://www.ambiera.com/irrklang and download
// the irrKlang library or undefine USE_IRRKLANG at the beginning
// of this file.

下載 irrKlang-1.1.3c 檔案. irrKlang 本身已包含編譯好的 lib文件, 可以直接使用,解壓縮後, 與dx9設置方式相同, 將vs2005 的 include, lib 設置到所解呀的目錄.


.ok 到此 irrlicht 安裝與編譯完成.






1 則留言:

匿名 提到...

If I walked into a bank or even the union executive office, found a couple of hundred dollars on the floor, picked it up placed it in my pocket was noticed- I would be charged with theft. [url=http://www.vanessasac.com]sac lune vanessa bruno [/url] Feb 7 09:54 AMIt's rather odd that Mr. The fog will then burn off and the day will be nice and sunny. Discount Camping EquipmentA large percentage of the cost of a camping vacation is spent on the gear.
Beat in the vanilla, then add the eggs one at a time, beating for about 1 minute after each egg goes in. [url=http://www.icanadagooseca.com]canada goose parka[/url] I actually wrote the manufacturer to ask what the difference was. http://officialcanadagoosesoutlet.ca
[url=http://flyballbags.com]canada goose chilliwack[/url] Spikes are everywhere this season, and the biggest mistake you can make it to think youcan them off! Whether your style is bright and clean, girly and frilly, boho and 70s, or rock and roll you can work this unique embellishment into your wardrobe! From shoes to accessories, you can go as loud as you want, or test the waters with a more understated use of the spiked embellishment. [url=http://www.onlinebeatsbydreoutlet.com]beats by dre solo 150[/url]