[Mono-list] [OSX][WinForms] DllNotFoundException on "libgdiplus.dylib", but library installed

Tarnyko tarnyko at yahoo.fr
Thu Jan 6 12:12:23 EST 2011


Hi folks, 

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:
/Library/Frameworks/Mono.framework/Versions/2.8.1/lib/libgdiplus.dylibI
turned on debug to have more details : 
Mono: DllImport loading location:
'/Library/Frameworks/Mono.framework/Versions/2.8.1/lib/libgdiplus.dylib' 
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 
/Library/Frameworks/Mono.framework/Versions/2.8.1/lib 
# 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 ?
-- 
View this message in context: http://mono.1490590.n4.nabble.com/OSX-WinForms-DllNotFoundException-on-libgdiplus-dylib-but-library-installed-tp3177792p3177792.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list