[Mono-dev] MimeIcon.cs

Phillip Neumann phillip at sofsis.cl
Wed Dec 6 14:13:42 EST 2006


Hello.

I was trying to run MoMA (1.1) with mono 1.2.2, and i needed to do this
for make it work:

---
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs.orig
Wed Dec  6 15:06:58 2006
+++ mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
Wed Dec  6 15:27:58 2006
@@ -394,7 +394,7 @@
                [DllImport(librsvg)]
                static extern IntPtr rsvg_pixbuf_from_file_at_size
(string file_name, int  width, int  height, out IntPtr error);
                
-               [DllImport(libgdk)]
+               [DllImport("libgdk_pixbuf-2.0.so")]
                static extern bool gdk_pixbuf_save_to_buffer (IntPtr
pixbuf, out IntPtr buffer, out UIntPtr buffer_size, string type, out
IntPtr error, IntPtr option_dummy);
                



It looks like gdk_pixbuf_save_to_buffer is not defined in libgdk. It
lives in libgdk_pixbuf (in here at least)


good luck!

-- 
__________________

KillFill


-------------- next part --------------
Mono-INFO: DllImport attempting to load: 'libgtk-x11-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgtk-x11-2.0.so.0'.
Mono-INFO: Searching for 'gtk_icon_theme_load_icon'.
Mono-INFO: Probing 'gtk_icon_theme_load_icon'.
Mono-INFO: Found as 'gtk_icon_theme_load_icon'.
Mono-INFO: DllImport attempting to load: 'libgdk-x11-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgdk-x11-2.0.so.0'.
Mono-INFO: Searching for 'gdk_init_check'.
Mono-INFO: Probing 'gdk_init_check'.
Mono-INFO: Found as 'gdk_init_check'.
Mono-INFO: DllImport attempting to load: 'libgtk-x11-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgtk-x11-2.0.so.0'.
Mono-INFO: Searching for 'gtk_icon_theme_get_default'.
Mono-INFO: Probing 'gtk_icon_theme_get_default'.
Mono-INFO: Found as 'gtk_icon_theme_get_default'.
Mono-INFO: DllImport attempting to load: 'libgdk-x11-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgdk-x11-2.0.so.0'.
Mono-INFO: Searching for 'gdk_pixbuf_save_to_buffer'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_buffer'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_buffer'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_bufferA'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_bufferA'.
Mono-INFO: DllImport attempting to load: 'libglib-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libglib-2.0.so.0'.
Mono-INFO: Searching for 'g_free'.
Mono-INFO: Probing 'g_free'.
Mono-INFO: Found as 'g_free'.
Mono-INFO: DllImport attempting to load: 'libgobject-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgobject-2.0.so.0'.
Mono-INFO: Searching for 'g_object_unref'.
Mono-INFO: Probing 'g_object_unref'.
Mono-INFO: Found as 'g_object_unref'.
Mono-INFO: DllImport attempting to load: 'libgdk-x11-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgdk-x11-2.0.so.0'.
Mono-INFO: Searching for 'gdk_pixbuf_save_to_buffer'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_buffer'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_buffer'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_bufferA'.
Mono-INFO: Probing 'gdk_pixbuf_save_to_bufferA'.
System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.MimeIconEngine ---> System.EntryPointNotFoundException: gdk_pixbuf_save_to_buffer
  at (wrapper managed-to-native) System.Windows.Forms.GnomeUtil:gdk_pixbuf_save_to_buffer (intptr,intptr&,uintptr&,string,intptr&,intptr)
  at System.Windows.Forms.GnomeUtil.GdkPixbufToImage (IntPtr pixbuf) [0x0000c] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs:492 
  at System.Windows.Forms.GnomeUtil.GetIcon (System.String icon, Int32 size) [0x00032] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs:482 
  at System.Windows.Forms.GnomeHandler.AddGnomeIcon (System.String internal_mime_type, System.String name) [0x00013] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs:322 
  at System.Windows.Forms.GnomeHandler.CreateUIIcons () [0x00000] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs:298 
  at System.Windows.Forms.GnomeHandler.Start () [0x00000] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs:291 
  at System.Windows.Forms.MimeIconEngine..cctor () [0x00104] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs:111 --- End of inner exception stack trace ---

  at <0x00000> <unknown method>
  at System.Windows.Forms.UnixFileSystem..ctor () [0x000a8] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs:3195 
  at System.Windows.Forms.MWFVFS..ctor () [0x00032] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs:2761 
  at System.Windows.Forms.FileDialog..ctor () [0x000d1] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs:118 
  at System.Windows.Forms.OpenFileDialog..ctor () [0x00000] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/OpenFileDialog.cs:38 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.OpenFileDialog:.ctor ()
  at MoMA.MainForm.AssemblyAddButton_Click (System.Object sender, System.EventArgs e) [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0000b] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4381 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x0002a] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:96 
  at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x000a1] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:473 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x00000] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:100 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00326] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4091 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00055] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:528 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:113 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:183 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x0006b] in ./mono-1.2.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:171 
Mono-INFO: DllImport attempting to load: 'gdiplus.dll'.
Mono-INFO: DllImport loading location: 'libgdiplus.dll.so'.
Mono-INFO: DllImport error loading library: 'Shared object "libgdiplus.dll.so" not found, required by "mono"'.
Mono-INFO: DllImport loading library: './libgdiplus.dll.so'.
Mono-INFO: DllImport error loading library 'Cannot open "./libgdiplus.dll.so"'.
Mono-INFO: DllImport loading: 'gdiplus.dll'.
Mono-INFO: DllImport error loading library 'Shared object "gdiplus.dll" not found, required by "mono"'.
Mono-INFO: DllImport loading location: 'libgdiplus.so'.
Mono-INFO: Searching for 'GdipDeleteFontFamily'.
Mono-INFO: Probing 'GdipDeleteFontFamily'.
Mono-INFO: Found as 'GdipDeleteFontFamily'.


More information about the Mono-devel-list mailing list