[Mono-dev] Mono for linux ARM

Tomi Valkeinen tomba at bat.org
Thu Jan 26 04:03:46 EST 2006


Yes, you can cross-compile Mono for ARM. It's not trivial though. I've 
cross-compiled Mono with "traditional" cross-compiler toolchains and with 
Scratchbox, of which Scratchbox has been easier for me.

Here's brief description how I compile Mono with Scratchbox:

1. Install Scratchbox. I used version 1.0.2.

2. Build Mono-devkit for HOST target.

Mono's build process first builds the mono runtime, and then uses that 
to run mcs to compile the class libraries. This is something you don't 
want to do, as the runtime is an ARM binary and therefore will be run on 
your ARM device or on ARM emulator.

What you want to do is to run mcs on the host machine. This can be 
accomplished with Scratchbox's devkits. You can find more information 
about devkits on Scratchbox's website.

So select HOST target on scratchbox, use the devkit template from 
http://www.bat.org/~tomba/sb-mono-devkit.tar.gz to compile mono devkit.

3. Edit runtime/mono-wrapper.in and runtime/monodis-wrapper.in to use Mono 
from your devkit.

For example, I changed mono-wrapper.in's last line to:
mono --config "$r/runtime/wrapper-config" "$@"

4. Set up your ARM target. Select arm-compiler, debian and mono devkits, 
and qemu-arm for CPU-transparency. See Scratchbox documentation how to set 
up the target and install the files. Here's a short version:

  - Edit apt.sources (stable debian-arm works fine for me)
  - apt-get update
  - sb-install-base-packages
  - fakeroot apt-get install libgtk2.0-dev

5. Configure and compile Mono as you normally would.

That's about it. I hope I didn't forget any steps =). Compiling gtk-sharp 
should also work.


On Wed, 25 Jan 2006, Dave Cramer wrote:

> Apparently it can be cross compiled
> http://www.mono-project.com/Mono:ARM
> However I have tried and can't see my previous message earlier this week
> I'd love to get it cross-compiled.... anyone ?
> Dave
> On 24-Jan-06, at 12:16 PM, Dario Salvi wrote:
>> Hi,
>> does anyone know any project or anyone working on the development of MONO 
>> on linux for ARM architectures ?
>> I need to install MONO on a Philips XSilo, aka gigavuPro from Jobo.
>> This device uses the Intel PXA255 processor, source code for the kernel is 
>> already available.
>> Can anyone help me please ?
>> Dario
>> -- 
>> El hombre esta siempre dispuesto
>> a negar aquello que no comprende.
>> Luigi Pirandello
>> ----------------
>> Dario Salvi
>> PhD student at LST
>> Life Supporting Technologies
>> Technical Univesity of Madrid (UPM)
>> Ciudad Universitaria
>> 28040 Madrid España
>> e-mail: dsalvi at lst.tfo.upm.es
>> web: http://www.lst.tfo.upm.es
>> mobile: +34 664130294 (ES) +39 3473887225 (I)
>> personal homepage: www.dariosalvi.info
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list