Hi "I haven't tried compiling on the Neo itself, but compiling on your computer and running the result on the Neo works great." I tried that too, and it didn't work either.
"gmcs is a shell script" I actually didn't know that. Thanks. I'll have a look, but I don't think it's worth a try before I can run a "host-compiled" Mono-application in the first place. Thanks for the answers. Regards, Mikkel --------- Original Besked -------- fra: Cliff Brake <[EMAIL PROTECTED]> Til: Mikkel Meyer Andersen <[EMAIL PROTECTED]> Cc: [email protected] Emne: Re: Mono on OpenMoko Dato: 27/10/07 20:48 > > On 10/27/07, Mikkel Meyer Andersen <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I made an entire build this morning and flashed by Neo 1973 with both > > the new kernel- and rootfs-image. Afterwards I installed mono and > > mono-gmcs and tried to compile this program: > > > > /* --- */ > > using System; > > > > namespace Scienco > > { > > class MainClass > > { > > public static void Main(string[] args) > > { > > Console.WriteLine("Hello World!"); > > } > > } > > } > > /* --- */ > > > > When I try to compile it at the OpenMoko-device, all I get is this error: > > [EMAIL PROTECTED]:~$ gmcs Main.cs > > Illegal instruction > > [EMAIL PROTECTED]:~$ > > Your example runs fine on an xscale system -- I'll update my openmoko > device and try that. > > [EMAIL PROTECTED]:~$ gmcs test.cs > [EMAIL PROTECTED]:~$ mono test.exe > Hello World! > [EMAIL PROTECTED]:~$ > > > If I try to run just gmcs the same occurs. If I try to debug it with gdb > > I get ([...] is copyright-notice): > > [EMAIL PROTECTED]:~$ gdb gmcs > > [...] > > This GDB was configured as "arm-angstrom-linux-gnueabi"... > > "/usr/bin/gmcs": not in executable format: File format not recognized > > (gdb) q > > [EMAIL PROTECTED]:~$ > > gmcs is a shell script: > > [EMAIL PROTECTED]:~$ more /usr/bin/gmcs > #!/bin/sh > exec /usr/bin/mono $MONO_OPTIONS /usr/lib/mono/2.0/gmcs.exe "$@" > > Its likely you have something wrong with shell scripts on your system. > Try running mono directory as in the above script. > > Cliff > > -- > ======================= > Cliff Brake > http://bec-systems.com >

