[Mono-list] building gtk# 1.0
Brice V.
brice.vissiere@free.fr
Wed, 07 Jul 2004 23:35:35 +0200
Dan Berger wrote:
> I've been unable to get gtk# to build successfully on Fedora Core 2 -
> unwind the tarball, configure it like this:
> ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
> --infodir=/usr/share/info --localstatedir=/var
>
> and make craps out with the following error:
>
> Making all in rsvg
> make[3]: Entering directory `/tmp/dberger/gtk-sharp-1.0/sample/rsvg'
> /usr/bin/mcs /out:svghelloworld.exe ./svghelloworld.cs
> /r:../../glib/glib-sharp.dll /r:../../pango/pango-sharp.dll
> /r:../../atk/atk-sharp.dll /r:../../gdk/gdk-sharp.dll
> /r:../../gtk/gtk-sharp.dll /r:../../rsvg/rsvg-sharp.dll
>
> ** (/usr/lib/mono/1.0/mcs.exe:9637): WARNING **: Could not find assembly
> art-sharp, references from
> /tmp/dberger/gtk-sharp-1.0/sample/rsvg/../../rsvg/rsvg-sharp.dll
> (assemblyref_index=3)
> Major/Minor: 1,0
> Build: 0,0
> Token: 35e10195dab3c99f
>
>
> ** (/usr/lib/mono/1.0/mcs.exe:9637): WARNING **: Could not find assembly
> art-sharp, references from
> /tmp/dberger/gtk-sharp-1.0/sample/rsvg/../../rsvg/rsvg-sharp.dll
> (assemblyref_index=3)
> Major/Minor: 1,0
> Build: 0,0
> Token: 35e10195dab3c99f
>
> error CS0006: Cannot find assembly `../../rsvg/rsvg-sharp.dll'
> Log:
>
> Compilation failed: 1 error(s), 0 warnings
> make[3]: *** [svghelloworld.exe] Error 1
> make[3]: Leaving directory `/tmp/dberger/gtk-sharp-1.0/sample/rsvg'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/dberger/gtk-sharp-1.0/sample'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/dberger/gtk-sharp-1.0'
> make: *** [all] Error 2
>
> .98 built (and still builds) just fine. Any suggestions?
>
> --
>
> ...Dan Berger [dberger@oubliette.org]
> http://www.oubliette.org/~dberger
> Inter arma silent leges
> A982 E6B1 CB2F 7A49 843A 9297 DA73 4371 1F54 8D0C
>
> "You cheated!"
> "*Pirate*."
>
> - Turner and Sparrow, "Pirates of the Caribbean"
>
On my Mandrake 10.0, I was stuck with the same error (with
--prefix=/opt/mono)
I made a copy of art/art-sharp.dll and rsvg/rsvg-sharp.dll in
gtk-sharp-1.0/sample/rsvg
Then I modified sample/rsvg/Makefile.
I changed
assemblies = ../../glib/glib-sharp.dll ../../pango/pango-sharp.dll
../../atk/atk-sharp.dll ../../gdk/gdk-sharp.dll ../../gtk/gtk-sharp.dll
../../rsvg/rsvg-sharp.dll
into
assemblies = ../../glib/glib-sharp.dll ../../pango/pango-sharp.dll
../../atk/atk-sharp.dll ../../gdk/gdk-sharp.dll ../../gtk/gtk-sharp.dll
rsvg-sharp.dll
After, gtk-sharp built successfully.
Pretty ugly but it worked.
Brice
--
Brice Vissière :: http://brice.vissiere.free.fr
** brice.vissiere_NOSPAM@free.fr **
..ooOO registered linux user #134054 OOoo...
Enjoy the life and Drive Blind