[Mono-osx] P/Invoke and using C libraries with mono weridness on Intel Mac

Sean C Chapel sean.chapel at utah.edu
Sun Dec 3 00:00:18 EST 2006

Does P/Invoking only work under X11 on the intel mac?
I have no issues when using my old ppc machine but on
my intel mac it refuses to find the system dll unless
you try to run it via X11.

Specificaly I'm trying to get various things in Tao
working but I believe this isn't an issue with Tao

Here is some example output when I try to run it via
the normal console:

~/Desktop/Tao-1.3.0-1/examples seoushi$ mono Redbook.Anti.exe 

Unhandled Exception: System.DllNotFoundException: /System/Library/Frameworks/GLUT.framework/GLUT
  at (wrapper managed-to-native) Tao.FreeGlut.Glut:glutInit (int&,System.Text.StringBuilder[])
  at Tao.FreeGlut.Glut.glutInit () [0x00000] 
  at Redbook.Anti.Main (System.String[] args) [0x00000]

However when run under an xterm it does what it is 
suppose to. I have no changes to anything inbetween
running from the console and the xterm. My dll Map
looks like this:

    <dllmap dll="freeglut.dll" target="/System/Library/Frameworks/GLUT.framework/GLUT" />

Does X11 do something special when for loading 

Thanks, Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20061202/4d699d89/attachment.html 

More information about the Mono-osx mailing list