Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
zwickarr's avatar
zwickarr
Honored Guest
13 years ago

Building the OculusSDK Samples

I am using MS Visual C++ 2010 express (free) and wanted to build the samples but you need to have the DirectX SDK installed and you need to setup the Include and Lib directories.

You do not need to do the following if you just want to run the sample exe's. They are already built for you.

First, you need to install the DirectX SDK:
http://www.microsoft.com/en-us/download/details.aspx?id=6812


  • Open the solution file "LibOVR_With_Samples_Msvc2010.sln" in Visual Studio and right-click on "OculusRoomTiny" and click "Properties" on the very bottom.

  • Open "Configuration Properties" and click on "VC++ Directories".

  • Click "Include Directories" and then click the little down arrow to the far right.

  • Double Click in the white text field then click on the "..." button that appears and choose the "Include" folder of where you installed the DirectX SDK. Mine is E:\Microsoft DirectX SDK (June 2010)\Include. Then click OK.

  • Do the same with the "Library Directories" but choose the "Lib" folder in the DirectX SDK install location. Click OK.

    You should now be able to build all the samples within the OVR solution!

5 Replies