Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ Dawn of Time
➜ Installing/compiling the server
➜ Compiling DoT under Cygwin
Compiling DoT under Cygwin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Fri 18 Jan 2002 04:26 AM (UTC) Amended on Fri 18 Jan 2002 04:28 AM (UTC) by Nick Gammon
|
Message
| You need to make a couple of minor changes to the DoT source to compile under Cygwin.
For some reason we have yet to establish, MCCP doesn't work under Cygwin, so edit the file descript.h and add one line (around line 17) ...
/**************************************************************************/
//typedef unsigned int SOCKET;
/**************************************************************************/
#define DISABLE_MCCP // add this line
#ifndef DISABLE_MCCP // define this in your project to disable MCCP
Also the set_itimer function doesn't work, so edit the file update.cpp and add one line (around line 98) ...
/**************************************************************************/
/* Set the virtual (CPU time) timer to the standard setting, ALARM_FREQUENCY */
void reset_itimer ()
{
struct itimerval itimer;
itimer.it_interval.tv_usec = 0; /* miliseconds */
itimer.it_interval.tv_sec = ALARM_FREQUENCY;
itimer.it_value.tv_usec = 0;
itimer.it_value.tv_sec = ALARM_FREQUENCY;
return; // doesn't work under Cygwin - add this line
Then you should be able to compile. Change to the configure directory and run the configure script ...
cd configure
./configure
Then change back to the source directory and run "make" ...
cd ..
make
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Balo
(8 posts) Bio
|
Date
| Reply #1 on Sun 27 Jan 2002 08:42 AM (UTC) |
Message
| Hi
Im unable to test or confirm this, since I dont have Cygwin installed, but the recent versions have a new zlib library that is supposedly much better , however due to naming conventions and confilcts the .dll is named cygz.dll rather than the standard libz.dll , Id be interested to hear if this works ?
Also can you not just use -DDISABLE_MCCP in the compiler directives in your Makefile to disable MCCP ?
Regards
Balo. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sun 27 Jan 2002 09:33 PM (UTC) |
Message
|
Quote:
Also can you not just use -DDISABLE_MCCP in the compiler directives in your Makefile to disable MCCP ?
Yes, sensible idea. :) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kalahn
United Kingdom (138 posts) Bio
|
Date
| Reply #3 on Sun 27 Jan 2002 10:10 PM (UTC) |
Message
| 1.69q compiles clean out of the box on Cygwin.
- Kal |
Kalahn
Developer of the Dawn of Time codebase
http://www.dawnoftime.org/ | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,812 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top