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: "Brandon J. Van Every" <vanevery@xxxxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: building libpng on MinGW?
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 2 Nov 2003 12:59:33 +0000 (GMT)

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'

but it did start compiling. I guess there are lots of errors in the CVS
HEAD win32 client at the moment, and I am not going to fix them.

I'll look at producing GTK2 and SDL from Cygwin some other day.

  - Per



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