Page 1 of 1

d3dx9.h not found also issue for msvc2010/msvc2012

Posted: Tue Mar 04, 2014 5:00 pm
by jonim8or
Compiling with OGRE_Static using msvc2012 I get a fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory for the samplebrowser. It is also mentioned in the bug Sample browser fails to compile in MSVC 2010 when OGRE_STATIC=true in january, but it still exists.

I think it is fixed by removing the MingW-only check (or adding MSVC as extra option) in the SampleBrowsers CmakeList.txt (see patch)

Re: d3dx9.h not found also issue for msvc2010/msvc2012

Posted: Tue Mar 04, 2014 9:16 pm
by Wolfmanfx
Your patch is a link to the eol patch. Please relink it with the correct file so I can take a look.

Re: d3dx9.h not found also issue for msvc2010/msvc2012

Posted: Sat Mar 08, 2014 3:35 am
by Kojack
I've never built ogre static so I don't know if this is some extra problem, but VC2010 and above come with a platform sdk that is intentionally missing d3dx9.h, microsoft decided to drop support for it. You need to install the June 2010 directx sdk instead of using the incomplete directx that comes with the platform sdk.