Forum Discussion
Neo0007
4 years agoHonored Guest
Passthrough: OculusHMD plugin include fails
I am trying to use the OculusPassthroughLayerComponent.h in my c++ project, but the VS compiler gives me the error:
Error C1083 Cannot open include file: 'OculusHMDPrivate.h': No such file or directory. C:\Projects\UnrealEngine\Engine\Plugins\Runtime\Oculus\OculusVR\Source\OculusHMD\Public\OculusPassthroughLayerShapes.h 5
In particular, the OculusPassthroughLayerComponent.h tries to #include "OculusHMDPrivate.h" in line 5.
I am using the latest Unreal Engine 4.27 release with Oculus Integration SDK from Github. The sample Passthrough projects works, although there is no c++ example, but they use Blueprints.
In my c++ project I have included the "OculusHMD" plugin in PublicDependencyModuleNames in the Build.cs. Then I closed VS and run "Generate Visual Studio project files".
After these steps, when I try to #include "OculusPassthroughLayerComponent.h" in my class, I get the mentioned VS error.
Can anyone help me to include the plugin headers correctly or give me hints how to use the passthrough component in my c++ project?
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
- 2 years ago
- 3 months ago
- 5 years ago
- 2 years ago