The Cygwin compile
- Launch Cygwin.
Compile in C:\SVN:
Change to Athena source repository
cd /cygdrive/c/SVN/stable
|
Clean up:
Compile:
If you are compiling TXT
Compile in C:\Athena, an export directory:
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.
Change to Athena source repository in Cygwin subsystem
Update if you have already done so.
Clean up:
Compile:
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.
Copy binaries to the export directory:
If you are using TXT, leave _sql out
cp *server_sql.exe /cygdrive/c/Athena
|
Change to exported folder:
Create conf and save folders:
Test running Athena:
Start the login server.
Start char and map server too if desired.
You now have an Athena which will display its revision number correctly:
Preparing for Windows
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.
|
|