Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] canonical MinGW, configure suspicions
Home

[Freeciv-Dev] canonical MinGW, configure suspicions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Brandon J. Van Every" <vanevery@xxxxxxxxxxxxxxxxxxx>
Cc: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] canonical MinGW, configure suspicions
From: Andreas Kemnade <akemnade@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Nov 2003 22:15:54 +0100

Brandon J. Van Every writes:
 > From: Andreas Kemnade
 > > Brandon J. Van Every writes:
 > >  >
 > >  > I have:
 > >  > /mingw/include/_mingw.h
 > >  > /mingw/include/windows.h
 > >  > /usr/include/png.h
 > >  > /usr/include/zlib.h
 > >  >
 > > Then move /usr/include/png.h and /usr/include/zlib.h to /mingw/include
 > > Something similar has to be done for the libs.
 > >
 > >  > What is MSYS's canonical include search path called?  Is it an
 > >  > enviornment variable?  I do not see any obvious one.  What is the
 > >  > canonical way to get /usr/include searched?
 > >
 > > Don't do that.
 > > /usr/include is meant for cygwin use.
 > 
 > This makes no sense to me.  /usr/include is not "Cygwin's property,"
 > it's a canonical UNIX directory name from time immemorial.  I understand
 > that your suggestions may solve the problem.  But it is not The Right
 > Way to solve the problem.  If a UNIX-alike environment or a configure
 > script can't detect /usr/include and /usr/local/include, it is broken.
 > 
You are right: /usr/include is not Cygwin property.
It is searched by default on every UNIX alike environment.
But using "-mno-cygwin" turns that off because mingw uses other
includes. To seperate them, they have to be in an other
directory. If you have cross compilers, the canonical include path
will be $prefix/$target/include.
So not every gcc installation has to use /usr/include.
 
I only try the cygwin stuff before releases or before critical changes
to the autoconf stuff. ./configure && make takes 80 minutes on my
system. Doing that with a windows cross compiler from linux,
it takes 15-20 minutes to do the build. You guess what I do the most
time. So I don't know about every possibility how cygwin/mingw can be 
installed and I can only use general knowledge about gcc and friends
to help you.

BTW: on debian you can just do apt-get install mingw32
 to get a cross compiler. 

Greetings
Andreas Kemnade


[Prev in Thread] Current Thread [Next in Thread]