Compile Mono from GIT

This will compile Mono from the GIT repository. It takes about 10:30 hours in sum @ 950MHz.

Hint
Since this is updated very often it could include some bugs. But in most cases it works great.

Procedure

Install additional needed packages
sudo apt-get install libtool libglib2.0-dev libxrender-dev libfontconfig1-dev libpng12-dev libgif-dev libjpeg8-dev libtiff5-dev libexif-dev gettext libcairo2-dev
Create a new folder where we place the files. You can use your home directory for that
cd ~
mkdir sources
cd sources

libgdiplus Compilation (this will take overall ~16 minutes @ 950MHz)

Get the libgdiplus sources from GIT
git clone git://github.com/mono/libgdiplus
Enter the new directory
cd libgdiplus
Run autogen
./autogen.sh --prefix=/usr
Compile the sources
sudo make
Install the files
sudo make install
Leave the directory
cd ..

Mono Compilation (tak ????)

Get the Mono sources from GIT (~45 minutes)
git clone git://github.com/mono/mono.git
Enter the new directory
cd mono
Run autogen (~20 minutes)
./autogen.sh --prefix=/usr/local
Install and configure gmcs
sudo make get-monolite-latest
cd mcs/class/lib/monolite
cp basic.exe gmcs.exe
cd /home/pi/sources/mono
 
Hint
You can also use apt-get install mono-gmcs for the 4 gmcs steps.
Compile the sources (this will take ~9:00 hours @ 950MHz)
If you used sudo make get-monolite-latest use this:
sudo SKIP_AOT=true make EXTERNAL_MCS="/home/pi/sources/mono/mcs/class/lib/monolite/gmcs.exe"
If you use apt-get install mono-gmcs use this:
sudo SKIP_AOT=true make
Install the files (this will take ~30 minutes @ 950MHz)
sudo SKIP_AOT=true make install

Uninstall

Run the uninstall
sudo make uninstall
remove the source files
rm -rf ~/sources/mono

Additional Information

Raspberry Pi Mono libgdiplus
http://www.shatalmic.com/raspberry-pi-mono-libgdiplus

Mono Compile from Git
http://stackoverflow.com/questions/13365158/installing-mono-3-x-3-0-x-and-or-3-2-x
https://gist.github.com/pjvds/7185693


Send feedback on this topic
Copyright (C) 2013-2014 Dominik Schmidt / Holger Hemmecke. All rights reserved.