[Mono-osx] windows.forms (with mono daily binaries) on macos

matteot matteo.tesser at gmail.com
Tue Jul 22 12:07:47 EDT 2008


Thanks for the quick reply, but if I change DYLD_LIBRARY_PATH for
DYLD_FALLBACK_LIBRARY_PATH mono will not find any dll again.

Maybe I have express the problem in a not so clear way: I do not want to use
serveral verisons of libgdiplus, but only one, the one that is ok for mono
(the only software in my system using this library).  I installed the
macport version of libgdiplus, but I don't know if there are another
versions that  work better with the developement snapshot of mono. Do you
have some hint on this?
Thanks,
Matteo  


Geoff Norton-2 wrote:
> 
> 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
>> 
> 
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
> 
> 

-- 
View this message in context: http://www.nabble.com/windows.forms-%28with-mono-daily-binaries%29-on-macos-tp18584869p18592900.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list