I am trying to get obviousjim’s ofxOculusRift addon to run in VS2012 on 0.8.1 and it will not compile due to “Error: Ptr is ambiguous” - im too much of a C++ novice to understand and make a fix.
Ptr<DeviceManager> pManager;
Ptr<HMDDevice> pHMD;
Ptr<SensorDevice> pSensor;
So apparently on VS2012 the compiler finds conflicts between the Ptr class in the Oculus SDK and the Mactypes.h file in OF. I am not sure why and if Mactypes.h should be even used on Windows, but to solve it I needed to change the Ptr calls in ofxOculusRift.h from:
Ptr<DeviceManager> pManager;
Ptr<HMDDevice> pHMD;
Ptr<SensorDevice> pSensor;
to:
OVR::Ptr<DeviceManager> pManager;
OVR::Ptr<HMDDevice> pHMD;
OVR::Ptr<SensorDevice> pSensor;
Thus clarifying the namespace?