[Mono-list] Compiling gtkmozembed-sharp from svn
Dave Murphy
dave@schwuk.com
Fri, 18 Feb 2005 12:38:08 +0000
On Fri, 2005-02-18 at 10:06 +0000, Dave Murphy wrote:
> I'm compiling gtkmozembed-sharp from svn, and get the following error:
>
> /usr/local/bin/mcs -L ..//gtkmozembed \
> -r gecko-sharp.dll \
> -pkg:gtk-sharp-2.0 ./WebThumbnailer.cs \
> -o WebThumbnailer.exe
> ./WebThumbnailer.cs(12) error CS0246: The namespace `Gtk' can not be found (missing assembly reference?)
> Try using -pkg:gtk-sharp
> Compilation failed: 1 error(s), 0 warnings
>
> mono, mcs, gtk-sharp (1.0 and 2.0) have all compiled successfully, with
> --prefix=/usr/local. Any ideas where I should start looking?
Ok, I've got more info on this now...
Even though I've got /usr/local/lib/pkgconfig in PKG_CONFIG_PATH, I
can't compile *any* apps that use -pkg:gtk-sharp (or gtk-sharp-2.0 for
that matter). I *can* compile a simple Gtk# app (example 4-1 from "Mono:
A Developers Notebook") using:
$ mcs Main.cs -r:/usr/local/lib/mono/gtk-sharp/gtk-sharp.dll
The reference is cut'n'pasted from the output of:
$ pkg-config --libs gtk-sharp
So, why can I compile with explicit -r: references, and not -pkg:
references? Are there some more environment variables I should be
setting?
Cheers,
--
Dave Murphy <dave@schwuk.com>