I successfully compiled the compile_cpp_file but when i run the Example.m, i got this error :-
Attempt to execute SCRIPT mxNiCreateContext as a function:
Error in Example (line 6)
KinectHandles = mxNiCreateContext(SAMPLE_XML_PATH,filename);
Could someone help me?
I noticed atleast one person who got the following error:
mxNiChangeDepthViewPoint.cpp:3:22: fatal error: XnOpenNI.h: No such file or directory
mex: compile of ' "mxNiChangeDepthViewPoint.cpp"' failed.
??? Error using ==> mex at 222
Unable to complete successfully.
Error in ==> compile_cpp_files at 51
mex('-v',['-L' OpenNiPathLib],'-lopenNI',['-I' OpenNiPathInclude
I'm compiling on ubuntu 12.04, with Matlab2010a. I've installed openni, nite and sensor kinect (it seems to be working on those samples with kinect). I changed compile_cpp_files.m lines 49 and 51 as stated in the last comment in that file.
If anyone has a hint why this is happening, please respond. Thank you in advance