karalabe / xgo

Go CGO cross compiler
MIT License
2.14k stars 280 forks source link

Don't require GOPATH to be set #141

Open gordonklaus opened 5 years ago

gordonklaus commented 5 years ago

I get the error No $GOPATH is set or forwarded to xgo when I haven't set GOPATH.

GOPATH is no longer required since https://github.com/golang/go/issues/17262. If GOPATH is not set, it defaults to $HOME/go.

PSK144 commented 5 years ago

can you explain how to execute the command of xgo. I have my go file win.go , in directory Documents/Programs. and I imported webview package.

I'm using linux/amd64, I want to compile for linux/386. help me