[Mono-osx] libgdiplus with MonoMac
Geoff Norton
gnorton at novell.com
Sat Feb 26 17:38:34 EST 2011
Are you running the latest MonoMac addin? This was fixed in the last preview.
If you are, please file a bug with a test case.
-g
On 2011-02-26, at 2:16 PM, Clay Fowler wrote:
> We're using the drawing bridge to do libgdiplus drawing in custom Cocoa views (which is *wonderful*), and everything works great when run from MonoDevelop. But when trying to run the app bundle outside of MonoDevelop we always get some variation of the problem below when we call NSApplication.InitDrawingBridge() (it looks like libgdiplus wants to find a function called uname in libc, but Mono can't find libc.dylib):
>
> Mono: DllImport loading: '/Library/Frameworks/Mono.framework/Versions/2.10/lib/libgdiplus.dylib'.
> Mono: Searching for 'GdiplusStartup'.
> Mono: Probing 'GdiplusStartup'.
> Mono: Found as 'GdiplusStartup'.
> Mono: DllImport attempting to load: 'libc.dylib'.
> Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/libc.dylib'.
> Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/libc.dylib, 9): image not found'.
> Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/libc.dylib'.
> Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/libc.dylib, 9): image not found'.
> Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/libc.dylib.so'.
> Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/VersiSystem.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.G
> DIPlus ---> System.DllNotFoundException: libc.dylib
> at (wrapper managed-to-native) System.Drawing.GDIPlus:uname (intptr)
> at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at (wrapper managed-to-native) System.Reflection.MonoField.SetValueInternal (System.Reflection.FieldInfo,object,object) <0x00003>
> at System.Reflection.MonoField.SetValue (object,object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo) <0x000d3>
> at System.Reflection.FieldInfo.SetValue (object,object) <0x00022>
> at MonoMac.AppKit.NSApplication.InitDrawingBridge () <0x00087>
> at SteamPunkMacHost.AnnotationView.DrawRect (System.Drawing.RectangleF) <0x0001f>
> at (wrapper dynamic-method) object.[SteamPunkMacHost.AnnotationView.Void DrawRect(RectangleF)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,System.Drawing.RectangleF) <0x0004e>
> at (wrapper native-to-managed) object.[SteamPunkMacHost.AnnotationView.Void DrawRect(RectangleF)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,System.Drawing.RectangleF) <0x000c9>
> at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (intptr,intptr) <0x00003>
> at MonoMac.AppKit.NSWindowController.get_Window () <0x00081>
> at SteamPunkMacHost.MainWindowController.get_Window () <0x00015>
> at SteamPunkMacHost.AppDelegate.FinishedLaunching (MonoMac.Foundation.NSObject) <0x00047>
>
> Any ideas?
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110226/75c744d6/attachment.html
More information about the Mono-osx
mailing list