[Mono-dev] Problems with gtk# on a mandriva system.

Jonathan Pryor jonpryor at vt.edu
Mon Jul 24 05:34:02 EDT 2006

On Sun, 2006-07-23 at 23:27 +1000, Peter Nunn wrote:
> I've just tried to install mono on a mandriva system and so far most of it 
> seems to be working, but..  I can't get gtk# working.
> If I do
>  mcs SimpleApp.cs  -pkg:gtk-sharp

You want -pkg:gtk-sharp-2.0.  gtk-sharp is Gtk# 1.0, which is (1)
_ancient_, and (2) only targets GTK+ 2.2 (before the new-and-improved
file selection dialog).  gtk-sharp-2.0 is Gtk# 2.4/2.6/2.8/etc., which
binds the identically named GTK+ version.

> pkg-config --version gtk-sharp returns 0.19 (which I don't understand since it 
> can't be found at other times).

`pkg-config --version` gives the version of pkg-config, not the version
of the specified package.  If --version is specified, just like --help,
all other parameters are ignored.

 - Jon

More information about the Mono-devel-list mailing list