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

Running ok on CENTOS , but cross compiling to windows get errors #361

Closed
gujunyan opened this issue Sep 7, 2021 · 2 comments
Closed

Running ok on CENTOS , but cross compiling to windows get errors #361

gujunyan opened this issue Sep 7, 2021 · 2 comments
Labels
Milestone

Comments

@gujunyan
Copy link

gujunyan commented Sep 7, 2021

GOOS=windows GOARCH=amd64 go build ./main.go

github.com/go-vgo/robotgo

/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:30:24: undefined: hook.Event
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:31:9: undefined: hook.Start
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:36:2: undefined: hook.End
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:41:19: undefined: hook.Event
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:42:9: undefined: hook.Start
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:47:2: undefined: hook.End
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:52:2: undefined: hook.StopEvent
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:56:31: undefined: hook.Event
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:57:9: undefined: hook.Process
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:61:64: undefined: hook.Event
/root/go/pkg/mod/github.com/go-vgo/robotgo@v0.99.4/hook.go:57:9: too many errors

@vcaesar vcaesar added this to the v0.100.0 milestone Sep 7, 2021
@vcaesar
Copy link
Member

vcaesar commented Sep 7, 2021

Are you see #343 and #228? You should install depend and set the CXX.

@pokitpeng
Copy link

try this cmd,when I enable CGO,it works !
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build ./main.go

@vcaesar vcaesar closed this as completed Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants