VC++ Compile Error, version of DirectX SDK too new?

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
cm3rt
Posts: 9
Joined: Sat Apr 12, 2008 6:39 pm
Contact:

VC++ Compile Error, version of DirectX SDK too new?

Post by cm3rt »

Okay so when trying to compile the VC++ Irrlicht 9.0 project, I get the following errors.

1>c:\users\joe\desktop\irrlicht-1.4.2\irrlicht-1.4.2\source\irrlicht\CD3D8Driver.h(25) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory



AND


1>c:\users\joe\desktop\irrlicht-1.4.2\irrlicht-1.4.2\source\irrlicht\CD3D9ShaderMaterialRenderer.h(13) : fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory

I know that I should have a directory for these missing files where the DirectX SDK is; and I do. The problem is, I have a file named 'd3d9.h', which is obviously an updated version of 'd3d8.h'. I also have the file named 'd3d10shader.h' which has to be an updated version of 'd3dx9shader.h'. Looking in the directory, a lot of the files are version 10 or 9, unlike what the source asks for. I do not have the files anywhere else that I can find.

What can I do to successfully compile Irrlicht?
The future is coming on.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yeah, it sounds like you have the DX10 SDK, and you probably want the DX9 SDK. Microsoft hosts many versions of the SDK, so you have to be sure to get the right one. I believe that this one should work.

Travis
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Re: VC++ Compile Error, version of DirectX SDK too new?

Post by rogerborg »

cm3rt wrote:1>c:\users\joe\desktop\irrlicht-1.4.2\irrlicht-1.4.2\source\irrlicht\CD3D8Driver.h(25) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
In addition, the D3D8 driver should be compiled out of 1.4.2 by default.

In your SDK include directory, there's a file called IrrCompileConfig.h. Unless you actually want support for the D3D8 driver[1] this line should be commented out:

Code: Select all

//#define _IRR_COMPILE_WITH_DIRECT3D_8_
[1] And if you want D3D8 support, you'll have to get an even older version of the DXSDK, since Microsoft have deliberately removed support for D3D8. Issues with this should be directed to Steve Ballmer:

Image
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I believe that the DX 9.0c SDK (linked above) includes the DX8 headers, so you can build with DX8 if you want.

Travis
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

vitek wrote:I believe that the DX 9.0c SDK (linked above) includes the DX8 headers, so you can build with DX8 if you want.
August 2005 doesn't have the headers.

Summer 2004 is the most recent DXSDK that I can find that has them.

Amusingly enough, Googling for those headers seems to throw up a lot of Irrlicht hits. I guess Irrlicht is one of the few D3D8 holdouts.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply