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

Issue building on Windows 7 with MinGW #160

Open
nholland94 opened this issue Jul 12, 2014 · 3 comments
Open

Issue building on Windows 7 with MinGW #160

nholland94 opened this issue Jul 12, 2014 · 3 comments

Comments

@nholland94
Copy link

I have a little game I wrote as a test for a go project called GarageEngine. I originally wrote it on OSX and decided I wanted to test the cross platform compatibility of it. I setup a Windows machine with MinGW, installed GLEW from source on the machine, and grabbed the windows binaries for GLFW 2.7 (glfw.dll, glfw.a, and glfwdll.a) and set them up. When I go to build my project, this is what I get, however:

PS C:\Go\workspace\src\github.com\nholland94\puzzle> go build
# github.com/go-gl/gl
37: error: 'glVertexAttribDivisor' undeclared (first use in this function)

I'm not sure if this is a version mismatch of my dependencies or what. Also, the only reference to glVertexAttribDivisor in the project's source code isn't even on line 37, so I don't know what that's about.

Let me know if you need any more details.

@pwaller
Copy link
Contributor

pwaller commented Jul 12, 2014

The error is likely coming from cgo, so you're actually seeing the line number from an intermediate source file. You can use go build -x -work to see the intermediate files.

What version of GLEW have you got?

@UserAB1236872
Copy link
Contributor

Since he built it from source, I'd wager they have the most recent stable version of GLEW.

First step in troubleshooting this -- can you compile a C program using those functions, using the same linker flags listed under #cgo windows LDFLAGS: -lglew32 -lopengl32?

@zombiezen
Copy link

Just hit this myself. I was using GLEW 1.5.7.is.1.5.2-1ubuntu4 from apt on Ubuntu, and the fix was to install libglew1.6-dev instead.

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

4 participants