【问题标题】:Error TRK0005 Failed to locate: "fxc.exe". The system cannot find the file specified错误 TRK0005 无法找到:“fxc.exe”。该系统找不到指定的文件
【发布时间】:2017-12-09 15:45:06
【问题描述】:

我正在将 Visual Studio C++ Direct X 项目从 Visual Studio 2017 转换为 Visual Studio 2015。到目前为止,我已将项目构建工具更改为 v140。

这是当前的错误信息

fxc.exe 是 Effect-Compiler Tool,根据 msdn,它应该位于 (SDK root)\Utilities\Bin\x86。我不知道如何找到那个位置。

【问题讨论】:

  • 您尝试使用什么 Windows SDK 来构建它? VS 2017 默认使用 Windows 10 SDK 15063 或 16299,具体取决于您的更新,但 VS 2015 只能使用 14393 或更早版本,如果您正在编写 Win32 桌面应用程序,通常默认使用 Windows 8.1 SDK。

标签: c++ visual-studio directx-11


【解决方案1】:

我刚遇到同样的问题,但我最终实现的解决方案更像是一个hack:似乎VS2015将Windows SDK环境变量扩展为Windows 7 SDK,其中不包含fxc。

我最终所做的是将C:\Program Files (x86)\Windows Kits\10\bin\x86C:\Program Files (x86)\Windows Kits\10\bin\x64 添加到项目属性中“VC++ 目录”设置下的“可执行目录”变量中。我不喜欢它,但它有效......

【讨论】:

    猜你喜欢
    • 2016-01-15
    • 2018-04-25
    • 2018-02-13
    • 2013-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-23
    • 1970-01-01
    相关资源
    最近更新 更多