[Mono-list] Latest mono for Cygwin

Daniel Lewis dihlewis@yahoo.co.uk
Wed, 30 Jan 2002 17:26:36 +0000 (GMT)

> I can't get it to build either, due to problems in glib. I kind
> of gave up, concluding that everyone was too busy to help.

Hi David,

I don't know if you were having the same problems I was with glib, but if it
helps I can go through what I did to get glib working. It seems Cygwin
compilation is quite a recurrent topic on this list, so maybe it's a good idea
if we all pool our knowledge of the area.

I did this from a clean install of the latest version of Cygwin (after
accidently trashing my old copy :) Here's what I can remember doing:

1. pkg-config

Download pkg-config.

Untar and change the return type of strsignal on line 674 to const char:

  extern const char *strsignal (int sig);

Configure and compile:

  ./configure --prefix=/usr
  make && make install

2. Native glib

I downloaded the following files from the Win32 GIMP project:



(Don't bother with the pkg-config there because we want a Cygwin compiled
version that understands Unix filenames.)

Make a directory to put this distribution into. They're native libraries, so
you probably want to keep them well out of /usr which is for all your Cygwin
libraries, or you may end up clobbering stuff (like gettext). I made a new

  mkdir /usr/native
  find *.zip -exec unzip -d /usr/native {} \;

Now there are two autoconf files in this distribution, so I just copied these
into my main aclocal directory:

  cp /usr/native/share/aclocal/*.m4 /usr/share/aclocal/
(Maybe there's an environment variable for aclocal - that would be a better

There are also some pkg-config files that come with this distribution:


If you look at these files, you'll see the 'prefix' variable is coded as
/target. Either edit the files and change this to /usr/native, or else just
make a symlink from /usr/native to /target.

3. Set your paths

export PATH=$PATH:/usr/native/lib
export PKG_CONFIG_PATH=/usr/native/lib/pkgconfig

That should be it... I can't remember whether these packages needed the
MSVCRTD.DLL library or not.
But it doesn't hurt to have a copy of that in your SYSTEM32 directory.

4. Compile mono

This is about as far as I got. If you already got this far, or if you got any
further than this I'd be happy to hear about it.


--- David Dawkins <david_j_dawkins@hotmail.com> wrote:

> >From: Daniel Lewis <dihlewis@yahoo.co.uk>
> >To: mono-list@ximian.com
> >Subject: [Mono-list] Latest mono for Cygwin
> >Date: Wed, 30 Jan 2002 15:59:48 +0000 (GMT)
> >
> >Hi
> >
> >I was wondering what the latest snapshot date is that anyone has got to 
> >compile
> >under Cygwin. I've been trying to compile the CVS but it breaks when it 
> >enters
> >the metadata directory. (socket-io: is it supposed to be using Cygwin 
> >sockets
> >or Winsock?)
> >
> >Any other advice would be much appreciated.
> >
> >Thanks,
> >   Dan.
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Everything you'll ever need on one web page
> >from News and Sport to Email and Music Charts
> >http://uk.my.yahoo.com
> >
> >_______________________________________________
> >Mono-list maillist  -  Mono-list@ximian.com
> >http://lists.ximian.com/mailman/listinfo/mono-list
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com

Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts