Skip to main content
New Participant
April 13, 2013

Build error on Windows 8 VC++ 2010 Express

Hi,

I downloaded the Oculus SDK, unpacked it and opened LibOVR_With_Samples_Msvc2010.sln in VC++ 2010 (Express edition). While building the solution I am getting the following error during the build of OculusWorldDemo.

e:\downloads\oculussdk\samples\commonsrc\render\Render_D3D1X_Device.cpp(29): fatal error C1083: Cannot open include file: 'd3dcompiler.h': No such file or directory


LibOVR was built successfully.

I looked around the web and found this http://www.gamedev.net/topic/631381-error-lnk2019-with-d3dcompilerh/#entry4980801. I'm not sure how their proposed solution can be applied for the Oculus SDK.

Any suggestions?
Thanks.

    12 replies

    New Participant
    April 16, 2014
    I just solved my problem, so for anyone else: When setting the solution settings to "Single StartupProject", select any of the other sample projects (so everything except LibOVR) as the actual start project. This did it for me, after carefully reading nzearthman's post again.

    Edit: Thanks kojack, that's exactly what happens when you choose one of the samples; the selected one gets bold which means it is the start project. Thanks for clarifying!
    Participant
    June 8, 2014
    Installing the following worked for me:

    Visual Studio 2010 RTM
    Windows SDK 7.1
    Visual Studio 2010 SP1
    Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1 (I wasn't able to install this last part but after installing the first 3 then rebooting my computer, I tried building my solution and it worked)

    http://blogs.msdn.com/b/heaths/archive/2011/04/01/visual-c-2010-sp1-compiler-update-for-the-windows-sdk-7-1.aspx