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

Build webview linux for windows #18

Open
vBlackOut opened this issue Dec 5, 2023 · 3 comments
Open

Build webview linux for windows #18

vBlackOut opened this issue Dec 5, 2023 · 3 comments

Comments

@vBlackOut
Copy link

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/[email protected]
@powellnorma
Copy link

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
Copy link
Author

vBlackOut commented Dec 15, 2023

ok thank i try that

@PritishMishraa
Copy link

was this issue resolved? i am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants