【发布时间】:2014-04-06 16:57:46
【问题描述】:
我正在尝试运行由 Frank Luna 提供的示例项目(DirectX 11.0 3D 游戏编程简介)。 http://www.d3dcoder.net/d3d11.htm
我正在使用安装了 Windows 8 SDK 的 Windows 8.1 - 在 Visual Studio 2012 上(据我所知,Windows 8.1 SDK 包括直接 x 11.2)。
每当我尝试运行该项目时,都会出现以下构建错误:
Error 1 error C1083: Cannot open include file: 'd3dUtil.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\vertex.h 10 1 Camera
Error 2 error C1083: Cannot open include file: 'd3dUtil.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\renderstates.h 10 1 Camera
Error 3 error C1083: Cannot open include file: 'd3dUtil.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\effects.h 11 1 Camera
Error 4 error C1083: Cannot open include file: 'd3dApp.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\camerademo.cpp 13 1 Camera
Error 5 error C1083: Cannot open include file: 'xnamath.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\waves.h 13 1 Camera
Error 6 error C1083: Cannot open include file: 'xnamath.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\mathhelper.h 11 1 Camera
Error 7 error C1083: Cannot open include file: 'xnamath.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\lighthelper.h 11 1 Camera
Error 8 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
Error 9 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
Error 10 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
Error 11 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
经过更多研究,Direct 11.1 之后似乎改变了很多东西,例如“d3dUtil.h”已折旧。
'd3dUtil.h' 是否有任何等价物 - 我找不到。 我怎样才能让这个项目运行?
谢谢,
【问题讨论】:
-
虽然 DirectX SDK 现在已合并到 Windows SDK 中,但其中一些组件已被弃用。有关更多信息和建议的替代方案,请参阅同一帖子的 Where's the DirectX SDK 和 updated version。
标签: directx windows-8.1 direct3d directx-11