[Mono-osx] windows.forms (with mono daily binaries) on macos
Geoff Norton
gnorton at novell.com
Tue Jul 22 10:37:23 EDT 2008
Matteot,
You have a few problems here:
#1 You cannot mix and match gdi+ versions with mono versions.
#2 You cannot use DYLD_LIBRARY_PATH because of symbol conflicts, you
must use DYLD_FALLBACK_LIBRARY_PATH. Note its completely unsupported
due to #1 tho
-g
On Tue, 2008-07-22 at 01:40 -0700, matteot wrote:
> Hi, I'm trying to use the daily binaries version of mono, but I have problems
> to run windows.forms programs on osx 10.5 (console applications works
> well). The problem is due to the integration with libgdi plus (I have
> installed it using macports). without modifying the .profile configuration,
> I obtain the following error when launching a WF app (the dynamic library is
> not found)
>
> Unhandled Exception: System.TypeInitializationException: An exception was
> thrown by the type initializer for System.Drawing.GDIPlus --->
> System.DllNotFoundExcep tion: gdiplus.dll
> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> at System.Drawing.GDIPlus..cctor () [0x00000]
>
>
> but if I add the following line in the .profile (as suggested in a tutorial)
>
> export DYLD_LIBRARY_PATH=/opt/local/lib:$DYLD_LIBRARY_PATH
>
> I obtain the following:
>
> dyld: Symbol not found: __cg_jpeg_resync_to_restart
> Referenced from:
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
> Expected in: /opt/local/lib/libJPEG.dylib
>
>
> There are other ways to make mono see libgdiplus correctly?
> Thank you,
> Matteo
>
More information about the Mono-osx
mailing list