[Mono-list] [OSX][WinForms] DllNotFoundException on "libgdiplus.dylib", but library installed
eric.slosser at v-fx.com
Thu Jan 6 12:30:19 EST 2011
I'm not sure, but perhaps your problem is that MacPorts doesn't install xterm libraries where they're expected to be found. I used Apple's installer. I see the following are loaded by my WinForms app running on Snow Leopard.
On Jan 6, 2011, at 12:12 PM, Tarnyko wrote:
> I'm trying to run my WinForms executable on Mac OS X Leopard, using official
> Mono Framework 2.8.1 .
> It crashes and I'm always getting this message :
> An exception was thrown by the type initializer for System.Drawing.GDIPlus
> ---> System.DllNotFoundException:
> turned on debug to have more details :
> Mono: DllImport loading location:
> Mono: DllImport error loading library: '(null)'.
> I've read the FAQ, which says this file may be missing, but I'm pretty sure
> it's here :
> # pwd
> # ls libgdi*
> libgdiplus.0.dylib libgdiplus.dylib
> I also thought it may be due to a missing Xorg dependency. So I downloaded
> and installed it using MacPorts :
> # port install xorg-server
> I ran the program from a xterm, but same message here...
> I have no problems running it on Linux with Mono.
> Can somebody help me ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list