[Mono-devel-list] Embedding paths in config files

Chris Ridd chris.ridd at isode.com
Sun Nov 14 03:35:20 EST 2004


Hi,

Apologies if you see this twice - I posted it on Friday morning and it seems
to have ended up at /dev/null. Certainly not the list archives ;-)

I hope this is the right place to ask this.

I'm using OS X, and gtk-sharp. OS X doesn't ship with GNOME, so the numerous
GNOME libs are typically built and installed in a location which the system
dynamic loader will not automatically search. (gtk-sharp is just a good
example of this general problem, I'm not picking on it for any other reason
:-)

This makes it quite annoying to run GTK# apps, as you have to fiddle with an
environment variable (OS X's equivalent to the ELF LD_LIBRARY_PATH) before
running.

As a fix, does it make sense to change the dllmaps in the gtk-sharp assembly
.config files to include the complete paths to the required native
libraries?

eg from

  <dllmap dll="libgtk-win32-2.0-0.dll"
     target="libgtk-x11-2.0.0.dylib"/>

to:

  <dllmap dll="libgtk-win32-2.0-0.dll"
     target="/opt/local/lib/libgtk-x11-2.0.0.dylib"/>

Cheers,

Chris





More information about the Mono-devel-list mailing list