【问题标题】:Setting up Windows SDK in VS2012 Windows7在 VS 2012 Windows 7 中设置 Windows SDK
【发布时间】:2013-11-24 02:00:00
【问题描述】:

我正在尝试为 DirectX11 设置 Windows SDK,但遇到了一些麻烦。 我在 Windows7 上使用 Visual Studio 2012。

我得到的错误是:

1>TRACKER : error TRK0005: Failed to locate: "fxc.exe". The system cannot find the file specified.

所以我认为它没有正确定位 SDK(我认为这是一个 HLSL 错误)。 到目前为止,在我的项目目录中,我有:

Include directories: $(WindowsSDK_IncludePath)
Library directories: $(WindowsSDK_LibraryPath_x86)
Library WinRT directories: $(WindowsSDK_MetadataPath)

我检查了这些宏的去向,它们去到了正确的地方:

C:\Program Files(x86)\Windows Kits\8.0\etc...

这是我安装它的地方,但是我上面写的错误仍然出现。

我不知道下一步该怎么做,有人可以帮忙吗?

【问题讨论】:

    标签: windows winapi visual-studio-2012 directx-11


    【解决方案1】:

    位于C:\Program Files(x86)\Windows Kits\8.0\bin\x86\fxc.exe,先看看有没有。

    重要的 VS 设置是项目 + 属性、VC++ 目录、可执行目录。它通常包含$(WindowsSDK_ExecutablePath_x86),因此定位文件应该永远不会有问题。

    【讨论】:

    • 谢谢,我的可执行目录不是从默认值继承的!有没有办法摆脱默认的 DirectX10 目录?两个 SDK 都在继承和提取重新定义警告,这有点令人沮丧。再次感谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-03
    • 1970-01-01
    • 2012-06-15
    • 1970-01-01
    • 2016-10-26
    • 1970-01-01
    • 2019-07-12
    相关资源
    最近更新 更多