ofxOpenNI with OF09 & YOSEMITE

Hey guys,

I’ve been cracking my head how to get the ofxOpenNI addon to work, I\ve tried loads of different things and I’m quite sure I got the file structure right but the errors keep showing up while compiling. Now I found out the addon is already a couple years old so I figured it the versions might be the issue?

Any one got it working on osx10.10 and OF09 ? (I’m using Xcode 7.1)

A few of the errors I’m getting:

Undefined symbols for architecture x86_64:
“_xnNodeInfoListIteratorIsValid”, referenced from:
xn::NodeInfoList::Iterator::UpdateInternalObject(XnNodeInfoListIterator) in ofxOpenNI.o
“_xnNodeInfoListAllocate”, referenced from:
xn::NodeInfoList::NodeInfoList() in ofxOpenNI.o
“_xnContextAddRef”, referenced from:
xn::Context::SetHandle(XnContext*) in ofxOpenNI.o
“_xnGetRefContextFromNodeHandle”, referenced from:
xn::NodeWrapper::SetHandle(XnInternalNodeData*) in ofxOpenNI.o
“_xnContextRegisterForShutdown”, referenced from:
xn::NodeWrapper::SetHandle(XnInternalNodeData*) in ofxOpenNI.o
xn::Context::SetHandle(XnContext*) in ofxOpenNI.o
“_xnContextRelease”, referenced from:
xn::NodeWrapper::SetHandle(XnInternalNodeData*) in ofxOpenNI.o
xn::Context::SetHandle(XnContext*) in ofxOpenNI.o
xn::Context::TakeOwnership(XnContext*) in ofxOpenNI.o
“_xnStopPoseDetection”, referenced from:
xn::PoseDetectionCapability::StopPoseDetection(unsigned int) in ofxOpenNI.o
“_xnEnumerationErrorsAllocate”, referenced from:
xn::EnumerationErrors::EnumerationErrors() in ofxOpenNI.o
“_xnStartPoseDetection”, referenced from:
xn::PoseDetectionCapability::StartPoseDetection(char const*, unsigned int) in ofxOpenNI.o
“_xnResetSkeleton”, referenced from:
xn::SkeletonCapability::Reset(unsigned int) in ofxOpenNI.o
“_xnAbortSkeletonCalibration”, referenced from:
xn::SkeletonCapability::AbortCalibration(unsigned int) in ofxOpenNI.o
“_xnConvertRealWorldToProjective”, referenced from:
xn::DepthGenerator::ConvertRealWorldToProjective(unsigned int, XnVector3D const*, XnVector3D*) const in ofxOpenNI.o
“_xnStartSkeletonTracking”, referenced from:
xn::SkeletonCapability::StartTracking(unsigned int) in ofxOpenNI.o
“_xnSetMapOutputMode”, referenced from:
xn::MapGenerator::SetMapOutputMode(XnMapOutputMode const&) in ofxOpenNI.o
“_xnSetMirror”, referenced from:
xn::MirrorCapability::SetMirror(unsigned int) in ofxOpenNI.o
“_xnNodeInfoListGetCurrent”, referenced from:
xn::NodeInfoList::Iterator::UpdateInternalObject(XnNodeInfoListIterator) in ofxOpenNI.o
“_xnIsMirrored”, referenced from:
xn::MirrorCapability::IsMirrored() const in ofxOpenNI.o
“_xnSetSkeletonProfile”, referenced from:
xn::SkeletonCapability::SetSkeletonProfile(XnSkeletonProfile) in ofxOpenNI.o

Here is a dirty fix

Thanks! Compiles like a charm. Altough it doesn’t always get to draw the user mask, I keep getting spammed with [ error ] ofTexture: getTextureData(): texture has not been allocated . Any clue on how to fix this?