Join 36 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
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?
to your account
Windows 10, x86_x64
I tried to build package gl from mobile by running go install golang.org/x/mobile/gl/
Just set GOOS=darwin and run go install golang.org/x/mobile/gl/
I expected the command to complete successfully!
I saw it error with this:
..\go\src\golang.org\x\mobile\gl\gl.go:20:12: undefined: context
/cc @eliasnaur @rakyll @crawshaw
Cross compiling the gl package is unlikely to work, since it requires Cgo and the native OpenGL headers to compile. If you pass CGO_ENABLED=1 along with GOOS=darwin to go install you'll probably run into a missing C header file or similar.