-
Notifications
You must be signed in to change notification settings - Fork 903
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
Compiling for Windows (on Linux) emits warnings #552
Comments
Actually, it doesn't work on Linux either. |
How did this problem ultimately be solved? |
Changed the logic of my app and didn't have to use this module. |
Test
The solution is to install gcc and add it to the environment variable and set By the way, I encountered another issue with Win+VSCode+Git Bash, where certain methods were showing as non-existent in the editor, while some others existed. The reason was that I added GCC to the PATH in Git Bash but not in the system, which caused gopls to be unable to resolve these methods. Add GCC to the system environment variable resolved the issue. |
@wilon I try
go env | grep CGO_ENABLED
CGO_ENABLED="0" use # Building target: windows/arm64
• Generating bindings: Done.
• Installing frontend dependencies: Done.
• Compiling frontend: Done.
• Generating application assets: Done.
• Compiling application: # runtime/cgo
gcc_libinit_windows.c:8:10: fatal error: 'windows.h' file not found |
This comment was marked as resolved.
This comment was marked as resolved.
i build for windows in Ubuntu ,
it works |
`
github.com/go-vgo/robotgo
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:30:29: undefined: hook.Event
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:31:14: undefined: hook.Start
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:36:7: undefined: hook.End
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:43:24: undefined: hook.Event
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:44:14: undefined: hook.Start
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:60:36: undefined: hook.Event
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:65:69: undefined: hook.Event
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/img.go:92:40: undefined: Bitmap
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/img.go:107:38: undefined: Bitmap
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/img.go:137:20: undefined: Bitmap
/home/qs/go/pkg/mod/github.com/go-vgo/[email protected]/hook.go:44:14: too many errors
`
The text was updated successfully, but these errors were encountered: