I cloned go-ethereum, and used go mod vender
.
When make, it's failed! and the error info is:
# github.com/karalabe/usb
vendor/github.com/karalabe/usb/hid_enabled.go:22:10: fatal error: ./hidapi/hidapi/hidapi.h: No such file or directory
22 | #include "./hidapi/hidapi/hidapi.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
libhidapi
for your system.