VS2013: Build errors on d3dx9shader

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
miyudreams
Posts: 1
Joined: Tue Feb 18, 2014 5:46 am

VS2013: Build errors on d3dx9shader

Post by miyudreams »

Help, I just downloaded Irrlicht 1.8.1 SDK.
Opened BuildAllExamples_vc11.sln.
Build all.

But I got 25 errors. I'm running Visual Studio 2013 on Windows 8.1. Is this OS and IDE supported? By default, Windows 8.1 has DirectX 10 and 11 installed. I can't install DirectX 9, it's not compatible, with a popup message box.

Anyone know how I can proceed?

Thanks

---------------------------
DirectX Setup
---------------------------
You must be running Windows 98, Windows Millennium Edition,
Windows 2000, Windows XP or Windows Server 2003 family
to install the DirectX 9.0.
---------------------------
OK
---------------------------

Code: Select all

 
Error   1   error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory   d:\development\irrlicht-1.8.1\source\irrlicht\CD3D9ShaderMaterialRenderer.h 15  1   Irrlicht
Error   2   error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory   d:\development\irrlicht-1.8.1\source\irrlicht\CD3D9ShaderMaterialRenderer.h 15  1   Irrlicht
Error   3   error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory   d:\development\irrlicht-1.8.1\source\irrlicht\CD3D9ShaderMaterialRenderer.h 15  1   Irrlicht
Error   4   error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory   d:\development\irrlicht-1.8.1\source\irrlicht\CD3D9ShaderMaterialRenderer.h 15  1   Irrlicht
Error   5   error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory   d:\development\irrlicht-1.8.1\source\irrlicht\CD3D9ShaderMaterialRenderer.h 15  1   Irrlicht
Error   6   error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory  D:\Development\irrlicht-1.8.1\source\Irrlicht\CD3D9Texture.cpp  13  1   Irrlicht
    7   IntelliSense: cannot open source file "d3dx9shader.h"   d:\Development\irrlicht-1.8.1\source\Irrlicht\CD3D9ShaderMaterialRenderer.h 15  1   Irrlicht
    8   IntelliSense: identifier "D3DXMACRO" is undefined   d:\Development\irrlicht-1.8.1\source\Irrlicht\CD3D9ShaderMaterialRenderer.h 66  12  Irrlicht
    9   IntelliSense: identifier "LPD3DXINCLUDE" is undefined   d:\Development\irrlicht-1.8.1\source\Irrlicht\CD3D9ShaderMaterialRenderer.h 66  33  Irrlicht
    10  IntelliSense: identifier "LPD3DXBUFFER" is undefined    d:\Development\irrlicht-1.8.1\source\Irrlicht\CD3D9ShaderMaterialRenderer.h 67  19  Irrlicht
 
CuteAlien
Admin
Posts: 9928
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: VS2013: Build errors on d3dx9shader

Post by CuteAlien »

For development you don't just need DirectX installed but you need the DirectX SDK to get the headers. I have no Windows 8 so I can't really test - but I suppose newer DirectX SDK's should still include with the old headers.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AReichl
Posts: 269
Joined: Wed Jul 13, 2011 2:34 pm

Re: VS2013: Build errors on d3dx9shader

Post by AReichl »

Best is to just install an old DirectX SDK (e.g. June 2010). Works perfectly with Irrlicht.

With Windows 8 i am not so sure. Microsoft has abandoned the DirectX SDK - it's now part of the general platform SDK, and THAT should be included with an installation of Visual Studio 2013. I for example can compile the shader branch of Irrlicht with VS2013 without problems.
AReichl
Posts: 269
Joined: Wed Jul 13, 2011 2:34 pm

Re: VS2013: Build errors on d3dx9shader

Post by AReichl »

Ahhh - sorry - didn't read your post carefully.
You cannot install an old SDK on Windows 8 (or 8.1) - that's right.
I remember i didn't install it but just copied it from another computer and set the enviroment variable DXSDK_DIR by hand.
But it still doesn't explain, why it doesn't find any headers. Best check if they are there - if not, then something with the installation went wrong.
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: VS2013: Build errors on d3dx9shader

Post by thanhle »

Not sure about windows 8.1.
But all demo runs fine on VS 2013 for version 1.81.

Regards,
thanh
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: VS2013: Build errors on d3dx9shader

Post by hybrid »

I think it compiled all fine for me, with 2010 SDK and VS2012. Will check, but should work all well.
Post Reply