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

Mac OSX Warnings/Errors when running go get #167

Open
netpoetica opened this issue Aug 24, 2014 · 1 comment
Open

Mac OSX Warnings/Errors when running go get #167

netpoetica opened this issue Aug 24, 2014 · 1 comment

Comments

@netpoetica
Copy link

Following the instructions for Mac/Linux, I get warnings/errors after running go get on Mac OSX 10.9.4, which seem relatively harmless, but I have been unable to compile some go OpenGL examples without panics. I'm curious if this error is at the root of some of this - thanks for taking a look.

➜  ~GOPATH  go get github.com/go-gl/gl
# github.com/go-gl/gl
In file included from $WORK/github.com/go-gl/gl/_obj/_cgo_export.c:2:
src/github.com/go-gl/gl/debugoutput.go:26:28: warning: incompatible pointer types passing 'void (GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, void *)' to parameter of type 'GLDEBUGPROCARB' (aka 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, const void *)') [-Wincompatible-pointer-types]
# github.com/go-gl/gl
src/github.com/go-gl/gl/debugoutput.go:26:28: warning: incompatible pointer types passing 'void (GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, void *)' to parameter of type 'GLDEBUGPROCARB' (aka 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, const void *)') [-Wincompatible-pointer-types]

If it helps any, when I run pkg-config I get

➜  github.com  pkg-config glew --libs --cflags
-I/usr/include/GL -lGLEW 

But running with CGO_FLAGS and then go install doesn't appear to actually do anything

@pwaller
Copy link
Contributor

pwaller commented Sep 2, 2014

Sorry for the slow response, was on holiday. The warning you've provided above is just a difference in const-ness and shouldn't cause a panic.

Please provide the panic stack trace.

simleb added a commit to simleb/gl that referenced this issue Dec 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants