Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require openzwave #24

Closed
ghost opened this issue Jan 27, 2014 · 4 comments
Closed

require openzwave #24

ghost opened this issue Jan 27, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 27, 2014

Hello,
I can't get your example file working.
I require the openzwave file:
var OpenZWave = require('node_modules/openzwave/build/Release/openzwave');

I run it:
node test.js

And i get:

module.js:356
Module._extensions[extension](this, filename);
^
Error: node_modules/openzwave/build/Release/openzwave.node: undefined symbol: udev_new
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/edouard/Desktop/test.js:5:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

What am i doing wrong?
Thx.
eo

Am i loading the wrong openzwave file?

@jperkin
Copy link
Owner

jperkin commented Jan 27, 2014

Something is wrong with libudev, did you build this on a different host or something? Check it is installed correctly, etc. More information on the host environment would be useful. Thanks.

@ghost
Copy link
Author

ghost commented Jan 28, 2014

Yes it seems so. No i built it on the same system. I have libudev-dev installed correctly. I think it's just about linking, when I run ldd on openzwave/build/Release/openzwave.node I get:

$ ldd openzwave.node
linux-gate.so.1 => (0xb7789000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb75cc000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb75b1000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb73fc000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb73b9000)
/lib/ld-linux.so.2 (0xb778a000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb739c000)

And we can notice there's no mention to udev or anything.
How can I resolve this?

Thx,
eo

PS: Im running Ubuntu 13.10, 3.11.0-12, 32bit system

@ghost
Copy link
Author

ghost commented Jan 28, 2014

I've found an alternative by using LD_PRELOAD (as mentioned here #20)
Sorry to duplicate an issue.

@jperkin
Copy link
Owner

jperkin commented Jan 28, 2014

Close as duplicate of #20. Will resolve this issue there.

@jperkin jperkin closed this as completed Jan 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant