webview / webview_go

Go language bindings for the webview library.
MIT License
176 stars 27 forks source link

Build webview linux for windows #18

Open vBlackOut opened 7 months ago

vBlackOut commented 7 months ago

GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" main.go

but error why ?


github.com/webview/webview_go: build constraints exclude all Go files in /home/go/pkg/mod/github.com/webview/webview_go@v0.0.0-20230901181450-5a14030a9070
powellnorma commented 6 months ago

When crosscompiling, CGO is disabled by default. Try to add something like this: CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++

vBlackOut commented 6 months ago

ok thank i try that

PritishMishraa commented 3 months ago

was this issue resolved? i am facing the same issue