Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: building libpng on MinGW?
Home

[Freeciv-Dev] Re: building libpng on MinGW?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: "Brandon J. Van Every" <vanevery@xxxxxxxxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: building libpng on MinGW?
From: Andreas Kemnade <akemnade@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Nov 2003 22:25:06 +0100

Per I. Mathisen writes:
 > I tried to install the newest MinGW stuff on another computer, and I just
 > gave up. There is just too much broken stuff. The installation routine has
 > become completely FUBAR.
 > 
 > Cygwin is looking better as an alternative right now. So I tried it.
 > 
 > Pulled down the setup.exe from cygwin.org, installed pretty much
 > everything that could be relevant (30k files, yummy), had to edit
 > configure.ac like this
 > 
 > Index: configure.ac
 > ===================================================================
 > RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
 > retrieving revision 1.51
 > diff -u -r1.51 configure.ac
 > --- configure.ac        2003/10/01 20:48:44     1.51
 > +++ configure.ac        2003/11/02 12:52:17
 > @@ -290,6 +290,7 @@
 >  dnl Windows-specific settings
 >  AC_DIAGNOSE([obsolete],[AC_MINGW32 is obsolete: use AC_CANONICAL_HOST and 
 > $host_os])
 >  case $host_os in
 > +  *cygwin*  ) MINGW32=yes;;
 >    *mingw32* ) MINGW32=yes;;
 >            * ) MINGW32=no;;
 >  esac
 > 
 > then ./autogen.sh --disable-nls --enable-client=win32 && make
 > 
 > produced this error:
 > 
 > In file included from connection.c:32:
 > /usr/include/w32api/winsock.h:81:2: warning: #warning "fd_set and
 > associated macros have been defined in sys/types.
 > This can cause runtime problems with W32 sockets"
 > In file included from connection.c:32:
 > /usr/include/w32api/winsock.h:479: error: conflicting types for
 > `gethostname'
 > /usr/include/sys/unistd.h:194: error: previous declaration of
 > `gethostname'
 > make[3]: *** [connection.o] Error 1
 > make[3]: Leaving directory `/freeciv/common'
There is a reason why your patch is not yet in cvs. You have to add
-mno-cygwin somewhere. But that has to be optional because it should
not disable build which require the cygwin.dll. I do not know a good
way to solve that problem cleanly.

Try CC="gcc -mno-cygwin" ./autogen.sh --host=i386-mingw32
--disable-nls --enable-client=win32 && make

or
CC="gcc -mno


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