Giter Site home page Giter Site logo

Comments (6)

alotabits avatar alotabits commented on June 5, 2024

I'm interested in MinGW support as well. Currently, it fails to find many function symbols in MinGW.

1: error: 'glVertexAttrib3fv' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it appears in
1: error: 'glIsProgram' undeclared (first use in this function)
1: error: 'glBufferData' undeclared (first use in this function)
1: error: 'glVertexAttrib2f' undeclared (first use in this function)
1: error: 'glVertexAttrib1fv' undeclared (first use in this function)
1: error: 'glGetUniformLocation' undeclared (first use in this function)
1: error: 'glUniform1i' undeclared (first use in this function)
1: error: 'glStencilOpSeparate' undeclared (first use in this function)
1: error: 'glBlendFuncSeparate' undeclared (first use in this function)
1: error: 'GLsizeiptr' undeclared (first use in this function)
1: error: 'glEnableVertexAttribArray' undeclared (first use in this function)
1: error: 'glUnmapBuffer' undeclared (first use in this function)
1: error: 'glVertexAttrib4fv' undeclared (first use in this function)
1: error: 'glGetBufferSubData' undeclared (first use in this function)
1: error: 'glFramebufferRenderbuffer' undeclared (first use in this function)
1: error: 'glGetProgramiv' undeclared (first use in this function)
1: error: 'glAttachShader' undeclared (first use in this function)
1: error: 'glBindAttribLocation' undeclared (first use in this function)
1: error: 'glFramebufferTextureLayer' undeclared (first use in this function)
1: error: 'glUniform1f' undeclared (first use in this function)
1: error: 'glFramebufferTexture1D' undeclared (first use in this function)
1: error: 'glIsShader' undeclared (first use in this function)
1: error: 'glCheckFramebufferStatus' undeclared (first use in this function)
1: error: 'glDeleteShader' undeclared (first use in this function)
1: error: 'glShaderSource' undeclared (first use in this function)
1: error: 'glGetAttachedShaders' undeclared (first use in this function)
1: error: 'glVertexAttrib2fv' undeclared (first use in this function)
1: error: 'glBindFramebuffer' undeclared (first use in this function)
1: error: 'glGetAttribLocation' undeclared (first use in this function)
1: error: 'glStencilFuncSeparate' undeclared (first use in this function)
1: error: 'glCreateProgram' undeclared (first use in this function)
1: error: 'glUseProgram' undeclared (first use in this function)
1: error: 'glGetShaderSource' undeclared (first use in this function)
1: error: 'glRenderbufferStorageMultisample' undeclared (first use in this function)
1: error: 'glUniform3i' undeclared (first use in this function)
1: error: 'glLinkProgram' undeclared (first use in this function)
1: error: 'glMapBuffer' undeclared (first use in this function)
1: error: 'glUniform4f' undeclared (first use in this function)
1: error: 'glGetBufferPointerv' undeclared (first use in this function)
1: error: 'GLintptr' undeclared (first use in this function)
1: error: 'glGetProgramInfoLog' undeclared (first use in this function)
1: error: 'glVertexAttribPointer' undeclared (first use in this function)
1: error: 'glValidateProgram' undeclared (first use in this function)
1: error: 'glGetShaderiv' undeclared (first use in this function)
1: error: 'glUniform2f' undeclared (first use in this function)
1: error: 'glGetUniformfv' undeclared (first use in this function)
1: error: 'GLchar' undeclared (first use in this function)
1: error: 'glBlitFramebuffer' undeclared (first use in this function)
1: error: 'glVertexAttrib3f' undeclared (first use in this function)
1: error: 'glGenRenderbuffers' undeclared (first use in this function)
1: error: 'glDisableVertexAttribArray' undeclared (first use in this function)
1: error: 'glGetShaderInfoLog' undeclared (first use in this function)
1: error: 'glIsBuffer' undeclared (first use in this function)
1: error: 'glVertexAttrib1f' undeclared (first use in this function)
1: error: 'glGetUniformiv' undeclared (first use in this function)
1: error: 'glBufferSubData' undeclared (first use in this function)
1: error: 'glFramebufferTexture3D' undeclared (first use in this function)
1: error: 'glCompileShader' undeclared (first use in this function)
1: error: 'glUniform2i' undeclared (first use in this function)
1: error: 'glDeleteFramebuffers' undeclared (first use in this function)
1: error: 'glCreateShader' undeclared (first use in this function)
1: error: 'glUniform4i' undeclared (first use in this function)
1: error: 'glGetBufferParameteriv' undeclared (first use in this function)
1: error: 'glDeleteBuffers' undeclared (first use in this function)
1: error: 'glBlendEquationSeparate' undeclared (first use in this function)
1: error: 'glGenBuffers' undeclared (first use in this function)
1: error: 'glBindBuffer' undeclared (first use in this function)
1: error: 'glDeleteProgram' undeclared (first use in this function)
1: error: 'glDeleteRenderbuffers' undeclared (first use in this function)
1: error: 'glUniform3f' undeclared (first use in this function)
1: error: 'glFramebufferTexture2D' undeclared (first use in this function)
1: error: 'glStencilMaskSeparate' undeclared (first use in this function)
1: error: 'glRenderbufferStorage' undeclared (first use in this function)
1: error: 'glBindRenderbuffer' undeclared (first use in this function)
1: error: 'glDetachShader' undeclared (first use in this function)
1: error: 'glVertexAttrib4f' undeclared (first use in this function)
1: error: 'glGenFramebuffers' undeclared (first use in this function)
unresolved names
make: *** [_obj/_cgo_run] Error 2

