[Mono-list] gtkSharpNotification, PKG_CONFIG_PATH, and missing dlls - Please Help

Dave Ludwigsen palamangelus at gmail.com
Wed Apr 19 13:45:29 EDT 2006


 This is my first posting to this list (I also posted this to mono-devel -
sorry if you belong to both), so hello, and hope I'm not out of line with
anything.

I'm in the midst of putting together an OSX/Win application and am new to
Mono/Gtk/Cocoa development (although not new to c/++/# or windows
development). I'm receiving the following error when trying to run mono
TrayTest.exe from the following source (after downloading both and
compiling). http://www.mono-project.com/GtkSharpNotificationIcon

<error>
unhandled exception : system.dllnotfoundexception:gdk-x11-2.0 in <wrapper
managed to native> Egg.TrayIcon:gdk_x11_display_get_display<intptr>
</error>

1) I have mono version 1.1.14 installed.
2) I'm using cygwin, have all -devel packages installed and can see
gdk-x11-2.0.pc in /lib/pkgconfig.
3) PKG_CONFIG_PATH is set and looks like this :
/usr/X11R6/lib/pkgconfig:/lib/pkgconfig:/bin/Mono-1.1.14/lib/pkgconfig (mono
is installed in c:/cygwin/bin)
4) If I run pkg-config --libs gdk-x11-2.0, I get "Package gdk-x11-2.0 was
not found in the pkg-config search path."
5) I turned on PKG_CONFIG_DEBUG_SPEW, and I get the following as a dump :
"Cannot open directory '/usr/X11R6/lib/pkgconfig:/lib/pkgconfig:/bin/Mono-
1.1.14/lib/pkgconfig' in package search path: No such file or directory.

I changed PKG_CONFIG_PATH to using the windows paths
'c:\cygwin\lib\pkgconfig...' and was able to get pkg-config --libs to return
the correct information. However, when running mono TrayTest.exe, I received
the same message.

I've scoured the web and read through the blogs of the authors and the only
thing I've found is to have the correct libraries installed. I found a few
things in gnome to install both the gtk+ devel and glib -devel libraries,
but I have (I believe), all the .pc files installed (from the error messages
it just looks like pkg-config isn't looking in the right spot).

Or if anyone has another idea as to how to get a notification area up and
running on win/osX, I'd be much obliged.

Any help or advice would be greatly appreciated. Thanks! ...Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060419/87c27ca9/attachment.html


More information about the Mono-list mailing list