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

x/mobile: Cannot cross compile for darwin. #25589

Closed
seriousnerve opened this issue May 26, 2018 · 2 comments
Closed

x/mobile: Cannot cross compile for darwin. #25589

seriousnerve opened this issue May 26, 2018 · 2 comments

Comments

@seriousnerve
Copy link

@seriousnerve seriousnerve commented May 26, 2018

What version of Go are you using (go version)?

1.10.2

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Windows 10, x86_x64

What did you do?

I tried to build package gl from mobile by running go install golang.org/x/mobile/gl/

If possible, provide a recipe for reproducing the error.

Just set GOOS=darwin and run go install golang.org/x/mobile/gl/

What did you expect to see?

I expected the command to complete successfully!

What did you see instead?

I saw it error with this:

(#) golang.org/x/mobile/gl
..\go\src\golang.org\x\mobile\gl\gl.go:20:12: undefined: context

@gopherbot gopherbot added this to the Unreleased milestone May 26, 2018
@gopherbot gopherbot added the mobile label May 26, 2018
@odeke-em

This comment has been minimized.

Copy link
Member

@odeke-em odeke-em commented Jun 1, 2018

@eliasnaur

This comment has been minimized.

Copy link
Contributor

@eliasnaur eliasnaur commented Jun 1, 2018

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.

@eliasnaur eliasnaur closed this Jun 1, 2018
@golang golang locked and limited conversation to collaborators Jun 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.