Forum Discussion
Zephemus
11 years agoHonored Guest
Getting started with MSVC2010?
Hello, I'm used Oculus for Unity projects in the past and I'm interested in getting start with making MSVC projects using my Rift, but I'm a little clueless of where to put the .lib and .h files.
I'm thinking I put my .lib files in the C:// -> Program File (x86) -> Microsoft Visual Studio 10.0 -> VC -> lib directory that I did with my Allegro files when I was working with that SDK and I assume I put and include my .h files into the Project like all the .cpp files I'd use for the project, but I seem to be missing something to just have the thing read my Oculus.
Am I just doing something stupid like including the .lib files into the Input area of the Project properties, or is there something I'm missing entirely.
I tried looking for the tutorial that just send basic data to your Rift, but the pages don't seem to exist.
Could anyone help me just get some code working to have the Rift recognized and display data correctly?
Thanks, everyone.
I'm thinking I put my .lib files in the C:// -> Program File (x86) -> Microsoft Visual Studio 10.0 -> VC -> lib directory that I did with my Allegro files when I was working with that SDK and I assume I put and include my .h files into the Project like all the .cpp files I'd use for the project, but I seem to be missing something to just have the thing read my Oculus.
Am I just doing something stupid like including the .lib files into the Input area of the Project properties, or is there something I'm missing entirely.
I tried looking for the tutorial that just send basic data to your Rift, but the pages don't seem to exist.
Could anyone help me just get some code working to have the Rift recognized and display data correctly?
Thanks, everyone.
1 Reply
- Faulpeltz89Honored GuestHi Zephemus,
you have to specify the paths to the LibOVR headers and source files in your project properties.
Press Alt+F7 or open Project -> Properties to get the Propertie Pages window.
In Configuration Properties -> C/C++ -> General there is a field called Additional Include Directories where you add the paths to LibOVR/Include and LibOVR/Src.
In Configuration Properties -> Linker -> Input you have to add the names of all libraries your code depends on to Additional Dependencies. The minimum requirements for example to access the DK2 sensor data are libovr.lib winmm.lib and ws2_32.lib.
To get the compiler see the oculus library you have to add the path LibOVR/Lib to the Additional Library Directories field in Configuration Properties -> Linker -> General.
Hope that helps ;)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago