(Note: Installs to /usr/local. There is no uninstall so make sure you have a backup of your SD card. No warranty.)
[Procedure updated 2013-06-24]
This is the procedure for installing a working version of Mono on Raspbian that includes everything needed to use WinForms:
Code: Select all
# To install on pi
cd ~
wget https://www.dropbox.com/s/sask17flot3zqlg/mono_2_11_4_armv6hf_binary.tgz
cd /
sudo tar zxvf ~/mono_2_11_4_armv6hf_binary.tgz
sudo ldconfig
sudo apt-get install libgdiplus
I have tested it on Rasbian 2013-02-09 from the download page.Mono JIT compiler version 2.11.4 (tarball Thu Mar 14 14:32:54 CDT 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp(hardfp-abi)
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
Note that you must be running X11 (startx) for System.Windows.Forms to display. Also note that System.Windows.Forms is designed for operation on Windows by Microsoft and does not always function as expected on linux systems. Also, I can not provide support for this so if it does not work for you then I recommend you continue to use the packaged mono on soft-float wheezy or wait for an official package for hard-float.
---------------------
Edit 2013-06-24:
The following should compile and install GTK Sharp 2:
Code: Select all
# Note: Mono must be installed before proceeding
# Install build depencies (some or all of the packages may already be present)
sudo apt-get install git-core
sudo apt-get install automake
sudo apt-get install libtool
sudo apt-get install libpango1.0-dev
sudo apt-get install libatk1.0-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libglade2-dev
# Install Gtk-Sharp2
# Change to the home folder, download, build and install gtk-sharp2 (this takes a long time)
cd ~
wget http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.12/gtk-sharp-2.12.10.tar.gz
tar zxvf gtk-sharp-2.12.10.tar.gz
cd gtk-sharp-2.12.10/
./configure
make
sudo make install