I am fairly new to go and even Linux in general.
I have built an app in a Linux environment which makes use of a gtk lib based on cgo (https://github.com/mattn/go-gtk/). The application builds fine in its native environment (linux 64bit) but when I try to compile for darwin 64bit I get the following result:
# net
could not determine kind of name for C.AI_MASK
# net
could not determine kind of name for C.AI_MASK
The command line I use to build:
env GOOS=$1 GOARCH=$2 CGO_ENABLED=1 go build $3
Where $1 is darwin and $2 amd64 (and $3 the path to my app).
As the error seems to come from the lib I import, I am not sure what to do to fix it. I have also read that cross compiling cgo does not really work as it relies on native macos stuff so it would need to be built on a mac. Is this true or is there something I can do to make it work in my environment?
I am also slightly confused as it seems most people discussing this subject are talking of go pre 1.5 which was entirely different when it comes to cross-compiling if I understand correctly.
Thanks