[Mono-list] Building mono on Cygwin (again)

Dick Porter dick@ximian.com
Tue, 16 Apr 2002 12:53:08 +0100


On Tue, Apr 16, 2002 at 11:09:33AM +0200, Dennis Jarosch wrote:
> Hi everybody!
> 
> I'm a computer science student from Germany and I'm interested in
> contributing to mono. I've been watching the list and trying to learn as
> much as I can and I tried compiling Mono-0.10 on Cygwin last weekend.

Mono-0.10 is pretty much out of date (already!).  Your best bet is probably
the daily snapshots from http://mono.baselabs.org

> 
> The win-32 build script didn't really work for me, everything was put in
> ~mono/install and the /target prefixes kinda messed things up. Anyway, I

That shouldnt happen.  The precompiled pkgconfig that the script installs
works out the real prefix (overriding /target) by checking the directory
that the pkg-config binary is running from.

> just installed everything manually and all the things seem to be in place.
> However, I still habe problems with the include-paths.
> By default, I get this compiler message:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-
> 2.0/
> include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I../.. -I..
> /../
> mono -DMONO_ASSEMBLIES=\""/usr/local/lib"\"                 -g -Wall -Wunuse
> d -W
> 
> I was wondering, because /usr/include isn't included, while netdb.h is
> required:

netdb.h doesnt exist in the mingw windows headers that we compile with.  If
configure found it, you broke something.

The answer really is to use the script until you are sure that you can
build it by hand and get it right.

- Dick