The purpose of this page is to document how RealTimeBattle (RTB) can be run under Windows using Cygwin.
This page will not explain what RTB or Cygwin are - use the links for more information.
There are three ways to run RTB on Cygwin:
Download the latest version from www.cygwin.com. I have successfully compiled RTB using the following version:
$ uname -a
CYGWIN_NT-5.1 st059 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
Install Cygwin wherever you want on your system, but remember where you put the setup.exe! Cygwin is installed by running setup.exe and adding packages. If you need to compile RTB, you'll need most of the devel packages as well as most of the GTK and X packages. If you want to get the source from CVS, you also need the CVS and OpenSSH packages.
Make a best guess at what you'll need, or just include everything. Don't worry about missing something - to install something later you can just re-run setup and add it. More about that later.
After installing cygwin, go to the install dir (e.g. C:\cygwin) and open cygwin.bat for editing. You need to insert the following line before the bash command:
set CYGWIN=check_case:strict
Without this, Cygwin will be case insensitive (like Windows) which is no good when you want to compile C/C++.
Optional - only needed for CVS source retrieval
Go to your home dir (e.g. C:\cygwin\home\John) and open .bashrc for editing.
For convenience, insert an alias for checking out the RTB sources (replace USERNAME):
alias cvs_co_rtb='cvs -z3 -d:ext:USERNAME@cvs.sf.net:/cvsroot/realtimebattle co -P RealTimeBattleNew'
A precompiled version of RealTimeBattle 1.0.8 for Cygwin 1.5.18 is available here. Unzip to a folder in the path (e.g. /usr/local/bin/) and skip to step 8 to run RTB. If it does not work, you have to build it (see next steps).
$ startx
$ gunzip RealTimeBattle*.tar.gz
$ tar xvf RealTimeBattle*.tar
$ cd RealTimeBattle-<version>
(e.g. 1.0.8-Ext
)
$ ./configure
(optionally with --enable-debug=yes
)
$ make
$ make install
Now skip to step 8 to run RTB.
If you want to build RTB from the very latest sources, do the following:
$ startx
$ cvs_co_rtb
(or use the actual cvs command as in step 4 above).$ cd RealTimeBattleNew
$ ./configure
(optionally with --enable-debug=yes
)
$ make
$ make install
By default, RTB uses the GTK GUI. GTK uses X. So, first start X:
$ startx
If the X packages was installed correctly, this will bring up an xterm console. In this console:
$ realtimebattle &
On Windows XP, the main window should look something like this:
Enjoy!
Page written by Simen Røkaas, 8/2005.