native Oculus OSX Xcode build
I have spent a few weekends organizing my notes, here should be everything you need to build a skeleton Oculus Rift project in Xcode-
Start with a blank Cocoa app
Drag LibOVR into Xcode Project, uncheck all “Add to Target”

Linked Frameworks and Libraries:

Architectures

Apple LLVM 5.0 - Language - C++


Search Paths
------
Any classes which include OVR.h, and the classes which include THOSE classes, must be named *.mm, or must be marked as Objective-C++ source

------
for reference: here is this example’s folder location for how they reference the header/search paths

------
to check if everything got setup correctly, edit main.mm:
if it builds, everything should be working!
project source: https://github.com/robbykraft/SimpleOculus includes an OpenGL scene to test in the headset.
I'm running Xcode 5.0 and I'm able to build as far back as 10.6. Hope this works for everyone else too!
Start with a blank Cocoa app
Drag LibOVR into Xcode Project, uncheck all “Add to Target”

Linked Frameworks and Libraries:
- libovr.a (LibOVR/Lib/MacOS/Debug)
- IOKit.framework

Architectures
- Architectures : 64-bit Intel (x86_64)

Apple LLVM 5.0 - Language - C++
- C++ Standard Library : libstdc++ (GNU C++ standard library)
- Enable C++ Exceptions : No
- Enable C++ Runtime Types : No


Search Paths
- Header Search Paths : LibOVR/Src, LibOVR/Include
- Library Search Paths :
- - Debug : LibOVR/Lib/MacOS/Debug
- - Release : LibOVR/Lib/MacOS/Release
------
Any classes which include OVR.h, and the classes which include THOSE classes, must be named *.mm, or must be marked as Objective-C++ source

------
for reference: here is this example’s folder location for how they reference the header/search paths

------
to check if everything got setup correctly, edit main.mm:
#import <Cocoa/Cocoa.h>
#include "OVR.h”
using namespace OVR;
int main(int argc, const char * argv[])
{
System::Init();
return NSApplicationMain(argc, argv);
}
if it builds, everything should be working!
project source: https://github.com/robbykraft/SimpleOculus includes an OpenGL scene to test in the headset.
I'm running Xcode 5.0 and I'm able to build as far back as 10.6. Hope this works for everyone else too!
