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
➜ SMAUG
➜ Compiling the server
➜ Compiling SWR smaug with Cygwin
|
Compiling SWR smaug with Cygwin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Xzzy
USA (8 posts) Bio
|
| Date
| Thu 07 Mar 2002 04:17 AM (UTC) |
| Message
| Hello all.
I am trying to compile SWR smaug with Cygwin.
I got the source from this web site.
ftp://ftp.gammon.com.au/smaug/StarWarsSce.zip
I put the source files into
C:\cygwin\bin\Nickolas\dist\src
When I type MAKE to compile the code, i get this error...
$ make
make swreality
make[1]: Entering directory `/usr/bin/Nickolas/dist/src'
gcc -c -g3 -Wall act_comm.c
In file included from act_comm.c:28:
mud.h:2638: field `total_time' has incomplete type
mud.h:2639: field `min_time' has incomplete type
mud.h:2640: field `max_time' has incomplete type
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/usr/bin/Nickolas/dist/src'
make: *** [all] Error 2
I've checked some other post's, but they havn't really helped. Thanks in advance.
-Nickolas.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 08 Mar 2002 02:26 AM (UTC) Amended on Fri 08 Mar 2002 09:08 AM (UTC) by Nick Gammon
|
| Message
| There are some more posts about compiling SWR smaug, search on the word 'timeval' to see some relevant ones.
You must have done more than just used the archive you mentioned, because it doesn't have a makefile in it. I assume that you took a standard smaug archive and unzipped the other one on top of it.
Anyway, what I did to get further was:
- Change all references to :
#include <time.h>
to
#include <sys/time.h>
In comm.c, uncomment the following lines near the start:
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <arpa/telnet.h>
#include <netdb.h>
Then I got a whole lot of compile error about DEITY_DATA, which was a structure that was in the old mud.h but not in the new one for reasons that weren't clear.
The thing is that the source that you got from my site was designed to be compiled with MS Visual C++. The original SWR source (for Unix) should work OK under Cygwin. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Xzzy
USA (8 posts) Bio
|
| Date
| Reply #2 on Fri 08 Mar 2002 06:12 AM (UTC) |
| Message
| *curses self out for having a PC that hates him!*
i give up. months and months wasted on this shit...
i give up | | 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.
11,539 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top