
Correct dllmaps on for OS X?
Posted Friday, 7 August, 2009 - 05:34 by blueworld inI'm getting a DllNotFoundException on opengl32.dll when I call OpenTK.Graphics.GL.GenVertexArrays. Pretty sure it shouldn't be trying to load that, as I'm on Mac OS X. I used the dllmap section from the examples that came with OpenTk. The osx entries are:
<dllmap os="osx" dll="openal32.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" /> <dllmap os="osx" dll="alut.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
I noticed opengl32.dll wasn't in there, so I added:
<dllmap os="osx" dll="opengl32.dll" target="/System/Library/Frameworks/OpenGL.framework/OpenGL" />
I'm surprised it's still looking for a dll. Anybody see what I'm missing?


Comments
Re: Correct dllmaps on for OS X?
It would be of great help if you'd be more verbose:
Re: Correct dllmaps on for OS X?
I never found a need for a dllmap for OpenGL on Mac OS X when developing the Mac OS code, because of the dynamic loading of GL functions. So in this case, more information is needed. A small code sample which reproduces the bug would be very helpful. Are you sure that there's a current context for the calling thread before calling GenVertexArrays?
Re: Correct dllmaps on for OS X?
I think the problem was that I was trying to use VAO when my hardware doesn't support it. I went to VBO and now I'm not getting this exception any more.
Re: Correct dllmaps on for OS X?
VAOs are an OpenGL 3.0 feature, which will be introduced with Snow Leopard.