Coder Social home page Coder Social logo

npm test error... about node-kinect HOT 18 CLOSED

corpr8 avatar corpr8 commented on August 11, 2024
npm test error...

from node-kinect.

Comments (18)

yocontra avatar yocontra commented on August 11, 2024

Can you show the logs of your npm install? It seems like the native module failed to build.

from node-kinect.

WA9ACE avatar WA9ACE commented on August 11, 2024

I have this same issue. Here's a screencap of my terminal including the npm install
screen shot 2013-09-07 at 1 01 14 pm

from node-kinect.

ericsims avatar ericsims commented on August 11, 2024

I have this same issue on Linux. Any ideas?

from node-kinect.

chilijung avatar chilijung commented on August 11, 2024

same error, too.

from node-kinect.

yocontra avatar yocontra commented on August 11, 2024

Did you guys install libusb and libfreenect before?

from node-kinect.

vivekvasani avatar vivekvasani commented on August 11, 2024

Same error. I pre-installed libusb and libfreenect.

from node-kinect.

TorbenDalgaard avatar TorbenDalgaard commented on August 11, 2024

Any news regarding this issue ?

from node-kinect.

nguyer avatar nguyer commented on August 11, 2024

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.

VadasEnterprises avatar VadasEnterprises commented on August 11, 2024

@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.

nguyer avatar nguyer commented on August 11, 2024

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.

galkn avatar galkn commented on August 11, 2024

any progress on this?

from node-kinect.

nguyer avatar nguyer commented on August 11, 2024

@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.

jzellis avatar jzellis commented on August 11, 2024

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.

jfenwick avatar jfenwick commented on August 11, 2024

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.

j-r-t avatar j-r-t commented on August 11, 2024

@jfenwick you need to build first using

node-gyp configure
node-gyp build

from node-kinect.

povalles avatar povalles commented on August 11, 2024

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.

yashkp avatar yashkp commented on August 11, 2024

Has anybody resolved this?

from node-kinect.

povalles avatar povalles commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.