-
Notifications
You must be signed in to change notification settings - Fork 17
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
hx711.node: undefined symbol: wiringPiSetup #5
Comments
Hi, wiringPi is a dependency of the driver. For installation instructions visit: http://wiringpi.com/download-and-install/ |
Yes, I have installed wiringPi, gpio -v works and I can even use the WiringPi-Node lib with node without getting any runtime error. |
Hi, Hope this helps. |
I solved it using the binding.gyp adding "libraries": [ "/usr/local/lib/libwiringPi.so" ] comment out -ldflags Maybe it also worked if I just set the LD_LIBRARY_PATH and then ran node.gyb build... i don't know. thanks. |
Thanks for letting me know. Would be great if you could make a pull request as it seems that this is the more compatible way of doing things. Thanks |
Hi,
Found your nodejs lib for hx711, but I keep getting error: missing symbol. (I am new at nodejs)
node: symbol lookup error: /home/ubuntu/test-nodejs/node_modules/hx711/build/Release/hx711.node: undefined symbol: wiringPiSetup
Get this when running code below:
var hx711 = require('hx711');
const SCLK = 5;
const DATA = 6;
var sensor = hx711(SCLK, DATA); << error.
Found the wiringPi/wiringPi/wiringPi.h in the src of wiringPi from git, and it seem to contain wiringPiSetup etc, but I don't know where to put it..or how to fix this.
Please advice.
Cheers
The text was updated successfully, but these errors were encountered: