« Return to Thread: windows.forms (with mono daily binaries) on macos

windows.forms (with mono daily binaries) on macos

by matteot :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: windows.forms (with mono daily binaries) on macos