Help compiling....

Posted by USER007 on Tue 04 Nov 2003 07:28 PM — 5 posts, 19,173 views.

#0
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
Amended on Tue 04 Nov 2003 07:37 PM by USER007
USA #1
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. :)
#2
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?
Amended on Tue 04 Nov 2003 07:50 PM by USER007
Australia Forum Administrator #3
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".

Australia Forum Administrator #4
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.