Project

General

Profile

Actions

Emulator Issues #4057

closed

MSVC2010 complains about missing D3D files. DirectX SDK is installed

Added by javimi.wan.kenobi over 13 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem?

When building Dolphin with MSVC2010 I get errors like:

error C1083: Cannot open include file: 'd3dx11.h': No such file or directory e:\dolphin\source\plugins\plugin_videodx11\src\D3DBase.h 20 1 VideoDX11

I build other projects that need the same files without issues, so it's probably Dolphin's fault. Maybe the DirectX SDK directory isn't correctly set.

Actions #1

Updated by donkopunchstania over 13 years ago

  • Status changed from New to Questionable

Did you install the DirectX SDK before installing MSVC 2010? I think the SDK installation should set up some paths for MSVC. You could try reinstalling the SDK or setting up the paths manually.

To setup the paths yourself go to View->Property Manager then select AudioCommon, open the Debug|win32 folder and open Microsoft.Cpp.Win32.user. All projects you open will share this default property sheet. In the Microsoft.Cpp.Win32.user property sheet find VC++ Directories and add "$(DXSDK_DIR)\include" to the include directories and "$(DXSDK_DIR)\lib\x86" to the library directories. Not really sure what to do about x64. Probably easier to reinstall the SDK, but this worked for me.

Other projects probably specify the include and lib paths themselves, but I think it is preferred to have the default property sheet specify the paths.

Actions #2

Updated by javimi.wan.kenobi over 13 years ago

Nope, after. But with 2010 it didn't set anything.

And yes, they set the paths manually. I agree with you, however it should be noted that to get the same easy procedure as with 2008 (install MSVC->install SDK->compile), Dolphin needs the paths. It doesn't hurt anyway, but it's your call. I wonder why Microsoft removed the VC++ Directories section in 2010...

Actions #3

Updated by Billiard26 over 13 years ago

  • Status changed from Questionable to Invalid

You are still able to set global paths in vs2010 under view->property manager.

Actions #4

Updated by javimi.wan.kenobi over 13 years ago

I know, but you have to do it manually, unlike in VS2008 where the SDK adds the paths automatically. This is just another stupid decision by Microsoft, and can be "fixed" by adding the paths to Dolphin. If you have VS2008 installed and configured when you install VS2010 your paths are ported to VS2010, as seen here (see last post): http://social.msdn.microsoft.com/Forums/en/Vsexpressvc/thread/e7b6559e-b0c2-453a-bae6-4234a408fe4e

Otherwise nothing happens and you have to do it the hard way. I think this just adds unnecessary steps when configuring the building environment...

Actions

Also available in: Atom PDF