Missing .h files??

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
PaNDa
Posts: 8
Joined: Fri Jun 05, 2009 7:05 pm

Missing .h files??

Post by PaNDa »

When I try to run the Demo in example I ge this:
Error 1 fatal error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory c:\Users\PaNDa\Downloads\irrlicht-1.5\irrlicht-1.5\source\Irrlicht\CD3D9Texture.cpp 13 Irrlicht
Error 2 fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D9ShaderMaterialRenderer.h 13 Irrlicht
Error 3 fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D9ShaderMaterialRenderer.h 13 Irrlicht
Error 4 fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D9ShaderMaterialRenderer.h 13 Irrlicht
Error 5 fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D9ShaderMaterialRenderer.h 13 Irrlicht
Error 6 fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D9ShaderMaterialRenderer.h 13 Irrlicht
Error 7 fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D8Texture.h 13 Irrlicht
Error 8 fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D8ShaderMaterialRenderer.h 12 Irrlicht
Error 9 fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D8ParallaxMapRenderer.h 12 Irrlicht
Error 10 fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D8NormalMapRenderer.h 12 Irrlicht
Error 11 fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory c:\users\panda\downloads\irrlicht-1.5\irrlicht-1.5\source\irrlicht\CD3D8Driver.h 25 Irrlicht

I havnt deleted any folders or files... why is it not finding these files?
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

a) install required DX8 and DX9 SDKs from microsoft
or
b) deactivate DX8 and DX9 in compilation options (irrcompileconfig.h)

option b is by far the easier solution.
PaNDa
Posts: 8
Joined: Fri Jun 05, 2009 7:05 pm

Post by PaNDa »

what do the DX8 and 9 compilation options do? And how difficult is it to install them?
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

Just install the directx9 SDK, That will solve the first bunch of errors. The second bunch is because the directx8 sdk is missing, but it shouldnt be enabled anyway.

In irrlichtCompileConfig.h there is a

#define _IRR_COMPILE_WITH_DIRECTX8_

or something similar, take it out by puting a // in front of it
PaNDa
Posts: 8
Joined: Fri Jun 05, 2009 7:05 pm

Post by PaNDa »

Thanks for the quick responses!! 8)

EDIT: Nevermind.... it didn't work! haha. It still gives me the error that it can't open 'd3dx9tex.h' 'd3dx9shader.h' and 'd3d8.h' because it just isn't there.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need to disable those defines in IrrCompileConfig.h. Once you do this it works for sure. You won't have DirectX support then, though. If you installed the DirectX SDK make sure that the include paths etc. are properly set up in MSVC.
PaNDa
Posts: 8
Joined: Fri Jun 05, 2009 7:05 pm

Post by PaNDa »

the include paths for direct x? I did have it updated to 9 like the previous post told me... except i'm sure it was at 9 since just bought my laptop a week ago. Anyways, let me know what to do next :D

weird no one else has had this problem!
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

PaNDa wrote:weird no one else has had this problem!
probably because they use the DX9 SDK and not the (normal) installation !?!?! :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
PaNDa
Posts: 8
Joined: Fri Jun 05, 2009 7:05 pm

Post by PaNDa »

You know us noobs so well :shock:
Post Reply