Comments (18)
Can you show the logs of your npm install? It seems like the native module failed to build.
from node-kinect.
I have this same issue. Here's a screencap of my terminal including the npm install
from node-kinect.
I have this same issue on Linux. Any ideas?
from node-kinect.
same error, too.
from node-kinect.
Did you guys install libusb and libfreenect before?
from node-kinect.
Same error. I pre-installed libusb and libfreenect.
from node-kinect.
Any news regarding this issue ?
from node-kinect.
Hi, @corpr8. I am the new maintainer of this repo now, and I'm looking through the open issues. Is this still an issue for you with the latest version?
from node-kinect.
@nguyer: Hi, I'm new here and this is the only way I could contact you. Does this work with Kinect Version 2.0 from Xbox One?
from node-kinect.
Hi @VadasEnterprises. This library does not work with the new version of the Kinect (yet). It is just a Node.js binding for the libfreenect library which only works with the Xbox 360 Kinect. The libfreenect2 library works with the new Xbox One Kinect, but this project does not provide an interface for this library yet.
from node-kinect.
any progress on this?
from node-kinect.
@get Which are you asking about? The npm test error, or Xbox One support? I have not been able to repro the npm test issue and I haven't heard that anyone still has problems with it on the latest version so I closed the issue. If it's still a problem though, I'd be happy to reopen and investigate.
As far as Xbox One support, unfortunately I do not have the time to devote to also wrapping libfreenect2, although I think there are some other Node projects out there that have tried to do this.
from node-kinect.
I'm getting this same issue with the Kinect 360 on OS X, same messages, libusb and libfreenect installed (via homebrew). As your lib seems to be the only one still being supported, I'd be anxious to figure out how to solve this. :-)
from node-kinect.
I'm trying to run the test on raspberry pi with an Xbox 360 and I'm getting this error:
pi@raspberrypi:~/node-kinect $ npm test
[email protected] test /home/pi/node-kinect
mocha test/*.js
module.js:339
throw err;
^
Error: Cannot find module './build/Release/kinect.node'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/pi/node-kinect/kinect.js:1:82)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/pi/node-kinect/test/base.js:1:76)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at /home/pi/node-kinect/node_modules/mocha/lib/mocha.js:216:27
at Array.forEach (native)
at Mocha.loadFiles (/home/pi/node-kinect/node_modules/mocha/lib/mocha.js:213:14)
at Mocha.run (/home/pi/node-kinect/node_modules/mocha/lib/mocha.js:453:10)
at Object. (/home/pi/node-kinect/node_modules/mocha/bin/_mocha:393:18)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
npm ERR! Test failed. See above for more details.
from node-kinect.
@jfenwick you need to build first using
node-gyp configure
node-gyp build
from node-kinect.
Hi, I have similar problem in Ubuntu 14.04
povalles@povalles-pc:~/node-kinect$ node-gyp build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: se ingresa al directorio «/home/povalles/node-kinect/build»
SOLINK_MODULE(target) Release/obj.target/kinect.node
g++: error: libfreenect.a: No existe el archivo o el directorio
make: *** [Release/obj.target/kinect.node] Error 1
make: se sale del directorio «/home/povalles/node-kinect/build»
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.16.0-62-generic
gyp ERR! command "node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /home/povalles/node-kinect
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok
I modified the kinect.target.mk
original:
LIBS :=
libfreenect.a
New:
LIBS :=
/usr/local/lib64/libfreenect.a
With the changed the build was succes
povalles@povalles-pc:~/node-kinect$ node-gyp build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: se ingresa al directorio «/home/povalles/node-kinect/build»
SOLINK_MODULE(target) Release/obj.target/kinect.node
COPY Release/kinect.node
make: se sale del directorio «/home/povalles/node-kinect/build»
gyp info ok
but when i tried run the test i have problems with libusb_init
povalles@povalles-pc:~/node-kinect$ npm test
[email protected] test /home/povalles/node-kinect
node_modules/.bin/mocha test/*.js
Base
/usr/bin/nodejs: symbol lookup error: /home/povalles/node-kinect/build/Release/kinect.node: undefined symbol: libusb_init
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
any idea?
from node-kinect.
Has anybody resolved this?
from node-kinect.
I changed the binding.gyp to reference the library:
{ 'targets': [ { 'target_name': 'kinect', 'sources': [ 'src/kinect.cc', ], 'libraries': [ '/usr/local/lib/libfreenect.so', ], 'conditions': [ ['OS=="linux"', { 'include_dirs': ['/usr/local/include'], 'library_dirs': ['/usr/local/lib'], }], ] } ] }
from node-kinect.
Related Issues (15)
- node-gyp HOT 3
- running 'npm test' error HOT 1
- hi HOT 1
- motor control HOT 3
- No depth or video data callbacks, all other functions working fine HOT 3
- Can this pick up audio from the microphone array on the Kinect? HOT 1
- Unable to claim interface -7 HOT 3
- npm install fails when using NodeJS v0.12.x HOT 8
- Need to call resume() after start() to start the context
- Is it possible to limit the framerate? HOT 1
- sh: node_modules/.bin/mocha: No such file or directory HOT 2
- Any estimate on supporting libfreenect2?
- Install problem: libfreenect/libfreenect.h: No such file or directory. Node: v8.2.1 Linux: 3.16.0-38-generic. HOT 2
- Error on build command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-kinect.