Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] building under cygwin

[Freeciv-Dev] building under cygwin

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: James Wilson <fat_hot@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] building under cygwin
From: Andreas Kemnade <akemnade@xxxxxxxxxxx>
Date: Sat, 3 Nov 2001 19:24:52 +0100

James Wilson writes:
 > I'm just getting started playing around with building everything, please 
 > forgive any stupidity. I'm trying to build the latest cvs sources under 
 > cygwin 20011008 on Win98SE.
Building a gtk client from current cvs does not work. 
The 1.12.0 binary is not built from the
original source. There is a patch for it in the same directory where
the binary is, but the patch does not apply to current cvs. 

But you can build the windows client with a standard windows gui:

export CC="gcc -mno-cygwin"
./configure --enable-client=win32

If you want to see a binary first you can look at

Gfx format: 
The gui-win32 client uses a gfx format which is a bit strange:
the masks are saved in an extra file. eg. hires/terrain1-mask.bmp is
the mask from hires/terrain1.bmp
If you don't know how to convert the format, you can take the files
from the binary mentioned above.
When I'll find some time I'll debug the code for loading png files in
freeciv and enable it.

 > -- maybe this is a FAQ, but I didn't find the answer anywhere - how can 
 > freeciv be built under cygwin against gtk1.3? configure is looking for 
 > gtk-config, which doesn't exist in the gtk1.3 for win32 bundles found at 
 > or 
 > as far as I can see. can 
 > I trick it into using pkg-config or something like that?
The trick is to create it yourself. You might steal some gtk-config
from linux and use it as a template. My imlib-config (which you also
need) gives the
imlib-config --libs-gdk
-L/usr/local/win/lib -lgdk_imlib -L/usr/local/wingtk/lib -lgtk-1.3 -lgdk-1.3 
-lgmodule-1.3 -lglib-1.3

 > -- I can build against Xaw no problem. it crashes periodically but that's 
 > another story for another time.
You have X11 installed on windows? Then it is perhaps easier to use
normal unix (X11 based) gtk. AFAIK you can do the usual 
make install
with it (and get a valid gtk-config). But the resulting freeciv client
will need X11.

Andreas Kemnade

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