Forum Discussion

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

Cannot compile OculusRoomTiny (or any other sample project from the Oculus SDK)

Hi all

First-time Oculus user and developer-wannabe here.

I downloaded the latest Oculus SDK and I am trying to compile the OculusRoomTiny (GL) sample project using Visual Studio Basic 2017. The actual project file that I opened is located at C:\..\OculusSDK\Samples\OculusRoomTiny\OculusRoomTiny (GL)\Projects\Windows\VS2015

I get the following linker error:
Error LNK1104 cannot open file 'C:\...\OculusSDK\LibOVR/Lib/Windows/Win32/Debug/VS2015/LibOVR.lib'

Any help would be greatly appreciated.

2 Replies

  • retepvan's avatar
    retepvan
    Honored Guest


    @kkape

    Hi, I was able to get this to compile and run in visual studio 2015 by simply changing the configuration to active (release) and active (x64). It built successfully after that. I have attached an image demonstrating the changes.


    Hi, I also tried running OculusRoomTiny in Visual Studio 2012 (in the appropriate directory) but even after implementing your solution, the project doesn't run, giving me "Failed to initialize libOVR." The build was successful.

    As I am new to Visual Studio and the SDK, I followed instructions in this post, so I first built libOVR, then OculusRoomTiny. Even when I have both solutions opened in a project, I either get the above error or a simple "Unable to start program [directory]" depending on which solution is selected as the Startup project.

    Do you have any advice as to what I could do? I would appreciate any help.