Error TRK0005 Failed to locate: “fxc.exe”. The system cannot find the file specified

风格不统一 提交于 2019-12-13 17:49:54

问题


I am converting a visual studio c++ direct x project from visual studio 2017 to visual studio 2015. So far I have changed the project build tools to v140.

this is the current error message

fxc.exe is the Effect-Compiler Tool and according to msdn it should be located in (SDK root)\Utilities\Bin\x86. I am not sure how to find that location.


回答1:


I just encountered the same issue, but the solution I finally implemented is more of a hack: It seems that VS2015 expands the Windows SDK environment variable to the Windows 7 SDK, which does not include fxc.

What I eventually did is adding C:\Program Files (x86)\Windows Kits\10\bin\x86 and C:\Program Files (x86)\Windows Kits\10\bin\x64 to the "Executable Directories" variable under the "VC++ Directories" settings in the project properties. I do not like it, but it works ...



来源:https://stackoverflow.com/questions/47730245/error-trk0005-failed-to-locate-fxc-exe-the-system-cannot-find-the-file-speci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!