Closed mrpalide closed 2 years ago
When compiling for other OS Go will turn off CGo support, but systray requires it. Please include CGO_ENABLED=1. You may also need the appropriate C compiler - there are more docs at https://developer.fyne.io/started/cross-compiling
Does available cross compilation for systray? When I trying to build for MacOS on Linux machine, by
GOOS=darwin GOARCH=amd64 go build example/main.go
I get this error:But is OK for windows, by
GOOS=windows GOARCH=amd64 go build example/main.go
!