Game Development Community

Missing 'd3dx9.h', but DirectX SDK is installed?

by Yinan · in Torque Game Engine Advanced · 02/26/2013 (4:17 pm) · 7 replies

So apparently I'm missing some header file.

Everything on the forums says I need DirectX installed, but it is!
https://docs.google.com/drawings/d/1np0kfoxVnsfi8WSg2TRCjkD5Fw-1_Xn3sfPFXBWtZ9I/pub?w=960&h=720
(here's a screenshot)

WHAT SHOULD I DO???

About the author

Recent Threads


#1
02/26/2013 (6:31 pm)
go through these docs:
http://docs.garagegames.com/torque-3d/official/index.html?content/documentation/Setup/Overview.html
#2
02/26/2013 (6:37 pm)
Still, none of them explain my predicament.

I noticed that in the documentation they instructed us to install the DirectX in the C:/Temp folder (win7)

For some reason my Temp folder is in C:/Windows/Temp?
#3
02/26/2013 (6:51 pm)
which vs version u r using?

for 2010 u have to go through this one:
http://docs.garagegames.com/torque-3d/official/content/documentation/Setup/DevEnvironment2010.html


did u try to search the forum using "Missing 'd3dx9.h'" keywoard ?
instead of waiting u better give those old threads some shot.
http://www.garagegames.com/community/search#gsc.q=Missing 'd3dx9.h'&gsc.ref=forums&gsc.tab=0


https://www.garagegames.com/community/forums/viewthread/126452/1#comment-809813
#4
02/27/2013 (5:58 pm)
You'll need to add an environment variable. For some reason, the first time I installed the SDK, the variable wasn't added. This tells the compiler where the SDK is located.

Start Menu > Type in "Edit the System Environment Variables"

Click the Environment Variables button at the bottom

Add a new system variable called DXSDK_DIR and set the value to your SDK path. Mine says C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)
#5
03/01/2013 (5:56 am)
Where can I find the SDK path (like usually?)
#6
03/01/2013 (8:50 am)
Mine's in the default install path, so c:\Program Files (x86)\Microsoft DirectX SDK (XXXXXX). You might either want to reinstall the SDK or check that directory to see if it's there.

Is this the first time compiling that you get these errors, or did they just start happening out of nowhere?
#7
03/01/2013 (10:24 am)
www.microsoft.com/en-us/download/details.aspx?id=6812