fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory

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
umen
Posts: 54
Joined: Fri Aug 08, 2008 11:10 am

fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory

Post by umen »

Hello all
Trying to complie the engine in win10 64bit with vc++ 2022
Getting those :

Code: Select all

1>C:\dev\my\cpp\irrlicht\irrlicht-1.8.5\source\Irrlicht\CD3D9ShaderMaterialRenderer.h(15,10): fatal  error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory
1>CD3D9HLSLMaterialRenderer.cpp
1>C:\dev\my\cpp\irrlicht\irrlicht-1.8.5\source\Irrlicht\CD3D9ShaderMaterialRenderer.h(15,10): fatal  error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory
1>CD3D9NormalMapRenderer.cpp
1>C:\dev\my\cpp\irrlicht\irrlicht-1.8.5\source\Irrlicht\CD3D9ShaderMaterialRenderer.h(15,10): fatal  error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory
1>CD3D9ParallaxMapRenderer.cpp
1>C:\dev\my\cpp\irrlicht\irrlicht-1.8.5\source\Irrlicht\CD3D9ShaderMaterialRenderer.h(15,10): fatal  error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory
1>CD3D9ShaderMaterialRenderer.cpp
1>C:\dev\my\cpp\irrlicht\irrlicht-1.8.5\source\Irrlicht\CD3D9ShaderMaterialRenderer.h(15,10): fatal  error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory
1>CD3D9Texture.cpp
1>C:\dev\my\cpp\irrlicht\irrlicht-1.8.5\source\Irrlicht\CD3D9Texture.cpp(13,10): fatal  error C1083: Cannot open include file: 'd3dx9tex.h': No such file or directory
what is the best way to fix and still be on the letest compilation runtime ?
Thanks
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: fatal error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory

Post by CuteAlien »

You need the legace DX SDK from here: https://www.microsoft.com/en-us/downloa ... px?id=6812
Alternatively you could probably disable compiling D3D9 in IrrCompileConfig.h and work with OpenGL
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
Post Reply