Symbol lookup error involving libusb when running program as user, but no error when running as superuser?
by Mantabit from LinuxQuestions.org on (#6J94Q)
Hello everyone
I would like to control some data acquisition equipment so I installed the library from the GitHub repository of the manufacturer (https://github.com/mccdaq/uldaq). After building the project as described on the repository, I get a symbol lookup error when I try to run one of the provided examples (`AIn` in this case):
Quote:
When I run the same program as superuser, no errors occur and everything seems to work fine. I did install the device rules file with the following rule:
Quote:
which corresponds to the device I want to control:
Quote:
Does anyone have an idea how I could debug this issue?
I would like to control some data acquisition equipment so I installed the library from the GitHub repository of the manufacturer (https://github.com/mccdaq/uldaq). After building the project as described on the repository, I get a symbol lookup error when I try to run one of the provided examples (`AIn` in this case):
Quote:
./AIn Found 1 DAQ device(s) [0] USB-1608GX: (020D2FF3) Connecting to device USB-1608GX - please wait ... /home/dvarx/Downloads/libuldaq-1.2.1/examples/.libs/AIn: symbol lookup error: /home/dvarx/Downloads/libuldaq-1.2.1/src/.libs/libuldaq.so.1: undefined symbol: libusb_has_capability |
Quote:
SUBSYSTEM=="usb", ATTR{idVendor}=="09db", ATTR{idProduct}=="0135", GROUP="adm", MODE="0666" |
Quote:
[ 1437.149542] usb 1-9: reset full-speed USB device number 4 using xhci_hcd [ 1874.205017] usb 1-4: USB disconnect, device number 2 [ 1876.429457] usb 1-4: new high-speed USB device number 6 using xhci_hcd [ 1880.334392] usb 1-4: New USB device found, idVendor=09db, idProduct=0135, bcdDevice= 2.01 [ 1880.334411] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1880.334419] usb 1-4: Product: USB-1608GX [ 1880.334425] usb 1-4: Manufacturer: MCC [ 1880.334432] usb 1-4: SerialNumber: 020D2FF3 |