Forum Discussion
Soily33
12 years agoHonored Guest
SDK Preview 0.31 not compiling in VS2012 Express Edition
Hello,
I just tried it with VS 2012 Express Edition and when I load the project for 2012 which comes with the SDK, I get the following errors:
Fehler 1 error C1083: Datei (Include) kann nicht geöffnet werden: "../Shaders/Distortion_vs_refl.h": No such file or directory (..\..\..\Src\CAPI\D3D1X\CAPI_D3D10_DistortionRenderer.cpp) d:\programmierung\oculus rift dev\ovr_sdk_win_0.3.1\oculussdk\libovr\src\capi\d3d1x\CAPI_D3D1X_DistortionRenderer.cpp 34 1 LibOVR
Fehler 2 error C1083: Datei (Include) kann nicht geöffnet werden: "../Shaders/Distortion_vs_refl.h": No such file or directory (..\..\..\Src\CAPI\D3D1X\CAPI_D3D11_DistortionRenderer.cpp) d:\programmierung\oculus rift dev\ovr_sdk_win_0.3.1\oculussdk\libovr\src\capi\d3d1x\CAPI_D3D1X_DistortionRenderer.cpp 34 1 LibOVR
I don't know how to solve it. It looks like there are missing some header-files. Could it be, that these are files which must be autogenerated with some additional application?
Any hints how to solve it are highly appreciated?
Kind Regards
Patrick
I just tried it with VS 2012 Express Edition and when I load the project for 2012 which comes with the SDK, I get the following errors:
Fehler 1 error C1083: Datei (Include) kann nicht geöffnet werden: "../Shaders/Distortion_vs_refl.h": No such file or directory (..\..\..\Src\CAPI\D3D1X\CAPI_D3D10_DistortionRenderer.cpp) d:\programmierung\oculus rift dev\ovr_sdk_win_0.3.1\oculussdk\libovr\src\capi\d3d1x\CAPI_D3D1X_DistortionRenderer.cpp 34 1 LibOVR
Fehler 2 error C1083: Datei (Include) kann nicht geöffnet werden: "../Shaders/Distortion_vs_refl.h": No such file or directory (..\..\..\Src\CAPI\D3D1X\CAPI_D3D11_DistortionRenderer.cpp) d:\programmierung\oculus rift dev\ovr_sdk_win_0.3.1\oculussdk\libovr\src\capi\d3d1x\CAPI_D3D1X_DistortionRenderer.cpp 34 1 LibOVR
I don't know how to solve it. It looks like there are missing some header-files. Could it be, that these are files which must be autogenerated with some additional application?
Any hints how to solve it are highly appreciated?
Kind Regards
Patrick
11 Replies
- Soily33Honored GuestHi again,
I installed now the VS2013 Express Edition and with that it still doesn't compile through all the samples.
Any comments/hints how to fix it are highly appreciated,
Thanks in advance.
Patrick - The visual studio project custom build settings for the shaders calls genVertexShaderHeader.bat and genPixelShaderHeader.bat when you do a libovr compile.
These batch files call shaderreflector.exe, which will generate the Distortion_vs_refl.h that you were missing.
(I just did a build with vs2012 pro, it generated all the .h files for shaders) - Soily33Honored GuestHi kojack,
thanks for your reply. What do you mean with "project custom build settings"? Do I have to change something in the project settings?
I thought the project for VS 2010, 2012 and 2013 which comes with the SDK have already configured everything properly to compile it the way you are describing it, no?
Thanks.
Patrick - Make sure you are building the LibOVR_With_Samples solution, not the LibOVR_Samples solution. The latter only builds the samples, not LibOVR itself (that's the bit that generates the .h files).
Here's one of the custom build pages. (click to enlarge)
Each of the shaders in the CAPI/Shaders folder has a custom build property telling Visual Studio how to build it. Pixel shaders are set to run:call %(RelativeDir)genPixelShaderHeader.bat %(Filename) "%(Fullpath)"
while vertex shaders do the same but with genVertexShaderHeader.bat.
All I had to do was open the solution and press build. But I'm using Visual Studio 2012 Premium. The express editions may be lacking the ability to do custom build steps. - Soily33Honored GuestThanks to your reply,
I came one step further. When I choose the project the other way around (OVR_Samples), than the project compiles through. The tiny room demo is working then, but the oculus world demo is starting but all the content is missing.
I checked the custom build settings for the shaders and it looks exactly the same as in your picture. I tried then to manually execute the batch-files and then I get an error that the MSCPV100D.dll is missing. I guess that this debug-dll comes with the old 2010 Visual Studio. I don't have the files in my windows system-folders. Maybe that might be the real problem for my issue above?
Reinstalling the redistributable package of MS2010 doesn't change much because it will only install the release-dll of that file.
Has anybody an idea where to get this dll from?
Thank you. - Soily33Honored GuestHi again,
I solved the issue by installing Visual Studio 2010 Express Edition (including MSVCP100D.dll), making this Thread "closed".
Thanks again for your support.
Kind Regards.
Patrick - Oculus really shouldn't distribute dynamic runtime debug applications. Not all VS2012 or 2013 users also have 2010 installed and the ms debug runtime libs aren't allowed to be distributed.
- Soily33Honored GuestI entirely agree.
- electHonored GuestI have a similar error
do you have any clue, guys?1>------ Build started: Project: LibOVR, Configuration: Debug Win32 ------
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_ps.psh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
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> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_ps konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_vs.vsh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "DistortionChroma_vs" 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_vs
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionChroma_vs konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionTimewarpChroma_vs.vsh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "DistortionTimewarpChroma_vs" 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 DistortionTimewarpChroma_vs
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionTimewarpChroma_vs konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionTimewarp_vs.vsh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "DistortionTimewarp_vs" 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 DistortionTimewarp_vs
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\DistortionTimewarp_vs konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\Distortion_ps.psh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "Distortion_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 Distortion_ps
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\Distortion_ps konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\Distortion_vs.vsh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "Distortion_vs" 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 Distortion_vs
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\Distortion_vs konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\SimpleQuad_ps.psh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "SimpleQuad_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 SimpleQuad_ps
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\SimpleQuad_ps konnte nicht gefunden werden
1> Performing Custom Build Tools
1> Compiling shader and packing into header: D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\SimpleQuad_vs.vsh
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
1>
1> File: "SimpleQuad_vs" 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 SimpleQuad_vs
1> D:\Documents\ovr_sdk_win_0.3.1\OculusSDK\LibOVR\Src\CAPI\Shaders\SimpleQuad_vs konnte nicht gefunden werden
1> CAPI_D3D10_DistortionRenderer.cpp
1> CAPI_D3D11_DistortionRenderer.cpp
1>d:\documents\ovr_sdk_win_0.3.1\oculussdk\libovr\src\capi\d3d1x\CAPI_D3D1X_DistortionRenderer.cpp(33): fatal error C1083: Cannot open include file: '../Shaders/Distortion_vs.h': No such file or directory
1>d:\documents\ovr_sdk_win_0.3.1\oculussdk\libovr\src\capi\d3d1x\CAPI_D3D1X_DistortionRenderer.cpp(33): fatal error C1083: Cannot open include file: '../Shaders/Distortion_vs.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== - jhericoAdventurer
"elect" wrote:
I have a similar error
do you have any clue, guys?
1> Der Befehl "fxc.exe" ist entweder falsch geschrieben oder
1> konnte nicht gefunden werden.
Either you don't have the DirectX SDK installed or it's not in your path. On my system fxc.exe is located in "/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Utilities/bin/x64/fxc.exe"
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
- 5 years ago
- 8 months ago