[Gtk-sharp-list] Windows Linux compatibility

Bertrand Lorentz bertrand.lorentz at gmail.com
Mon Dec 9 20:40:40 UTC 2013


On Mon, Dec 9, 2013 at 11:48 AM, Alpha Page <alphapage at gmail.com> wrote:
> Hello,
> I've run a test application in Windows (just need to add a new environment
> variable %MonoDir%\bin just after installation of Mono + GTK# : seems to be
> a long running problem). No problem.
> When trying to run on Linux (openSuse 13.10), mono tries to find
> libglib-2.0-0.dll ,so libglib-2.0-0.so . libglib-2_0-0 package is installed,
> but add libglib-2.0.so to usr/lib64 : mono can't find the file because of
> this naming problem.

I'm not sure I understand the problem on Linux:
The source code references libglib-2.0-0.dll, but mono uses the
.config file corresponding to the assembly (for example
glib-sharp.dll.config) to determine the name of the native library. On
my Ubuntu system, glib-sharp.dll.config contains this line, amongst
  <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>

Then, the native library is found the usual way on Linux. It's the
responsibility of the distro and packages to set up things correctly
so that last step works.

So I don't think Gtk# is doing anything wrong here, unless I'm missing


More information about the Gtk-sharp-list mailing list