nuimotion
nuimotion copied to clipboard
OpenNI include files not found during node-gyp rebuild
I am busy trying to get nuimotion working on OS X as per your instructions on https://www.npmjs.org/package/nuimotion and I seem be doing everything right till the very end, except that when I run...
node-gyp rebuild
...All the file copying appears to work correctly (so the OPENNI2 and NITE2 system variables must be set correctly), but I get the following compiler error:
CXX(target) Release/obj.target/nuimotion-depth/src/Depth.o
In file included from ../src/Depth.cpp:13:
../src/Depth.h:7:10: fatal error: 'OpenNI.h' file not found
Looking at the binding.gyp file, everything seems to be in order, specifically this part:
"include_dirs": [ "<(OPENNI2)/Include/"]
So I'm not sure why the compiler is struggling to find the files in the Include folder?
Hmmm...before I read the bit about all the files copying correctly, I was sure this was a problem with the environmental vars.
Did you actually create the vars, or just let the OpenNi installer do it for you? They get very specific in making a var for every folder in the distribution, whereas the ones I set up just point to the root folder. So, be sure to follow the instructions to set this up vs just living with what the OpenNI install gives you.
The only other thing I can think of is to check that those files actually exist where its pointing (be sure that the Include folder exists with a bunch of .h files in it) and also that the read permissions for those files haven't been botched in any way