[Gtk-sharp-list] compiling gtk# on fink problems

alexander chan alexc@sporks.org
Wed, 31 Mar 2004 06:56:55 -0800 (PST)


hi,
i was able to compile gtk# from cvs sources.  the libraries were installed
into /usr/local.  I copied the hello world program from go-mono.org
website. by doing the following
mcs hellosharp.cs -r:/usr/local/lib/gtk-sharp -r:/usr/local/lib/glib-sharp

however, i try running it using mint i get the following error:
** (hellosharp.exe:434): WARNING **: Could not find assembly gtk-sharp
Can not open image hellosharp.exe

What should i be doing?
tia,
alex

On Tue, 30 Mar 2004, Robert Shade wrote:

> It's trying to use the JIT instead of the interpreter to run
> gapi-fixup.exe and gapi_codegen.exe.  I've seen this many times, but for
> some input it fails.
>
> However, the build files should be defaulting to use the interpreter on
> OS X.  Get the latest from CVS, re-run automake.sh, and try it again.
>
> rob
>
> alexander chan wrote:
>
> > Hi everybody,
> > I am trying to compile gtk#. I compiled mono using fink. i got the
> > following error.  my configure script argument is --prefix=/usr/local .
> > i have no idea what to do. any help is greatly appreciated
> >
> > -alex
> >
> > -------compiling using mono as runtime ---
> > make[1]: Nothing to be done for `all'.
> > mono ../parser/gapi-fixup.exe --api=pango-api.xml
> > --metadata=Pango.metadata && \
> > mono ../generator/gapi_codegen.exe --generate pango-api.xml     \
> > --outdir=generated --customdir=. --assembly-name=pango-sharp    \
> > && touch generated-stamp
> >
> > ** (../parser/gapi-fixup.exe:529): WARNING **: Shared memory sanity check
> > failed.
> >
> > ** (../parser/gapi-fixup.exe:529): WARNING **: Failed to attach shared
> > memory! Falling back to non-shared handles
> >
> > Unhandled Exception: System.ExecutionEngineException: SIGILL
> > make[1]: *** [generated-stamp] Error 1
> > make: *** [binding] Error 1
> >
> > ------compiling using mint error-----
> >
> > ** (../parser/gapi-fixup.exe:542): WARNING **: Shared memory sanity check
> > failed.
> >
> > ** (../parser/gapi-fixup.exe:542): WARNING **: Failed to attach shared
> > memory! Falling back to non-shared handles
> > Invalid api file.
> > System.Xml.XmlException: expected '>' (3E) but found '?' (FFFFFFFF) Line
> > 169, position 50.
> > #0: 0x0004c throw      in System.Xml.XmlTextReader::Expect ([62] )
> > #1: 0x00240 callvirt   in System.Xml.XmlTextReader::ReadStartTag ()
> > #2: 0x0005b callvirt   in System.Xml.XmlTextReader::ReadTag ()
> > #3: 0x00088 callvirt   in System.Xml.XmlTextReader::ReadContent ()
> > #4: 0x000f1 callvirt   in System.Xml.XmlTextReader::Read ()
> > #5: 0x00313 callvirt   in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] )
> > #6: 0x0013b callvirt   in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] )
> > #7: 0x0013b callvirt   in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] )
> > #8: 0x0013b callvirt   in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] )
> > #9: 0x0013b callvirt   in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] )
> > #10: 0x0001b callvirt   in System.Xml.XmlDocument::Load ([O:0xbfee0] )
> > #11: 0x00015 callvirt   in System.Xml.XmlDocument::Load ([O:0xa5e60] )
> > #12: 0x000bd callvirt   in GtkSharp.Parsing.Fixup::Main ([O:0x90c00] )
> >
> > make[1]: *** [generated-stamp] Error 1
> > make: *** [binding] Error 1
> > ---------------------------------------------
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>