[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Dawn of Time
. -> [Folder]  Installing/compiling the server
. . -> [Subject]  Compiling DoT under Cygwin

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Compiling DoT under Cygwin

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 18 Jan 2002 04:26 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Balo   (8 posts)  [Biography] bio
Date Reply #1 on Sun 27 Jan 2002 08:42 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 27 Jan 2002 09:33 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Kalahn   United Kingdom  (138 posts)  [Biography] bio   Moderator
Date Reply #3 on Sun 27 Jan 2002 10:10 PM (UTC)  quote  ]
Message
1.69q compiles clean out of the box on Cygwin.

- Kal

Kalahn
Developer of the Dawn of Time codebase
http://www.dawnoftime.org/
[Go to top] 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.


2,838 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]