I am trying to start PulseView and sigrok AppImages. Unfortunately, I am getting an error message and I cannot figure out how to fix it:
./sigrok-cli-0.7.1-x86_64.AppImage
sigrok-cli: symbol lookup error: /tmp/.mount_sigrokLM29y6/usr/lib/libsigrok.so.4: undefined symbol: libusb_get_version
./PulseView-0.4.1-x86_64.AppImage
pulseview: symbol lookup error: /tmp/.mount_PulseVunpXcp/usr/lib/libsigrok.so.4: undefined symbol: libusb_get_version
Then, I tried to build from source following the instructions at https://sigrok.org/wiki/Linux . I have built successfully all libraries but got the same undefined reference to libusb when building sigrok-cli:
~/temp/sigrok-cli$ make
make all-am
CCLD sigrok-cli
/usr/local/lib/libsigrok.so: undefined reference to `libusb_free_pollfds'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_get_version'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_handle_events_timeout_completed'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_has_capability'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_error_name'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_get_port_numbers'
collect2: error: ld returned 1 exit status
Makefile:476: recipe for target 'sigrok-cli' failed
make[1]: *** [sigrok-cli] Error 1
Makefile:362: recipe for target 'all' failed
make: *** [all] Error 2
Here are some dumps:
$ lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
$ apt-cache policy libusb-1.0*
libusb-1.0-0:
Installed: 2:1.0.20-1
Candidate: 2:1.0.20-1
Version table:
*** 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
libusb-1.0-0-dbg:
Installed: (none)
Candidate: 2:1.0.20-1
Version table:
2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libusb-1.0-0-dev:
Installed: 2:1.0.20-1
Candidate: 2:1.0.20-1
Version table:
*** 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
libusb-1.0-doc:
Installed: 2:1.0.20-1
Candidate: 2:1.0.20-1
Version table:
*** 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status
Do you have ideas what is the problem?