Question

I downloaded the SDK from Oculus Rift website, and I'm trying to run the projects on the samples folder. When I build the project I'm getting an error that says

fatal error C1083: Cannot open open include file: 'd3dcompiler.h' : no such file or directory. 

although they add the lib files in the linker. anyone else got this errors on their samples projects?

Was it helpful?

Solution

d3dcompiler.h is part of the DirectX development kit. You need to have it installed and either on your project path or your tool's path.

The header will be on the include path but you may need to link against a library, too.

You can add it using:

comment(lib, "D3dcompiler.lib")

See this example.

The documentation above says you need D3dcompiler_xx.dll

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top