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

Cross-compilation on Linux for Windows #418

Closed
aidanngill opened this issue Jul 18, 2021 · 1 comment
Closed

Cross-compilation on Linux for Windows #418

aidanngill opened this issue Jul 18, 2021 · 1 comment

Comments

@aidanngill
Copy link

Trying to compile an application using ui on Linux for a Windows system but I get the following output.

user@host:~/Remote$ GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build .
# runtime/cgo
gcc: error: unrecognized command line option ‘-mthreads’; did you mean ‘-pthread’?

No output binary is generated. Disabling CGO gives the following result.

user@host:~/Remote$ GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build .
package github.com/ramadan8/Remote
        imports github.com/andlabs/ui: build constraints exclude all Go files in /home/user/go/pkg/mod/github.com/andlabs/ui@v0.0.0-20200610043537-70a69d6ae31e
@CheatCoder
Copy link

#155

Have you try to use the search?
You need to say where the c compiler for the windows build is.

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

2 participants