Forum Discussion
philippM
11 years agoHonored Guest
build libOVR with VS2010 - what is fsc.exe ?
I'm trying to build libOVR with VS2010 Express. I'm opening the LibOVR/Projects/Win32/VS2010/LibOVR.vcxproj and right-click libOVR and click "Build".
This is what I get:
1>------ Build started: Project: LibOVR, Configuration: Debug Win32 ------
1> Performing Custom Build Tools
1> Compiling shader and packing into header: C:\Users\Philipp\Desktop\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_ps.psh
1> 'fxc.exe' is not recognized as an internal or external command,
1> operable program or batch file.
1>
1> File: "DistortionChroma_ps" does not exist
1>
1> bin2header version 0.0.1
1> 2011 Jordan Irwin <antumdeluge@gmail.com>
1>
1> Usage: bin2header.exe file
1>
1> Generating shader reflection data for DistortionChroma_ps
1>CUSTOMBUILD : error : File not found: DistortionChroma_ps
1> Could Not Find C:\Users\Philipp\Desktop\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_ps
What is this fsc.exe, where do I get it, and how do I point VS2010 to it?
This is what I get:
1>------ Build started: Project: LibOVR, Configuration: Debug Win32 ------
1> Performing Custom Build Tools
1> Compiling shader and packing into header: C:\Users\Philipp\Desktop\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_ps.psh
1> 'fxc.exe' is not recognized as an internal or external command,
1> operable program or batch file.
1>
1> File: "DistortionChroma_ps" does not exist
1>
1> bin2header version 0.0.1
1> 2011 Jordan Irwin <antumdeluge@gmail.com>
1>
1> Usage: bin2header.exe file
1>
1> Generating shader reflection data for DistortionChroma_ps
1>CUSTOMBUILD : error : File not found: DistortionChroma_ps
1> Could Not Find C:\Users\Philipp\Desktop\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_ps
What is this fsc.exe, where do I get it, and how do I point VS2010 to it?
4 Replies
- fxc.exe is the HLSL shader compiler.
There are two typical sources for it:
- DirectX SDK June 2010 (the last stand alone DirectX sdk release).
- Windows Platform SDK 8.0 or 8.1.
I believe Visual Studio 2010 comes with the Platform SDK 7.1, so you'll either need to install the DirectX sdk or a newer platform sdk. Both are available for download from Microsoft. - philippMHonored Guestspot-on, thanks!
Now it works on Win32, but if I try to build for x64, I get a missing reference to setupapi.lib.
What do I have to install to get this? - setupapi.lib comes with the platform sdk. Here's its default location for different ones (64bit versions):
5.0 - C:\Program Files (x86)\Microsoft SDKs\Windows\v5.0\Lib\IA64
6.0 - C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64
7.0 - C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64
7.1 - C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64
8.0 - C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64
8.1 - C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64 - philippMHonored GuestExcellent information, thanks.
I'm a Mac guy, so I struggle to find anything when using Visual Studio and the various SDKs.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 years ago