[Gtk-sharp-list] Make Gtk# come with program
Thomas Pryds Lauritsen
pryds at duckburg.dk
Mon Feb 13 04:09:31 EST 2006
Jonathan Pryor wrote:
> Just as a sanity check, does /home/thomas/temp/DizniLogsTest/ contain
> the file libgtksharpglue-2.so? If it doesn't, that would explain the
> error.
It does indeed---that's what puzzles me a bit:
[thomas at thorn DizniLogsTest]$ pwd
/home/thomas/temp/DizniLogsTest
[thomas at thorn DizniLogsTest]$ ll libgtksharpglue-2.so
-rw-r--r-- 1 thomas thomas 23584 Feb 12 21:51 libgtksharpglue-2.so
> If you do have libgtksharpglue-2.so in that directory, you're going to
> need more information. Run mono with MONO_LOG_LEVEL=info
> MONO_LOG_MASK=dll set, and send the trace output, e.g.
>
> $ MONO_LOG_LEVEL=info MONO_LOG_MASK=dll mono DizniLogs.exe
>
> Given the above output below, you *do* have libgtksharpglue-2.so, so you
> should attach the trace output generated from the above command.
Ah, this is nice, indeed! Now I get a detailled description of which
libraries are loaded, and it seemed that I missed libpangocairo-1.0.so.0
and libcairo.so.2 . After copying those two files, it works great. And
with the logging on, mono tells me exactly which libraries are loaded,
so I should be able to use that to remove the unused files. Great, thank
you a lot!
Thomas
NB. FYI, here's the output:
[thomas at thorn DizniLogsTest]$ MONO_LOG_LEVEL=info MONO_LOG_MASK=dll mono
DizniLogs.exe
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_type_init'.
Mono-INFO: Probing 'g_type_init'.
Mono-INFO: Found as 'g_type_init'.
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_boxed_type_register_static'.
Mono-INFO: Probing 'g_boxed_type_register_static'.
Mono-INFO: Found as 'g_boxed_type_register_static'.
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_malloc'.
Mono-INFO: Probing 'g_malloc'.
Mono-INFO: Found as 'g_malloc'.
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: 'glibsharpglue-2'.
Mono-INFO: DllImport loading location: 'libglibsharpglue-2.so'.
Mono-INFO: Searching for 'gtksharp_object_newv'.
Mono-INFO: Probing 'gtksharp_object_newv'.
Mono-INFO: Found as 'gtksharp_object_newv'.
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_tree_store_get_type'.
Mono-INFO: Probing 'gtk_tree_store_get_type'.
Mono-INFO: Found as 'gtk_tree_store_get_type'.
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_tree_store_set_column_types'.
Mono-INFO: Probing 'gtk_tree_store_set_column_types'.
Mono-INFO: Found as 'gtk_tree_store_set_column_types'.
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_init'.
Mono-INFO: Probing 'gtk_init'.
Mono-INFO: Found as 'gtk_init'.
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_window_new'.
Mono-INFO: Probing 'gtk_window_new'.
Mono-INFO: Found as 'gtk_window_new'.
Mono-INFO: DllImport attempting to load: 'gtksharpglue-2'.
Mono-INFO: DllImport loading location: 'libgtksharpglue-2.so'.
Mono-INFO: DllImport error loading library: 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libgtksharpglue-2.so'.
Mono-INFO: DllImport error loading library 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'gtksharpglue-2'.
Mono-INFO: DllImport error loading library 'gtksharpglue-2.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport loading location: 'libgtksharpglue-2'.
Mono-INFO: DllImport error loading library: 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libgtksharpglue-2'.
Mono-INFO: DllImport error loading library 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'libgtksharpglue-2'.
Mono-INFO: DllImport error loading library 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
(<unknown>:15090): Mono-WARNING **: DllImport unable to load library
'libpangocairo-1.0.so.0: cannot open shared object file: No such file or
directory'.
Mono-INFO: DllImport attempting to load: 'gtksharpglue-2'.
Mono-INFO: DllImport loading location: 'libgtksharpglue-2.so'.
Mono-INFO: DllImport error loading library: 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libgtksharpglue-2.so'.
Mono-INFO: DllImport error loading library 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'gtksharpglue-2'.
Mono-INFO: DllImport error loading library 'gtksharpglue-2.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport loading location: 'libgtksharpglue-2'.
Mono-INFO: DllImport error loading library: 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libgtksharpglue-2'.
Mono-INFO: DllImport error loading library 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'libgtksharpglue-2'.
Mono-INFO: DllImport error loading library 'libpangocairo-1.0.so.0:
cannot open shared object file: No such file or directory'.
(<unknown>:15090): Mono-WARNING **: DllImport unable to load library
'libpangocairo-1.0.so.0: cannot open shared object file: No such file or
directory'.
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for Gtk.Container --->
System.DllNotFoundException: gtksharpglue-2
in (wrapper managed-to-native)
Gtk.Container:gtksharp_gtk_container_get_focus_child_offset ()
in <0x0000a> Gtk.Container:.cctor ()--- End of inner exception stack
trace ---
in <0x00000> <unknown method>
in <0x0000e> Gtk.Bin:.ctor (IntPtr raw)
in <0x0002f> Gtk.Window:.ctor (WindowType type)
in <0x0000c> Gtk.Window:.ctor (System.String title)
in <0x000d6> MyProgram:.ctor (System.String[] args)
in <0x00019> MainClass:Main (System.String[] args)
More information about the Gtk-sharp-list
mailing list