Compiling Athena on Cygwin

The Cygwin compile

cyg-01: cd command
Launch Cygwin.


Compile in C:\SVN:

cyg-02: cd to a Windows directory
Change to Athena source repository
cd /cygdrive/c/SVN/stable

cyg-03: make clean command
Clean up:
make clean


cyg-04: make sql
Compile:
make sql

If you are compiling TXT
make txt


Compile in C:\Athena, an export directory:

cyg-05: Exporting source codes
Go to c:\SVN

Issue the export command:
svn export stable/ /cygdrive/c/Athena

The export command will fail if the directory "Athena" exists. If you must use the same directory, issue the following command:
svn export --force stable/ /cygdrive/c/Athena

Then follow the make clean and make sql step described earlier.

Note: An Athena compiled in the export directory will not display its revision number.

If desired, you can use the TortoiseSVN method.


Compile in /home/svn:

This method is detailed in Subversion on Cygwin guide. This is very much like working on a Unix.


cyg-17: Getting to source directory
Change to Athena source repository in Cygwin subsystem
cd svn/stable

cyg-16: Updating Athena source codes
Update if you have already done so.
svn up


cyg-18: Make clean
Clean up:
make clean


cyg-19: make sql
Compile:
make sql

You may stop here and use copy-paste if so wished, that is, if you are not bothered by Athena not displaying its revision number.

Finishing touch

Export the source codes to C:\Athena as described in Compile in an export directory.

cyg-06: copy binaries
Copy binaries to the export directory:
If you are using TXT, leave _sql out
cp *server_sql.exe /cygdrive/c/Athena


cyg-07: Switching to Athena directory
Change to exported folder:
cd /cygdrive/c/Athena


cyg-08: Creating conf folder
Create conf and save folders:
make conf


cyg-09: Starting Athena login server
Test running Athena:
Start the login server.
login-server_sql

Start char and map server too if desired.

cyg-091: Starting Athena login server
You now have an Athena which will display its revision number correctly:


Preparing for Windows

cyg-029: Copying Cygwin dll's
Athena will not start if you launch it in Windows environment. Cygwin dll's must be present in Athena directory. Let us copy those from Cygwin.
$ cd

$ cp /bin/cygwin1.dll /cygdrive/c/Athena

$ cp /bin/cygz.dll /cygdrive/c/Athena

You are now ready to run Athena.

Notes:

You should use a transitional folder, say C:\AthenaSVN to hold compiled Athena while current servers are running.
It is not a good idea to run Athena from Athena source repository.
Do not run Athena from the Cygwin folder or on Cygwin.




Q&A

Athena doesn't display revision number!

It will not do any damage. If you must do something about it, edit battle_conf.txt and change display_version to no.