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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Help compiling SWR
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Help compiling SWR

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Dolph   (10 posts)  [Biography] bio
Date Fri 17 Jan 2003 05:27 AM (UTC)

Amended on Tue 20 Nov 2007 04:22 AM (UTC) by Nick Gammon

Message
I am trying to compile SWR with Cygwin with very little success.

I've tried using the code I got from: http://ftpgame.org/cgi-bin/directory?/pub/smaug/swr

When I type make this comes up:

$ make
make swreality
make[1]: Entering directory `C:/cygwin/src'
gcc -c -g3 -Wall act_comm.c
process_begin: CreateProcess((null), gcc -c -g3 -Wall act_comm.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [act_comm.o] Error 2
make[1]: Leaving directory `C:/cygwin/src'
C:\cygwin\bin\make.exe: *** [all] Error 2

I have also tried to use the code downloaded from this site however it doesn't have a make file so was wondering how to make the make file or where to get one that will work with this, or how to fix the above code, whichever will be quicker and easier.

Any help will be greatly appreciated, thank you.
[Go to top] top

Posted by Boborak   USA  (228 posts)  [Biography] bio
Date Reply #1 on Fri 17 Jan 2003 06:19 AM (UTC)
Message
The file you downloaded (via the link you provided) was the Win32 source (as I *believe* the swr source on this site is as well), I would assume that it would not work under Cygwin. You need to download a copy of the *nix based source.
[Go to top] top

Posted by Dolph   (10 posts)  [Biography] bio
Date Reply #2 on Fri 17 Jan 2003 06:46 AM (UTC)
Message
Really...well can you suggest what compiler I can use to compile it or where I can get the *.nix version?
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #3 on Fri 17 Jan 2003 01:25 PM (UTC)
Message
Best bet is MSVC and it wont matter which version you get for the most part.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

Posted by Dolph   (10 posts)  [Biography] bio
Date Reply #4 on Sat 18 Jan 2003 12:55 AM (UTC)
Message
Unfortunately I do not have MSVC nor do I have the money to buy it so can anyone suggest a free compiler that will work and where to get it?

If not I would still like to know where to get the *nix version.
[Go to top] top

Posted by Boborak   USA  (228 posts)  [Biography] bio
Date Reply #5 on Sat 18 Jan 2003 01:10 AM (UTC)
Message
I've heard of many Cygwin users haveing very little problems with this copy of SWR:

http://www.geocities.com/gendi_uk/download.html
[Go to top] top

Posted by Dolph   (10 posts)  [Biography] bio
Date Reply #6 on Sat 18 Jan 2003 01:41 AM (UTC)
Message
Heh, now that I think about it, I think thats where I got the code in the first place, not the other site.

But at any rate I tried all of the code from that site and came up with the same errors, though came up with a slightly different one for SWRIP:

$ make
make swrip
make[1]: Entering directory `C:/cygwin/src'
gcc -c -g3 -Wall -DREQUESTS act_comm.c
process_begin: CreateProcess((null), gcc -c -g3 -Wall -DREQUESTS act_comm.c, ...
) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [act_comm.o] Error 2
make[1]: Leaving directory `C:/cygwin/src'
C:\cygwin\bin\make.exe: *** [all] Error 2
[Go to top] top

Posted by Boborak   USA  (228 posts)  [Biography] bio
Date Reply #7 on Sat 18 Jan 2003 01:54 AM (UTC)
Message
I see a remarkable trend here. The thing taht catches my eye is: "c:\cygwin\src\" that shouldn't be. Describe the process you are using to extract the files you download. By no means should /src end up in your cygwin root.
[Go to top] top

Posted by Dolph   (10 posts)  [Biography] bio
Date Reply #8 on Sat 18 Jan 2003 03:09 AM (UTC)
Message
Well I download the file then use Winzip to to extract just the files that are in the \src directory and put them in a folder in the Cygwin root...I did not know you were not supposed to do that and didn't think it mattered much. I should also probabily point out that I'm not a programmer or anything so didn't know this.
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Sat 18 Jan 2003 05:45 AM (UTC)
Message
If I may make a gentle suggestion, a MUD server is one of the more complex pieces of code you can compile. If you are not familiar with the compilation process itself, try getting started with a simple program like the classic "hello world" ones described in most C books. This will iron out basic issues, like do you have Cygwin installed correctly.

After installing Cygwin you should have a "home" directory where you put your stuff. I don't have my Windows PC with me right now, but in my case it would be something like:

c:\cygwin\home\nick

Then you would unzip the SWR files into that, giving:

c:\cygwin\home\nick\swr-1.2.3.4

Inside that directory would be a src directory. Navigate to that and type 'make'.

There are quite a few posts here from people who have had trouble getting Cygwin to work, usually because they didn't install enough of it. Try seaching the forum for "cygwin" and see what you find.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


5,013 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]