Open johnnyman727 opened 8 years ago
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.
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.
I'll add to this issue that node-serialport is experimenting with using libudev to detect connected serialports
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.