robotn / gohook

GoHook, Go global keyboard and mouse listener hook
MIT License
314 stars 44 forks source link

Doesn't import? #54

Open ds0nt opened 2 weeks ago

ds0nt commented 2 weeks ago

github.com/robotn/gohook

../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:51:10: undefined: addEvent ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:62:7: undefined: Start ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:75:18: undefined: KeyHold ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:83:18: undefined: KeyUp ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:95:22: undefined: KeyUp ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:96:4: undefined: End ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:113:7: undefined: Start ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:121:17: undefined: MouseMove ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:128:22: undefined: MouseDown ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:129:4: undefined: End ../go/pkg/mod/github.com/robotn/gohook@v0.40.0/event.go:129:4: too many errors

ds0nt commented 2 weeks ago

Same with github.com/robotn/gohook v0.40.0 and github.com/robotn/gohook v0.41.0

n4nn31355 commented 4 days ago

You most likely don't have the required libs and GCC setup https://github.com/go-vgo/robotgo?tab=readme-ov-file#requirements

martypenner commented 4 days ago

That definitely did it for me, after I carefully followed the instructions. Having a docker setup helped my investigation.