[Gtk-sharp-list] running gtk# on mac os x

Chris Ridd chris.ridd@isode.com
Fri, 31 Dec 2004 08:26:02 +0000


On 23/12/04 8:50 pm, Alex C <alexchan.1976@gmail.com> wrote:

> Hi everybody,
> 
> I was able to download and install the mono framework on os x.  I
> followed the instructions on mono-project.com page to install
> gtk-sharp.   I compiled a hello world program and the compilation was
> sucessful.  i tried to run it .   i made sure that i set the
> DYLIB_LIBRARY_PATH correctly before i ran the file. I got this error.
> Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll
> in <0x000dc> (wrapper managed-to-native) Gtk.Application:gtk_init
> (int&,intptr&)in <0x0004c> Gtk.Application:Init ()
> in <0x00028> MainClass:Main (string[])
> 
> what did i do wrong?

1. You believed the instructions. They *should* say to set DYLD_LIBRARY_PATH
instead of DYLIB_LIBRARY_PATH. This bug's been pointed out many times :-(

2. You're using an unhelpful distribution of Mono. If you compile it
yourself from darwinports <http://darwinports.opendarwin.org/>, you avoid
having to mess with any environment settings.

Cheers,

Chris