Robert Higgins
Robert Higgins

Reputation: 25

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

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

enter image description here

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.

Upvotes: 2

Views: 2701

Answers (1)

Christoph
Christoph

Reputation: 2004

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 ...

Upvotes: 1

Related Questions