Compile error on ubuntu18
edulop91 opened this issue · comments
# github.com/karalabe/hid
vendor/github.com/karalabe/hid/hid_enabled.go:23:11: fatal error: os/threads_posix.c: No such file or directory
#include "os/threads_posix.c"
^~~~~~~~~~~~~~~~~~~~
Have been getting this on ubuntu18. CGO_ENABLED=1. libusb 1.0.0 + libusb1.0.0-dev installed.
Wondering what I'm missing
Vendoring does not hook C files.
It is related to golang/go#26366 . Any chance you could add dummy files into hidapi
and libusb
directories. Here are examples:
Thanks
#31 should fix that.
Edit: it doesn't.
I have a fix for this issue on my fork: github.com/dolmen-go/hid.
Fixed with hidapi upgrade