[Mono-dev] Mono on armel/nokia 770 2006 OS

Tomi Valkeinen tomba at bat.org
Tue Nov 21 09:57:40 EST 2006


On Tue, 21 Nov 2006, Paolo Molaro wrote:

> On 11/21/06 Tomi Valkeinen wrote:
>> I've done this,
>> http://lists.ximian.com/pipermail/mono-devel-list/2006-January/016768.html
>> . The devkit template is almost a year old now, so I'm not sure if it
>> works out of the box. If I have time I'll update it to most recent
>> scratchbox. But making a mono-devkit is definitely possible, and I was
>> able to compile Gtk# and other C# programs just fine.
>
> Thanks, sorry I missed that. I downloaded the tarball and updated it for
> newer mono and glib versions (bc should not be needed anymore).
> I couldn't get it to compile, because it dies when running glib's
> configure: this is some sort of incompatibility between the host gcc and
> scratchbox runtime files, I guess:
>
> configure:2918: gcc-3.3   -Wl,-rpath -Wl,/scratchbox/host_shared/lib/
> -Wl,-rpath -Wl,/scratchbox/tools/lib/ -Wl,-rpath
> -Wl,/scratchbox/devkits/mono/lib/ conftest.c  >&5
> /lib/libc.so.6: undefined reference to `__libc_stack_end at GLIBC_2.1'
> /lib/libc.so.6: undefined reference to `_rtld_global_ro at GLIBC_PRIVATE'

I updated the devkit at www.bat.org/~tomba/sb-mono-devkit.tar.gz, and now 
it works for me with the newest scratchbox (debian packages). I didn't 
encounter that problem you describe... Did you reset&reconfig your host 
target? If you upgrade scratchbox installation don't reset the target, you 
may run into problems. You may have some old libc installed in that 
target, and when you change to use a new toolchain, gcc's and libc's 
versions may differ.

Short instructions of what I did:

in host machine:

cd /scratchbox/devkits
sudo mkdir mono
sudo chown valkeine mono

in scratchbox:

Create HOST target, with host-gcc. I selected debian and perl devkits, but 
I don't think they are actually needed. If you already have a HOST target, 
better to reset it first and then reconfigure it. Then just cd to the 
sb-mono-devkit directory, and make. It downloads mono 
oand glib automatically.

I didn't have time to try Gtk#, but I did compile helloworld.cs and it 
compiled and ran fine inside scratchbox.

  Tomi



More information about the Mono-devel-list mailing list