[Gtk-sharp-list] Male Gtk# come with program
Jonathan Pryor
jonpryor at vt.edu
Sun Feb 12 15:04:35 EST 2006
On Sun, 2006-02-12 at 19:42 +0100, Thomas Pryds Lauritsen wrote:
> Hi
>
> I have made a small GUI program in C# / Gtk# that runs fine on my Ubuntu
> installation. I'd like the program to also run on other distributions,
> and even Windows (using either mono or MS .NET), if possible without
> forcing the user to install Gtk# first. Can this be done? Someone told
> me that I can just copy the appropriate dlls to the same dir as the .exe
> file but that doesn't seem to work properly when I test it on a Fedora
> Core 3 installation with mono.
This is correct, but only partially.
You need all of:
- The assemblies you use (gtk-sharp.dll, etc.)
- The .config files for those assemblies (gtk-sharp.dll.config, etc.
-- and those are located in the GAC, not in the
$prefix/lib/mono/gtk-sharp-2.0 directory.
- All "glue" libraries, e.g. /usr/lib/libgtksharpglue.so
Because of the last one, you'll need to use a shell-script to invoke
your program, and within that script you'll need to set LD_LIBRARY_PATH
to include the directory that contains those "glue" libraries.
Furthermore (again, because of the glue libs), this will only work for
Linux distros; you won't be able to use the same "bundle" with Win32, as
you'll need the win32 glue libraries as well.
In short, it's possible (or should be), but it's not easy.
- Jon
More information about the Gtk-sharp-list
mailing list