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

Add instructions for hidapi for Windows #3

Open
banool opened this issue Jul 8, 2022 · 2 comments
Open

Add instructions for hidapi for Windows #3

banool opened this issue Jul 8, 2022 · 2 comments

Comments

@banool
Copy link
Contributor

banool commented Jul 8, 2022

Hey, I'm trying to install this on Windows, but I can't get it to work. It seems like this tool doesn't work on WSL (I figure the necessary sys calls aren't passed properly) and I can't figure out how to install it on native Windows.

I've tried various permutations of this (back slash, forward slash, trailing slash, moving its location, quotes, etc. but it hasn't worked:

PS C:\Users\myuser> set CGO_CFLAGS=-IC:\Users\myuser\.hidapi\include
PS C:\Users\myuser> set CGO_LDFLAGS=-LC:\Users\myuser\.hidapi\x64
PS C:\Users\myuser> go install github.com/kelvie/gbmonctl@latest
# github.com/sstallion/go-hid
go\pkg\mod\github.com\sstallion\[email protected]\hid.go:38:10: fatal error: hidapi/hidapi.h: No such file or directory
   38 | #include <hidapi/hidapi.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
@banool
Copy link
Contributor Author

banool commented Jul 8, 2022

I tried using the udev rules on WSL to no avail either.

@kelvie
Copy link
Owner

kelvie commented Jul 9, 2022

This tool doesn't support Windows in any way, as the reason this tool exists is that OSD sidekick doesn't work on non-Windows.

I'll leave this ticket open in case someone else wants to chime in and help.

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