1. Go to http://www.mingw.org/download.shtml, grab and install the latest
version of the following packages (install and untar them in say c:\mingw):
MSYS bin
(http://prdownloads.sf.net/mingw/MSYS-1.0.9.exe?download)
gcc-core bin
(http://prdownloads.sf.net/mingw/gcc-core-3.3.1-20030804-1.tar.gz?download)
gettext
(http://prdownloads.sf.net/mingw/gettext-0.11.5-2003.02.01-1.exe?download)
libiconv
(http://prdownloads.sf.net/mingw/libiconv-1.8.0-2003.02.01-1.exe?download)
MINGW runtime
(http://prdownloads.sf.net/mingw/mingw-runtime-3.2.tar.gz?download)
Windows API
(http://prdownloads.sf.net/mingw/w32api-2.4.tar.gz?download)
binutils
(http://prdownloads.sf.net/mingw/binutils-2.13.90-20030111-1.tar.gz?download)
You also want to edit the fstab in the Msys/1.0/home directory so it reads
like so:
c:\mingw mingw
2. If you plan on using source from CVS, grab and install these packages too:
MSYS DTK (http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download)
You may need python as well, from http://www.python.org.
Python (http://www.python.org/ftp/python/2.3.3/Python-2.3.3.exe)
3. Nab the latest zlib source distribution (from http://www.gzip.org/zlib/)
zlib
(http://www.gzip.org/zlib/zlib-1.2.1.tar.gz)
Put it in a convenient (ie reachable from MSYS) directory, open up an MSYS
window, cd over to it, and type the following commands:
tar xzf zlib-1.2.1.tar.gz #may be a different file name
cd zlib-1.2.1
cp win32/Makefile.gcc Makefile
make
cp *.a /mingw/lib
cp zconf.h /mingw/include
cp zlib.h /mingw/include
cp zlib1.dll /mingw/bin #or at least somewhere in your path
3. Nab the latest libpng source distribution (from
http://www.libpng.org/pub/png/libpng.html)
libpng
(http://prdownloads.sourceforge.net/png-mng/libpng-1.2.5.tar.gz?download)
It doesn't come with a nifty MSYS Makefile, so use the one attached to
this tutorial.
Put it in a convenient directory and type the following commands:
tar xzf libpng-1.2.5.tar.gz
cd libpng-1.2.5
cp /home/Makefile.MSYS Makefile #whereever you stuck Makefile.MSYS
mv install in #ack, mingw wants to run ./install for some reason
make prefix=/mingw install
cp png12.dll /mingw/bin #or at least somewhere in your path
4. Ok, now that that's all out of the way, you can nab the Freeciv source distro:
ftp://ftp.freeciv.org/freeciv/stable/freeciv-1.14.1.tar.gz
(or CVS if you want)
Put it in a convenient directory and type the following commands:
tar xzf freeciv-1.14.1.tar.gz
cd freeciv-1.14.1
./configure --prefix=/c/freeciv-1.14.1 #or whereever you want it
make install
Now this'll make a bit of a messy directory tree in /c/freeciv-1.14.1, so
I recommend then executing the following commands:
cd /c/freeciv-1.14.1/
mv share/freeciv data
mv bin/civserver.exe .
mb bin/civclient.exe .
cp /mingw/bin/png12.dll .
cp /mingw/bin/zlib1.dll .
cp /mingw/bin/libiconv-2.dll .
cp /mingw/bin/libintl-2.dll .
5. And...it doesn't work! It doesn't work because you need .pngs. And this
is where this tutorial ends, since I'm not sure where the most convenient
place to grab the pngs is, besides cvs. :)