[Mono-winforms-list] SharpChess

Alessandro eklypse+mono at gmail.com
Wed Dec 5 17:11:02 EST 2007


Hi Aatdark,

The source of my problems at this point is mono.  I've installed mono and
monodevelop on this Debian box (running KDE), downloaded the SharpChess
source code, opened that project in MonoDevelop, and attempted to run it
without changing anything.  I realize it's probably naive of me to think it
might work right out of the box like that, but I thought I'd give it a try.
I receive the following error which is quite beyond me, though it makes me
wonder if perhaps what I need to do is install some more libraries:

Building Solution SharpChess
>
> Building Project: SharpChess (Debug|Any CPU)
> Performing main compilation...
> Compiling resource /home/eklypse/Desktop/SharpChess/Forms/frmAbout.resx
> with resgen2
> Compiling resource
> /home/eklypse/Desktop/SharpChess/Forms/frmDifficulty.resx with resgen2
> Compiling resource /home/eklypse/Desktop/SharpChess/Forms/frmMain.resx
> with resgen2
> Compiling resource
> /home/eklypse/Desktop/SharpChess/Forms/frmMoveAnalysis.resx with resgen2
> Compiling resource
> /home/eklypse/Desktop/SharpChess/Forms/frmPieceSelector.resx with resgen2
> Compiling resource /home/eklypse/Desktop/SharpChess/Forms/frmWinBoard.resx
> with resgen2
>
>
> Unhandled Exception: System.MissingFieldException: Field '
> System.Reflection.Emit.OpCodes.Stelem_Any' not found.
>   at <0x00000> <unknown method>
>   at Mono.CSharp.ArrayAccess.EmitAssign (Mono.CSharp.EmitContext ec,
> Mono.CSharp.Expression source, Boolean leave_copy, Boolean
> prepare_for_load) [0x00000]
>   at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec, Boolean
> is_statement) [0x00000]
>   at Mono.CSharp.Assign.EmitStatement (Mono.CSharp.EmitContext ec)
> [0x00000]
>   at Mono.CSharp.StatementExpression.DoEmit (Mono.CSharp.EmitContext ec)
> [0x00000]
>   at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.For.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000]
>   at Mono.CSharp.EmitContext.EmitResolvedTopBlock (
> Mono.CSharp.ToplevelBlock block, Boolean unreachable) [0x00000]
>   at Mono.CSharp.Constructor.Emit () [0x00000]
>   at Mono.CSharp.TypeContainer.EmitType () [0x00000]
>   at Mono.CSharp.RootContext.EmitCode () [0x00000]
>   at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
>
>
> Build complete -- 1 error, 0 warnings
>
> ---------------------- Done ----------------------
>
> Build: 1 error, 0 warnings
>

For the record, on the advice of another member of this list, I attempted to
install mono* but could not, receiving the following error:

Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
>
> Since you only requested a single operation it is extremely likely that
> the package is simply not installable and a bug report against
> that package should be filed.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies.
>   batmon.app: Depends: gnustep-back0.11 (>= 0.11.0) but it is not going to
> be installed
>               Depends: libgnustep-base1.13 (>= 1.13.0) but it is not going
> to be installed
>               Depends: libgnustep-gui0.11 (>= 0.11.0) but it is not going
> to be installed
>   cyrus-common-2.2: Conflicts: cyrus21-common
>   cyrus21-common: Conflicts: cyrus22-common
>   exim4-daemon-heavy: Conflicts: mail-transport-agent
>   exim4-daemon-light: Conflicts: mail-transport-agent
>   eximon: Depends: exim but it is not going to be installed
>   eximon4: Conflicts: eximon but 3.36-18.2 is to be installed
>   gtk-engines-redmond95: Depends: libglib1.2ldbl (>= 1.2.10-18) but it is
> not going to be installed
>   kolab-cyrus-common: Conflicts: cyrus-common-2.2 but 2.2.13-13+b2 is to
> be installed
>                       Conflicts: cyrus21-common
>   libapache-mod-mono: Depends: mono-apache-server (< 1.2.2) but 1.2.5-1 is
> to be installed or
>                                mono-apache-server2 (< 1.2.2) but 1.2.5-1is to be installed
>   libbakery-common: Conflicts: libbakery-2.3-common but 2.3.11-2.1 is to
> be installed
>   libdaemons-ruby1.8: Conflicts: libdaemonize-ruby1.8 but 0.1.2-2 is to be
> installed
>   libgnome-vfs-common: Depends: libgconf11 (>= 1.0.7) but it is not going
> to be installed
>                        Depends: liboaf0 (>= 0.6.10) but it is not going to
> be installed
>                        Depends: oaf (>= 0.6.10) but it is not going to be
> installed
>   libmono-cecil0.5-cil: Conflicts: libmono-cecil0.4-cil but 0.4.3-1 is to
> be installed
>   lm-batmon: Depends: libglib1.2ldbl (>= 1.2.10-18) but it is not going to
> be installed
>   monodoc-gtk2.0-manual: Conflicts: monodoc-gtk-manual but 1:1.0.10-5 is
> to be installed
>   mysql-gui-tools-common: Conflicts: mysql-query-browser-common but
> 1.2.5beta-3 is to be installed
>                           Conflicts: mysql-admin-common but 1.2.5rc-2 is
> to be installed
>   wmclockmon: Depends: libglib1.2ldbl (>= 1.2.10-18) but it is not going
> to be installed
> E: Broken packages
>

Note that this is *after* updating everything, in some cases, to an unstable
version.  (Before, when I had updated everything to only the most recent
stable version, I was unable even to install monodevelop.)

An alternative solution I was thinking of was embedding a program like
xboard within a mono program that could send key presses to xboard and
receive mouse movements and clicks from the user.  I'm not sure if that
would be more or less complicated.

Your help is much appreciated!
-Alessandro

On Dec 5, 2007 3:00 PM, aatdark <aatdark at aol.com> wrote:

> Hi
> is the source of your troubles mono or c#?
> If it is c# you need to read a few c# .net tutorials.
>
> If mono .. what is your current problem? IDE ? compiler ?
>
> Aatdark
>
> Am Montag, den 03.12.2007, 19:11 -0500 schrieb Alessandro:
> > I need to develop an application that is very chess-like on either a
> > Mac or Linux box and I thought I might start with SharpChess as a code
> > base.  Unfortunately, this is my first foray into Mono and I haven't
> > programmed in .NET in years, so I'm having a little trouble to say the
> > least.  In fact, to be perfectly honest, I'm not even sure where to
> > start.  Any help would be greatly appreciated!!
> > --
> > Alessandro Gagliardi
> > Integrative Neuroscience Program
> > Rutgers University Mind Brain Analysis
> > alessandro at gagliardi.name
> >
> > _______________________________________________
> > Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>


-- 
Alessandro Gagliardi
Integrative Neuroscience Program
Rutgers University Mind Brain Analysis
alessandro at gagliardi.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20071205/4e75fe7c/attachment.html 


More information about the Mono-winforms-list mailing list