On Thu, 2006-07-27 at 11:39 +0100, Hywel Thomas wrote: > Hello, > > I'm using Gtk# with the Mono 1.1.16.1 Windows installer, and all my programs > compile and run OK with Mono. If I compile under Visual Studio 2003, using > references to atk-sharp.dll, gdk-sharp.dll, gtk-sharp.dll, glib-sharp.dll, and > pango-sharp.dll (as defined in Mono-1.1.16.1\lib\pkgconfig\gtk-sharp-2.0.pc) > it > compiles with a warning 'The dependency 'Mono.Cairo' could not be found' but > still runs without any problem using VS.NET. This applies from the simplest > Gtk# program to a fairly extensive drawing application (NPlot). Can anyone > suggest why this warning appears under VS and not Mono? As far as I can see, > only gdk-sharp.dll has any reference to Mono.Cairo, but the Mono web pages say > that all Gtk# drawing now uses Cairo, so I would have thought that the > dependency was a critical one.
Gtk# doesn't do any drawing itself. It is a binding of the underlying Gtk+ libraries which do all the drawing directly through the native cairo library. Mono.Cairo is the managed binding for the native cairo library. You would only need it if you were using Cairo from managed code to scribble on windows. The missing warning in mcs is something you would need to raise on another list, maybe mono-devel-list. I assume what is happening there is that csc detects that gdk-sharp.dll depends on Mono.Cairo.dll but it doesn't know where to find it. We should also add that dep to the .pc file, I suppose. -- Mike Kestner <[EMAIL PROTECTED]> SUSEĀ® Linux Enterprise 10 Your Linux is ready www.novell.com/linux _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
