[Freeciv-Dev] Re: building libpng on MinGW?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] configure won't find libpng on MinGW, Andreas Kemnade, 2003/11/01
- [Freeciv-Dev] Re: configure won't find libpng on MinGW, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] Re: configure won't find libpng on MinGW, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] Re: configure won't find libpng on MinGW, Andreas Kemnade, 2003/11/01
- [Freeciv-Dev] canonical MinGW, configure suspicions, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] building libpng on MinGW?, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] Re: building libpng on MinGW?, Per I. Mathisen, 2003/11/02
- [Freeciv-Dev] Re: building libpng on MinGW?,
Andreas Kemnade <=
- [Freeciv-Dev] Re: building libpng on MinGW?, Per I. Mathisen, 2003/11/03
- [Freeciv-Dev] Re: building libpng on MinGW?, Raimar Falke, 2003/11/02
- [Freeciv-Dev] Re: building libpng on MinGW?, Vasco Alexandre Da Silva Costa, 2003/11/02
- [Freeciv-Dev] Re: building libpng on MinGW?, Per I. Mathisen, 2003/11/02
- [Freeciv-Dev] canonical MinGW, configure suspicions, Andreas Kemnade, 2003/11/03
|
|