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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top