blueworld's picture

Correct dllmaps on for OS X?

I'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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Inertia's picture

It would be of great help if you'd be more verbose:

  • OS and Mono details
  • hardware and driver details
  • Does the example launcher work?
  • 0.9.8 or 0.9.9?
  • Does e.g. GL.Enable() cause the same exception? Does your hardware/driver support VAO?
kanato's picture

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?

blueworld's picture

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.

the Fiddler's picture

VAOs are an OpenGL 3.0 feature, which will be introduced with Snow Leopard.