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/gl: gomobile init failed #16071

Closed
axet opened this issue Jun 15, 2016 · 3 comments
Closed

x/mobile/gl: gomobile init failed #16071

axet opened this issue Jun 15, 2016 · 3 comments

Comments

@axet
Copy link

axet commented Jun 15, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.6.2 darwin/amd64
  2. What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN="/Users/axet/source/go_workspace/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/axet/source/go_workspace"
GORACE=""
GOROOT="/opt/local/lib/go"
GOTOOLDIR="/opt/local/lib/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="/usr/bin/clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
  1. What did you do?
# go get golang.org/x/mobile/cmd/gomobile
# gomobile init
  1. What did you expect to see?
  2. What did you see instead?
gomobile: go install -p=8 golang.org/x/mobile/gl failed: exit status 2
# golang.org/x/mobile/gl
source/go_workspace/src/golang.org/x/mobile/gl/work.c:18:13: error: static declaration of 'glUniformMatrix2x3fv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2048:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:19:13: error: static declaration of 'glUniformMatrix3x2fv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2049:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:20:13: error: static declaration of 'glUniformMatrix2x4fv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2050:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:21:13: error: static declaration of 'glUniformMatrix4x2fv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2051:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:22:13: error: static declaration of 'glUniformMatrix3x4fv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2052:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:23:13: error: static declaration of 'glUniformMatrix4x3fv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2053:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:24:13: error: static declaration of 'glBlitFramebuffer' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2304:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:25:13: error: static declaration of 'glUniform1ui' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2111:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:26:13: error: static declaration of 'glUniform2ui' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2112:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:27:13: error: static declaration of 'glUniform3ui' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2113:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:28:13: error: static declaration of 'glUniform4ui' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2114:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:29:13: error: static declaration of 'glUniform1uiv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2115:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:30:13: error: static declaration of 'glUniform2uiv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2116:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:31:13: error: static declaration of 'glUniform3uiv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2117:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:32:13: error: static declaration of 'glUniform4uiv' follows non-static declaration
/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:2118:21: note: previous declaration is here
source/go_workspace/src/golang.org/x/mobile/gl/work.c:37:10: warning: 4 enumeration values not handled in switch: 'glfnUniform1uiv', 'glfnUniform2uiv', 'glfnUniform3uiv'... [-Wswitch]

@zhaozhuo
Copy link

me too

@hyangah
Copy link
Contributor

hyangah commented Jun 16, 2016

@crawshaw

@gopherbot
Copy link

CL https://golang.org/cl/24177 mentions this issue.

@mikioh mikioh changed the title gomobile init failed x/mobile/gl: gomobile init failed Jun 17, 2016
@golang golang locked and limited conversation to collaborators Jun 17, 2017
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
Also add missing switch cases which cause a compiler warning on OS X.
They are unused so far.

Fixes golang/go#16071

Change-Id: I5ced5a814a7abc956b0b0cdad211ecd69a54a95b
Reviewed-on: https://go-review.googlesource.com/24177
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
Also add missing switch cases which cause a compiler warning on OS X.
They are unused so far.

Fixes golang/go#16071

Change-Id: I5ced5a814a7abc956b0b0cdad211ecd69a54a95b
Reviewed-on: https://go-review.googlesource.com/24177
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants