[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mono tutorial --> gtk-sharp?



On Fri, Jul 02, 2004 at 09:52:10PM -0400, Kevin Mark wrote:
> On Sat, Jul 03, 2004 at 01:21:45AM +0100, Thomas Adam wrote:
> > --- Tom <tom@abwaerts.be> wrote: 
> > 
> > > Today, I thought I'd give the Mono/Gtk# tutorial at 
> > > www.gotmono.com/docs/gnome/bindings/gtk-sharp/getstart.html a shot, but 
> > > compiling the very first tiny example yields errors (about not finding 
> > > the assemblies 'gtk-sharp.dll' and 'glib-sharp.dll'. 
> > 
> > Well, according to 'apt-file':
> > 
> > [n6tadam@station ruby]$ apt-file search gtk-sharp.dll
> > gtk-sharp: usr/lib/gtk-sharp.dll
> > gtk-sharp: usr/lib/gtk-sharp.dll
> > 
> > So that's something. I'd then look at the way it compiles, making sure
> > thatg the paths are correct, etc...
> > 
> > -- Thomas Adam
> > 
> Hi Thomas,
> I had no problem on the last release, so my guess is that its a library
> path problem. Which from my small time with Mono is related to the .pc
> files.
> I wrote a shell script to compile these examples.
> 
> -------------------------------------------
> compile.sh
> -------------------------------------------
> #!/bin/sh
> X=/usr/share/dotnet/mono/gtk-sharp mcs --unsafe -r $X/art-sharp.dll -r $X/gnome-sharp.dll -r $X/glib-sharp.dll -r $X/pango-sharp.dll -r $X/atk-sharp.dll -r $X/gdk-sharp.dll -r $X/gtk-sharp.dll -r $X/glade-sharp.dll $1 
> -------------------------------------------
> $1 is the program.
> 
> Here is gnome-sharp.pc
> ---------------------
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> 
> 
> Name: Gnome#
> Description: Gnome# - GNOME .NET Binding
> Version: 0.98
> Requires: gtk-sharp art-sharp
> Libs: -r:${libdir}/mono/gtk-sharp/gnome-sharp.dll
> ---------------------
> It would appear that $libdir should be '/usr/share/dotnet' but I'm not
> sure of the whole thing?!
> -Kev
> -- 
I just forgot about some gnome stuff I did a while ago.
This is mo' better.

mcs `pkg-config --libs gtk-sharp` monotest.cs 

-Kev
-- 

        (__)
        (oo)
  /------\/
 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...

Attachment: signature.asc
Description: Digital signature


Reply to: