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 on OS X #16080

Closed
zhaozhuo opened this issue Jun 16, 2016 · 1 comment
Closed

x/mobile/gl: gomobile init failed on OS X #16080

zhaozhuo opened this issue Jun 16, 2016 · 1 comment

Comments

@zhaozhuo
Copy link

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

Xcode Command Line Tools Info

$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

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

GOARCH="amd64"
GOBIN="/usr/local/Cellar/go/1.6.2/libexec/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/bob/mnt/goMobile"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.2/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="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

  2. What did you expect to see?

  3. What did you see instead?

golang.org/x/mobile/gl
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/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
/Users/bob/mnt/goMobile/src/golang.org/x/mobile/gl/work.c:37:10: warning: 4 enumeration values not handled in switch: 'glfnUniform1uiv', 'glfnUniform2uiv', 'glfnUniform3uiv'... [-Wswitch]

@adg
Copy link
Contributor

adg commented Jun 16, 2016

Dupe of #16071?

@hyangah hyangah closed this as completed Jun 16, 2016
@mikioh mikioh changed the title OS X gomobile init failed x/mobile/gl: gomobile init failed on OS X Jun 17, 2016
@golang golang locked and limited conversation to collaborators Jun 17, 2017
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