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

Compile error on ubuntu18 #27

Closed
edulop91 opened this issue Nov 1, 2019 · 5 comments
Closed

Compile error on ubuntu18 #27

edulop91 opened this issue Nov 1, 2019 · 5 comments

Comments

@edulop91
Copy link

edulop91 commented Nov 1, 2019

# 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

@filinvadim
Copy link

filinvadim commented Mar 4, 2020

Vendoring does not hook C files.

@devfacet
Copy link

devfacet commented Aug 6, 2020

It is related to golang/go#26366 . Any chance you could add dummy files into hidapi and libusb directories. Here are examples:

Thanks

@dolmen
Copy link
Contributor

dolmen commented Jan 13, 2022

#31 should fix that.

Edit: it doesn't.

@dolmen
Copy link
Contributor

dolmen commented Feb 20, 2022

I have a fix for this issue on my fork: github.com/dolmen-go/hid.

@holiman
Copy link
Collaborator

holiman commented Feb 6, 2024

Fixed with hidapi upgrade

@holiman holiman closed this as completed Feb 6, 2024
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

5 participants