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

Build fails with: fatal error: usb.h: No such file or directory #19

Closed
wanderling opened this issue Feb 28, 2024 · 3 comments
Closed

Build fails with: fatal error: usb.h: No such file or directory #19

wanderling opened this issue Feb 28, 2024 · 3 comments

Comments

@wanderling
Copy link

Straight pull from github. cmake works. Full error below:

In file included from /home/*redacted*/build/ups/src/main.cpp:12: /home/*redacted*/build/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:76: CMakeFiles/openups.dir/src/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/openups.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

@olifre
Copy link

olifre commented Feb 29, 2024

This file is usually part of libusb-compat, libusb-dev or similar packages — which package contains it depends on your Linux distribution and version.

@wanderling
Copy link
Author

The programming equivalent of, "Did you forget to plug it in?"... Yep. That worked. Thanks!

@olifre
Copy link

olifre commented Mar 1, 2024

No worries, you're welcome 👍 .

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