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

the cgo included .h files need to be referenced by a Go package so go mod works #13

Closed
benma opened this issue Nov 3, 2019 · 0 comments · Fixed by #17
Closed

the cgo included .h files need to be referenced by a Go package so go mod works #13

benma opened this issue Nov 3, 2019 · 0 comments · Fixed by #17

Comments

@benma
Copy link

benma commented Nov 3, 2019

This package is not go mod vendor compatible due to this issue: golang/go#26366 (comment)

The problem is that go mod vendor does not vendor hidapi.h.

This results in a build error when building with go build -mod=vendor:

fatal error: ./hidapi/hidapi/hidapi.h: No such file or directory
 #include "./hidapi/hidapi/hidapi.h"
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

Successfully merging a pull request may close this issue.

1 participant