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

Need libudev to use Node usb module #36

Open
johnnyman727 opened this issue Jan 7, 2016 · 3 comments
Open

Need libudev to use Node usb module #36

johnnyman727 opened this issue Jan 7, 2016 · 3 comments

Comments

@johnnyman727
Copy link
Contributor

In the case that a user would like to use the usb module to interact with USB devices, OpenWRT will need libudev installed. It currently does not.

This thread gives a hint of how to do that.

@kevinmehall
Copy link
Member

You can compile libusb to not use udev, which disables libusb's support for hotplug events. I would assume the libusb packages in OpenWrt are compiled that way, so you need to compile node-usb with use_system_libusb = true so that it doesn't bring its own copy of libusb.

Or, install udev.

@johnnyman727
Copy link
Contributor Author

Thanks for the suggestion, @kevinmehall.

@tcr I think we may need to make a modification to t2-compiler for this one. After updating the use_system_libusb var as Kevin suggested, the install fails because it can't find pkg-config and libusb. Our OpenWRT build definitely has libusb installed so I think when we attempt to compile, it's actually searching the compiler VM for libusb instead of the OpenWRT toolchain.

@reconbot
Copy link
Member

I'll add to this issue that node-serialport is experimenting with using libudev to detect connected serialports

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

3 participants