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?
VC++ Compile Error, version of DirectX SDK too new?
VC++ Compile Error, version of DirectX SDK too new?
The future is coming on.
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
Travis
-
- 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?
In addition, the D3D8 driver should be compiled out of 1.4.2 by default.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 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_
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
August 2005 doesn't have the headers.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.
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way