Register forum user name Search FAQ

Gammon Forum

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 ➜ SMAUG coding ➜ Help compiling....

Help compiling....

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


Posted by USER007   (124 posts)  Bio
Date Tue 04 Nov 2003 07:28 PM (UTC)

Amended on Tue 04 Nov 2003 07:37 PM (UTC) by USER007

Message
I got this snippet to add the Altanos Compass Display and I add the code but I don't know how to recompile it; the snippet said to make clean and recompile. I followed the guide that Nick made but its a little different...

Owner@Starblazer ~/winsmaug1.4a/src
$ mv makefile makefile.unix
mv: cannot stat `makefile': No such file or directory

I probably typed in the wrong thing since it says "no such file" so could I please use a little help? :P
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Tue 04 Nov 2003 07:39 PM (UTC)
Message
You have to type it in exactly like it said. It said:
Quote:

If you are using Unix (Linux or whatever) skip this step. Otherwise, if you are using Cygwin, rename the original Makefile as Makefile.Unix and then rename Makefile.Cygwin as Makefile:


$ mv Makefile Makefile.Unix
$ mv Makefile.Cygwin Makefile


This step changes slightly some of the parameters in the Makefile to eliminate compile or link errors.



You typed:

$ mv makefile makefile.unix

You may call that a futile difference, but you're going to have to live with case sensitivity in a Unix-based environment. Follow guides to the letter young Padawan, do not make creative improvements. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by USER007   (124 posts)  Bio
Date Reply #2 on Tue 04 Nov 2003 07:45 PM (UTC)

Amended on Tue 04 Nov 2003 07:50 PM (UTC) by USER007

Message
Heh. I typed it like you said:
Owner@Starblazer ~/winsmaug1.4a/src
$ mv Makefile Makefile.Unix
mv: cannot stat `Makefile': No such file or directory

and it didn't work... and what if I only changed act_info.c, build.c, and mud.h? Couldn't I just type "make act_info" and the same with the other 2? Or do I have to compile all the other files at the same time?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 04 Nov 2003 08:38 PM (UTC)
Message
First thing to do when it says "no such file" is to type "ls" (list) and see if the file is in fact there, and exactly how it is spelt.

You cannot "make" individual files, the Makefile gives rules for compiling everything. You could conceivably compile (gcc) individual files, but then you still need to link them, and to do that you need the other object files as well. Unless you are a Unix expert, and know exactly what you are doing, I would stick to using "make".


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #4 on Tue 04 Nov 2003 08:40 PM (UTC)
Message
One thing that springs to mind is that you are not using the exact distribution mentioned in my compiling page. A winsmaug distribution may be designed for Windows (judging by the name) and thus they may not have supplied a makefile (Makefile) in the first place.

However using the Makefile from the download suggested on the compiling page *may* work - the actual files needed are probably similar.

- Nick Gammon

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


14,864 views.

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

Go to topic:           Search the forum


[Go to top] top

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