Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libusb-dev install to readme #7

Open
jaguardo opened this issue Mar 21, 2022 · 1 comment
Open

add libusb-dev install to readme #7

jaguardo opened this issue Mar 21, 2022 · 1 comment

Comments

@jaguardo
Copy link

sudo apt-get install libusb-dev

otherwise you will get:

ups/src/lib/usbhid.h:4:10: fatal error: usb.h: No such file or directory
    4 | #include <usb.h>
      |          ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/openups.dir/build.make:63: CMakeFiles/openups.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/openups.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

@robbel
Copy link

robbel commented Jul 28, 2023

Another approach would be to use libusb-compat-0.1, which is not available in the Ubuntu repos, but can be built as described here: https://bugs.launchpad.net/ubuntu/+source/libusb/+bug/991004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants