go-gl-legacy / gl

Go bindings for OpenGL
BSD 3-Clause "New" or "Revised" License
342 stars 52 forks source link

Trouble Installing on Windows #134

Closed Triangle345 closed 10 years ago

Triangle345 commented 10 years ago

Are there any general instructions for installing on windows?

I have tried cygwin 64 bit, 32 bit, mingw 64 bit and in either case I get different errors. For cygwin I get an error while doing go get claiming that I need glew32 but I compiled as glew 64? Just wondering if anyone had luck installing go-gl on a windows machine?

Niriel commented 10 years ago

I would really like to know that as well. Because glfw has to be linked dynamically, I do now know how to build a windows executable of my game.

Triangle345 commented 10 years ago

I was able to get opengl built and successfully executed the go get command on gl but no luck with glfw. For opengl please use my comments on this post: http://stackoverflow.com/questions/21638482/golang-opengl-windows-installation-issues/21638699#21638699

For glfw I have no idea still...

tapir commented 10 years ago

What seems to be the problem with glfw on win64? Did you renamed the library as stated in README?

Triangle345 commented 10 years ago

Win64/32 bit both... I do not see anything in the README about renaming a library? Can you please clarify. For glfw I downloaded the mingw windows binaries and there is nothing in the README about renaming. http://sourceforge.net/projects/glfw/files/glfw/3.0.4/glfw-3.0.4.bin.WIN32.zip/download

tapir commented 10 years ago

I guess you're talking about go-gl/glfw I was referring to go-gl/glfw3 On 11 Feb 2014 14:48, "Eugene F" notifications@github.com wrote:

Win64/32 bit both... I do not see anything in the README about renaming a library? Can you please clarify.

— Reply to this email directly or view it on GitHubhttps://github.com/go-gl/gl/issues/134#issuecomment-34750914 .

Triangle345 commented 10 years ago

Well the libraries inside the download package do reference glfw3. So yes, glfw3 since that is what they included. Can you clarify what to rename?

tapir commented 10 years ago

I was talking about README of go-gl/glfw3 -> https://github.com/go-gl/glfw3 But you still didn't state what exactly is the problem. Send some logs, compiler errors, anything that might help solve your problem.

Triangle345 commented 10 years ago

I was able to get glfw3 working by simply downloading glfw3 for mingw. I took the mingw libraries and placed them in my mingw/lib directory ( on my c drive). After that I did the usual go get for glfw and ran the sample app - things seemed to work fine. Thanks for the support!

pwaller commented 10 years ago

@xwrxwrxwr thanks for getting tot he bottom of it and reporting back! :+1: