d3dx9.h not found also issue for msvc2010/msvc2012

Minor issues with the Ogre API that can be trivial to fix
Post Reply
jonim8or
Goblin
Posts: 287
Joined: Mon Dec 08, 2008 4:49 pm

d3dx9.h not found also issue for msvc2010/msvc2012

Post by jonim8or » Tue Mar 04, 2014 5:00 pm

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)
Attachments
ogrestatic.patch
(381 Bytes) Downloaded 88 times
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 1
Contact:

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

Post by Wolfmanfx » Tue Mar 04, 2014 9:16 pm

Your patch is a link to the eol patch. Please relink it with the correct file so I can take a look.
0 x

User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7144
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 14

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

Post by Kojack » Sat Mar 08, 2014 3:35 am

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.
0 x

Post Reply