[Gtk-sharp-list] dependency Mono.Cairo not found when usingGtk# with Visual Studio

Hywel Thomas hywel at controlspecials.demon.co.uk
Fri Jul 28 09:41:17 EDT 2006

Many thanks for the clarification of what Mono.Cairo is, which explains why I
don't get any actual problems as a result.  Mono probably knows where to find
Mono.Cairo.dll, but I haven't explicitly included that path in my VS2003 setup,
hence the difference in warnings. It probably ought to go in the pc file, as you


Hywel Thomas

> -----Original Message-----
> From: Mike Kestner [mailto:mkestner at novell.com] 
> Sent: 27 July 2006 23:23
> To: hywel at controlspecials.demon.co.uk
> Cc: gtk-sharp-list at lists.ximian.com
> Subject: Re: [Gtk-sharp-list] dependency Mono.Cairo not found 
> when usingGtk# with Visual Studio
> On Thu, 2006-07-27 at 11:39 +0100, Hywel Thomas wrote:
> > Hello,
> > 
> > I'm using Gtk# with the Mono 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-\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  <mkestner at novell.com>
> SUSER Linux Enterprise 10
> Your Linux is ready
> www.novell.com/linux

More information about the Gtk-sharp-list mailing list