Mischiefblog
I make apps for other people

Playing with Mono

Posted by Chris Jones
On April 10th, 2007 at 07:21

Permalink | Trackback | Links In |

Comments Off on Playing with Mono
Posted in C#

I’ve installed Mono on a couple boxes, my Linux workstation at work and my PowerBook at home. On the Mac, it’s a simple package download and install (well, I also wanted to uninstall the old one, so I executed a script to clean it out). On my work box, we’re using a modified version of RHEL 3 so most of the RPMs would work, but I preferred installing from source. The Linux Installer for x86 worked pretty well.

Unfortunately, I’m not up to date on GTK 2 or a lot of libraries (we don’t concentrate on keeping our UIs up to date). Gargnome couldn’t quite handle my machine (for instance, although I have glibc2 instaled, it wasn’t in the library path under some accounts).

/opt/third-party/bin/make_real install-data-hook
make_real[10]: Entering directory
`/home/joneschr/Desktop/garnome-2.18.0/freedesktop/
shared-mime-info/work/main.d/shared-mime-info-0.20'
"/home/joneschr/opt/garnome/bin/update-mime-database" -V "/home/joneschr/opt/garnome/share/mime"
/home/joneschr/opt/garnome/bin/update-mime-database: relocation error:
/home/joneschr/opt/garnome/bin/update-mime-database: undefined symbol: g_log_set_default_handler

In any case, Mono 1.2.3.1 is installed even if MonoDevelop or GTK# doesn’t have all of its requirements.

Goals

  • Get SDL.NET working
  • Work up a quick multi-player, server based demo using SDL, primitive graphics, and Mono
  • Create instructions for compiling it on Linux, OS X, and using Visual Studio or Visual C# Free Edition

Edit: Fixed it! I needed to change a library path. g_log_set_default_handler is available in Glib 2.0.6 or higher. I was at Glib 2.0.0.3.

Edit 2: My workstation’s problems run deeper than that. I’d need new versions of gcc, libc, the Linux kernel, etc., to continue compiling. I’ve tried to get around it, but Gargnome’s dependencies are looking to hal to compile, which requires a more modern Linux than I can provide, at least on the work machine. fink on OS X/Darwin, on the other hand, works rather nicely (if slowly on my G4).

Comments are closed.