Closed xiaomingloveqinger closed 5 years ago
You will need a Linux gcc toolchain and Linux versions of the GTK+ libraries to link against. Once you have those, use $CCC
and $CXX
to point cgo to that compiler.
thanks for the reply. I use the virtual box , start a ubuntu virtual machine and build from there , everything works beautiful.
Going to close this as a result of the last comment.
go env
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o linux_64-gui gui.go