[Mono-devel-list] MONO: Missing libs or bug!?
Tiago Lima
tiago.lima at vianw.pt
Thu Oct 16 11:07:41 EDT 2003
Hi,
I've noticed this problem with mono (the file BitmapTest is in attachement):
In Suse8.2...
# mcs --version
Mono C# compiler version 0.27.0.0
# mono --version
Mono JIT compiler version 0.28, (C) 2002, 2003 Ximian, Inc.
# mcs -r:System.Drawing BitmapTest.cs
Compilation succeeded
# mono BitmapTest.exe
sysdrawconfig["Implementation"] is null
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk_pixbuf-2.0.so (libgdk_pixbuf-2.0.so): ./libgdk_pixbuf- 2.0.so:
cannot open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk_pixbuf-2.0.so (libgdk_pixbuf-2.0.so): ./libgdk_pixbuf- 2.0.so:
cannot open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk_pixbuf-2.0.so (libgdk_pixbuf-2.0.so): ./libgdk_pixbuf- 2.0.so:
cannot open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk_pixbuf-2.0.so (libgdk_pixbuf-2.0.so): ./libgdk_pixbuf- 2.0.so:
cannot open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk_pixbuf-2.0.so (libgdk_pixbuf-2.0.so): ./libgdk_pixbuf- 2.0.so:
cannot open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk-x11-2.0.so (libgdk-x11-2.0.so): ./libgdk-x11-2.0.so: cannot
open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk-x11-2.0.so (libgdk-x11-2.0.so): ./libgdk-x11-2.0.so: cannot
open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgdk-x11-2.0.so (libgdk-x11-2.0.so): ./libgdk-x11-2.0.so: cannot
open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgobject-2.0.so (libgobject-2.0.so): ./libgobject-2.0.so:
cannot open shared object file: No such file or directory
** (BitmapTest.exe:32138): WARNING **: Failed to load library
./libgobject-2.0.so (libgobject-2.0.so): ./libgobject-2.0.so:
cannot open shared object file: No such file or directory
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for Gdk.Pixbuf --->
System.MissingMethodException: A missing method exception has occurred.
in <0x00042> (wrapper managed-to-native) Gdk.Helpers:Init (int,intptr)
in <0x0002a> Gdk.Pixbuf:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_raise_exception+0x20)
[0x40096639]
in (unmanaged)
/opt/gnome2/lib/libmono.so.0(mono_runtime_class_init+0x286) [0x40093207]
in (unmanaged) /opt/gnome2/lib/libmono.so.0 [0x40044ded]
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_compile_method+0x49)
[0x40093311]
in (unmanaged)
/opt/gnome2/lib/libmono.so.0(mono_arch_create_jit_trampoline+0xf5)
[0x400842b0]
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_class_vtable+0x5aa)
[0x40093d25]
in (unmanaged) /opt/gnome2/lib/libmono.so.0 [0x40044de4]
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_compile_method+0x49)
[0x40093311]
in (unmanaged)
/opt/gnome2/lib/libmono.so.0(mono_arch_create_jit_trampoline+0xf5)
[0x400842b0]
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_arch_patch_code+0x1ca)
[0x4008025a]
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_codegen+0x38d)
[0x40043957]
in (unmanaged) /opt/gnome2/lib/libmono.so.0 [0x400444d8]
in (unmanaged) /opt/gnome2/lib/libmono.so.0 [0x40044d06]
in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_compile_method+0x49)
[0x40093311]
in (unmanaged) /opt/gnome2/lib/libmono.so.0 [0x4002d938]
in <0x00065> (wrapper remoting-invoke-with-check)
System.Drawing.Cairo.Bitmap:CommonInit (int,int,bool)
in <0x00019> System.Drawing.Cairo.Bitmap:CommonInit (int,int)
in <0x00061> (wrapper remoting-invoke-with-check)
System.Drawing.Cairo.Bitmap:CommonInit (int,int)
in <0x00029> System.Drawing.Cairo.Bitmap:.ctor (int,int)
in <0x00061> (wrapper remoting-invoke-with-check)
System.Drawing.Cairo.Bitmap:.ctor (int,int)
in <0x00027> System.Drawing.Cairo.BitmapFactory:Bitmap (int,int)
in <0x00034> System.Drawing.Bitmap:.ctor (int,int)
in <0x00061> (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:.ctor (int,int)
in <0x00032> BitmapTest.BitmapTester:Main (string[])
#
Am I missing some libs here?
I've installed using YaST the gdk-pixbuf package:
gdk-pixbuf - A library for fast pixelmanipulation
Version: 0.18.0-248 Installed: 0.18.0-248 Size: 874.6 kB Media No.: 1
License: GPL
Package Group: System/Libraries
Provides: gdk_pix, libgdk_pixbuf.so.2, libgdk_pixbuf_xlib.so.2,
libgnomecanvaspixbuf.so.1,
libpixbufloader-bmp.so.1, libpixbufloader-gif.so.1,
libpixbufloader-ico.so.1, libpixbufloader-jpeg.so.1,
...
Notice the file <libgdk_pixbuf.so.2> has a different name... So I "ln -s
..." on it...
I try to do it for the remaining package errors but...
#mono BitmapTest.exe
sysdrawconfig["Implementation"] is null
(<unknown>:32760): Gdk-WARNING **: cannot open display: (null)
Did I something wrong ? (like wrong libs ??)
Tiago Lima
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitmapTest.cs
Type: application/octet-stream
Size: 172 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031016/2e1bb26b/attachment.obj
More information about the Mono-devel-list
mailing list