libusb on ctrlX CORE

Hi,

is it somehow possible to install the libusb library on the ctrlX CORE? (Or any other library)

Since apt is not available on the core and it is not enough to stage this library within a snap (as far as I know), I tried to manually copy the files to '/lib' and '/usr/lib' through ssh with a root user. But that doesn't work either (cp: cannot create regular file '/lib/aarch64-linux-gnu/libusb-1.0.so.0': Read-only file system).

Any other workarounds?

Thanks for your help!

Best reply by jochen-scheib

I had a quick look into the topic. It seems like pyusb is "hardcoding" where to find the libusb, but you can provide it by code:

backend = usb.backend.libusb1.get_backend(find_library=lambda x: "/snap/my-snap-name/current/lib/x86_64-linux-gnu/libusb-1.0.so.0")

 Does this work for you?

View original
9 replies