Skip to main content
New Participant
January 2, 2015

Having Trouble integrating Oculus SDK

Hello,
I'm currently trying to integrate Oculus SDK into my own Program (C++ using OpenGL), I'm using VS 2013 and I've placed the libovr64.lib and libovr64d.lib in my Lib directory, the contents of the Include and Src folders in my Include directory and I've setup the Linker Input to libovr64.lib. In my code I include OVR_CAPI.h and OVR_CAPI_GL.h now I am getting 30 errors all starting with "error LNK2019: unresolved external symbol" (The file where the error occurs is always libovr64.lib) :?

example:
error LNK2019: unresolved external symbol __imp_timeGetTime referenced in function "public: unsigned __int64 __cdecl OVR::PerformanceTimer::GetTimeNanos(void)" (?GetTimeNanos@PerformanceTimer@OVR@@QEAA_KXZ)	libovr64.lib(OVR_Timer.obj)


Am I missing to import anything here? How is the proper way to integrate libOVR?
I have already tried to link to libovr64d.lib instead or to copy the contents of the src folder directly into my programs source folder instead of the Include directory, no results. I am getting the same problems with 32bit as well.

I hope someone here can help me :)

    3 replies

    Inspiring
    January 2, 2015
    Try adding this to the linker -> input -> additional dependencies:

    Winmm.lib
    ws2_32.lib
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    New Participant
    January 2, 2015
    Thanks! That solved it :D
    Inspiring
    January 2, 2015
    Awesome!
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV