bengfarrell / nuimotion

Node.js wrapper for OpenNI/NiTE offering skeletal joint tracking and gestures
http://www.sweatintotheweb.com/nuimotion-for-node-js/
MIT License
74 stars 19 forks source link

OpenNI include files not found during node-gyp rebuild #15

Open anselanza opened 10 years ago

anselanza commented 10 years ago

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?

bengfarrell commented 10 years ago

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