Coding without Oculus
I don't own an oculus rift,but successfully ran some demos using config window from oculus runtime. I wanted to code and work without the hardware (temporarily). Using visual studio 2012 and Oculus SDK (0.8 beta). I tried to run following code:
Installed the libraries into VS as following:
1) under solution properties-> VC++ directories ->include directories-> C:\Users\USERNAME\Desktop\FOLDER\OculusSDK\LibOVR\Include
2) under library directories-> C:\Users\USERNAME\Desktop\FOLDER\OculusSDK\LibOVR\Lib
3) under linker-> input-> LibOVR.lib
by the way I'm working under release win32.
When I compiled, I get the following errors:
can someone please guide me.
#include <OVR.h>
#include<iostream>
int main(int argc, char ** argv) {
if (!ovr_Initialize()) {
return -1;
}
int hmdCount = ovrHmd_Detect();
for (int i = 0; i < hmdCount; ++i) {
ovrHmd hmd = ovrHmd_Create(i);
ovrHmd_Destroy(hmd);
}
ovrHmd hmd = ovrHmd_CreateDebug(ovrHmd_DK2);
ovrHmd_Destroy(hmd);
ovr_Shutdown();
return 0;
}
Installed the libraries into VS as following:
1) under solution properties-> VC++ directories ->include directories-> C:\Users\USERNAME\Desktop\FOLDER\OculusSDK\LibOVR\Include
2) under library directories-> C:\Users\USERNAME\Desktop\FOLDER\OculusSDK\LibOVR\Lib
3) under linker-> input-> LibOVR.lib
by the way I'm working under release win32.
When I compiled, I get the following errors:
Error 1 error C1083: Cannot open include file: 'Kernel/OVR_Types.h': No such file or directory C:\Users\ksaim\Desktop\ARM_IT\OculusSDK\LibOVR\Include\OVR.h 14 1 oculu 5 IntelliSense: cannot open source file "Kernel/OVR_Alg.h" c:\Users\ksaim\Desktop\ARM_IT\OculusSDK\LibOVR\Include\OVR.h 17 1 oculu 3 IntelliSense: cannot open source file "Kernel/OVR_RefCount.h" c:\Users\ksaim\Desktop\ARM_IT\OculusSDK\LibOVR\Include\OVR.h 15 1 oculu 4 IntelliSense: cannot open source file "Kernel/OVR_Std.h" c:\Users\ksaim\Desktop\ARM_IT\OculusSDK\LibOVR\Include\OVR.h 16 1 oculu 2 IntelliSense: cannot open source file "Kernel/OVR_Types.h" c:\Users\ksaim\Desktop\ARM_IT\OculusSDK\LibOVR\Include\OVR.h 14 1 oculu 8 IntelliSense: identifier "ovrHmd_Create" is undefined c:\Users\ksaim\OneDrive\Documents\Visual Studio 2012\Projects\oculu\oculu\oculu.cpp 12 14 oculu 10 IntelliSense: identifier "ovrHmd_CreateDebug" is undefined c:\Users\ksaim\OneDrive\Documents\Visual Studio 2012\Projects\oculu\oculu\oculu.cpp 15 14 oculu 9 IntelliSense: identifier "ovrHmd_Destroy" is undefined c:\Users\ksaim\OneDrive\Documents\Visual Studio 2012\Projects\oculu\oculu\oculu.cpp 13 1 oculu 11 IntelliSense: identifier "ovrHmd_Destroy" is undefined c:\Users\ksaim\OneDrive\Documents\Visual Studio 2012\Projects\oculu\oculu\oculu.cpp 16 1 oculu 7 IntelliSense: identifier "ovrHmd_Detect" is undefined c:\Users\ksaim\OneDrive\Documents\Visual Studio 2012\Projects\oculu\oculu\oculu.cpp 9 16 oculu 6 IntelliSense: too few arguments in function call c:\Users\ksaim\OneDrive\Documents\Visual Studio 2012\Projects\oculu\oculu\oculu.cpp 5 21 oculu
can someone please guide me.
