|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
windows.forms (with mono daily binaries) on macosHi, 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 |
|
|
Re: windows.forms (with mono daily binaries) on macosMatteot,
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@... http://lists.ximian.com/mailman/listinfo/mono-osx |
|
|
Re: windows.forms (with mono daily binaries) on macosThanks 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
|
|
|
Re: windows.forms (with mono daily binaries) on macosMatteo,
I guess I wasn't clear enough in my original mail. You cannot do what you are trying to do. If you want to use SVN mono, you need SVN GDI+ -g On Tue, 2008-07-22 at 09:07 -0700, matteot wrote: > 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@... > > http://lists.ximian.com/mailman/listinfo/mono-osx > > > > > _______________________________________________ Mono-osx mailing list Mono-osx@... http://lists.ximian.com/mailman/listinfo/mono-osx |
|
|
Re: windows.forms (with mono daily binaries) on macosThanks,
M.
|
| Free embeddable forum powered by Nabble | Forum Help |