Add instructions for hidapi for Windows
Opened this issue · 2 comments
banool commented
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\go-hid@v0.0.0-20190621001400-1cf4630be9f4\hid.go:38:10: fatal error: hidapi/hidapi.h: No such file or directory
38 | #include <hidapi/hidapi.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
banool commented
I tried using the udev rules on WSL to no avail either.
kelvie commented
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.