error C1083: Cannot open include file: 'd3dx9.h': No such file or directory ..
how is this solve?
error C1083: Cannot open include file: 'd3dx9.h'
-
- Gnoblar
- Posts: 9
- Joined: Tue Mar 25, 2014 11:30 am
-
- OGRE Moderator
- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 535
Re: error
To get d3dx9.h you need to install the directx sdk (latest version is june 2010).
The version of directx that comes with the platform sdk is incomplete, MS removed the d3dx9 features.
The version of directx that comes with the platform sdk is incomplete, MS removed the d3dx9 features.
-
- Gnoblar
- Posts: 9
- Joined: Tue Mar 25, 2014 11:30 am
Re: error C1083: Cannot open include file: 'd3dx9.h'
i installed the directx sdk (latest version is june 2010), but still error occurred.
-
- Gnoblar
- Posts: 5
- Joined: Tue Dec 16, 2014 8:47 pm
Re: error C1083: Cannot open include file: 'd3dx9.h'
Hey, this error affects me too, I'm trying to compile Ogre 1.9 (dd30349ea667) with OGRE_STATIC enabled using MinGW (following this tutorial: http://www.ogre3d.org/tikiwiki/tiki-ind ... +and+MinGW). I have DirectX SDK (June 2010) installed in path D:\Program Files (x86)\Microsoft DirectX SDK (June 2010). Also the file d3dx9.h is present in D:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include directory and DirectX9_INCLUDE_DIR is set correctly to the path where mentioned file is present. I've managed to compile 1.10 dynamically but had problems with it so decided to try 1.9 out.
Following post: http://www.ogre3d.org/forums/viewtopic. ... 38#p490128 mentions that "some magic changes" (i've got no idea how to read that) in CMakeList.txt in "some magic location" should fix it. Also I've seen Jira ticket OGRE-120 (https://ogre3d.atlassian.net/browse/OGRE-120) that mentions this error but its status is "closed" and the patch attached there doesn't seem to do anything with DirectX 9. I'm out of ideas, I'm compiling Ogre dynamically for now (honestly I'm not sure what the difference is) and I hope it'll work.
Anyway I hate when something just doesn't work so maybe there's someone who can help me to figure it out
.
Following post: http://www.ogre3d.org/forums/viewtopic. ... 38#p490128 mentions that "some magic changes" (i've got no idea how to read that) in CMakeList.txt in "some magic location" should fix it. Also I've seen Jira ticket OGRE-120 (https://ogre3d.atlassian.net/browse/OGRE-120) that mentions this error but its status is "closed" and the patch attached there doesn't seem to do anything with DirectX 9. I'm out of ideas, I'm compiling Ogre dynamically for now (honestly I'm not sure what the difference is) and I hope it'll work.
Anyway I hate when something just doesn't work so maybe there's someone who can help me to figure it out