from gl.

banthar avatar banthar commented on June 5, 2024

You have outdated OpenGL. Update your OpenGL headers (and probably library too). Or, alternatively, install glew and use glew branch.

To actualy use OpenGL, you need to create OpenGL context first. Examples use SDL, but, since it doesn't work well with windows, you probably can use wingui. If you already did it, please describe how. Some people will find this information useful.

from gl.

alotabits avatar alotabits commented on June 5, 2024

OpenGL headers in Windows are always outdated. That's just how OpenGL works
on Windows and why GLEW is so important. All functionality since, 1.2 (I
think?) is only available as an extension, so if you aren't creating the
necessary function bindings at runtime, and linking against the runtime
function bindings, it just won't work. It's good to know there is a GLEW
branch though.

Interesting. I wasn't aware that Go-SDL doesn't work well in Windows. I
hadn't made it that far yet. Sets me back a little...

On Tue, Apr 26, 2011 at 7:10 PM, banthar <
[email protected]>wrote:

You have outdated OpenGL. Update your OpenGL headers (and probably library
too). Or, alternatively, install glew and
use glew branch.

To actualy use OpenGL, you need to create OpenGL context first. Examples
use SDL, but, since it doesn't work
well with windows, you probably can use wingui. If you already did it, please describe
how. Some people will find this information useful.

Reply to this email directly or view it on GitHub:
https://github.com/banthar/Go-OpenGL/issues/23#comment_1061429

from gl.

cjyar avatar cjyar commented on June 5, 2024

Using MinGW, I'm able to get it to compile with one exception. It can't find gluUnProject4. Online commentary leads me to believe this function isn't available in Windows. Can we disable it for the Windows build? Or am I using an outdated OpenGL somehow?

from gl.

dersebi avatar dersebi commented on June 5, 2024

The missing gluUnProject4 seems to be a known problem (see: http://osdir.com/ml/gnu.mingw.devel/2003-09/msg00028.html).
MinGW ships a glu header that is more capable than Microsofts glu library.
Has anybody been able to solve this?
Other than that: If I comment gluUnProject4 I am able to run the sdlgears and draw examples. gomandel crashes with a panic in uploadTexture_RGBA32 which might be a problem of me running it inside a Virtualbox Windows.

Quick update: using libglu32 from mesa I was able to get it to compile with gluUnProject4 enabled.
You can get a precompiled version here ftp://ftp.sim.no/pub/3rdparty/GLU_DLLs/ or build it yourself if you like.

Another update:
gomandel runs on non-virtual windows 7 with an nvidia gfx card. the draw programm however is flickering really bad.
But all in all it is workable.

from gl.

pwaller avatar pwaller commented on June 5, 2024

Closing as fixed at the moment from the last comment from @dersebi suggests that this works currently on windows. As I understand, most of the issues are compiler side rather than this project.

If someone with a windows box finds that go test on go-gl/examples doesn't work, please file an issue there.

from gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.