PaulStoffregen
Well-known member
TL;DR = Please run "locate libudev.so" in a Linux terminal and let me know what it shows? Also mention which distro & version you have have.
For example, Ubuntu 12.04.5 (64 bit) gives this:
Ubuntu 14.04.5 (64 bit) gives this:
On Raspberry Pi, I first had to run "sudo apt-get install mlocate" and then "sudo updatedb". Then I see this:
I'm debating whether it's *finally* time to start using udev to find USB devices, rather than the kludgey combination of scanning the /dev and /dev/bus/usb folders which is currently baked into Teensy Loader and the utilities Teensyduino uses when you do stuff in Arduino.
The only problem is which version of the library to link. libudev.so.0 is the oldest, but have most distros dropped backwards compatibility? Linking against libudev.so.1 means no compatibility with older distros having only libudev.so.0. Static linking either version seems like a pretty bad idea, since the library really wants to match whatever conventions that distro's kernel & udev system is using...
For example, Ubuntu 12.04.5 (64 bit) gives this:
Code:
/lib/x86_64-linux-gnu/libudev.so.0
/lib/x86_64-linux-gnu/libudev.so.0.13.0
Ubuntu 14.04.5 (64 bit) gives this:
Code:
/lib/i386-linux-gnu/libudev.so.1
/lib/i386-linux-gnu/libudev.so.1.3.5
/lib/x86_64-linux-gnu/libudev.so.1
/lib/x86_64-linux-gnu/libudev.so.1.3.5
/usr/lib/x86_64-linux-gnu/libudev.so
On Raspberry Pi, I first had to run "sudo apt-get install mlocate" and then "sudo updatedb". Then I see this:
Code:
/lib/arm-linux-gnueabihf/libudev.so.0
/lib/arm-linux-gnueabihf/libudev.so.0.13.0
/lib/arm-linux-gnueabihf/libudev.so.1
/lib/arm-linux-gnueabihf/libudev.so.1.5.0
/usr/lib/arm-linux-gnueabihf/libudev.so
I'm debating whether it's *finally* time to start using udev to find USB devices, rather than the kludgey combination of scanning the /dev and /dev/bus/usb folders which is currently baked into Teensy Loader and the utilities Teensyduino uses when you do stuff in Arduino.
The only problem is which version of the library to link. libudev.so.0 is the oldest, but have most distros dropped backwards compatibility? Linking against libudev.so.1 means no compatibility with older distros having only libudev.so.0. Static linking either version seems like a pretty bad idea, since the library really wants to match whatever conventions that distro's kernel & udev system is using...