(New message)
Subject review (reverse sequence)
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sun 20 Sep 2009 06:40 PM (UTC) [ quote
]
Message
Does the compile succeed? Is there a "swr" file anywhere? Or a "swr.exe" in other directories? If not, the compile isn't succeeding.
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Guido Sharpsword
USA (37 posts) bio
Date
Sun 20 Sep 2009 05:36 PM (UTC) [ quote
]
Message
Updated my Makefile per a post by Keberus, and now I get the following Error:
Done Compiling mud.
chmod: cannot access 'swr.exe': Nosuch file or directory
make[1]: *** [swr] Error 1
make: *** [all] Error 2
Here is the revised Makefile:
CC = gcc
PROF =
NOCRYPT =
#Uncomment the line below if you are getting undefined references to dlsym, dlopen, and dlclose.
#Comment it out if you get errors about ldl not being found.
#NEED_DL = -ldl
#Uncomment if using CYGWIN to compile with
CYGWIN_FLAG = -DCYGWIN
#Some systems need this for dynamic linking to work.
EXPORT_SYMBOLS = -export-dynamic
C_FLAGS = -g2 -Wall $(EXPORT_SYMBOLS) $(CYGWIN_FLAG) $(PROF) $(NOCRYPT) $(DBUGFLG) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(EXPORT_SYMBOLS) $(CYGWIN_FLAG) $(NEED_DL) -lz -g2
#Comment out to disable cargo
USECARGO = 1
ifdef USECARGO
C_FLAGS := $(C_FLAGS) -DUSECARGO
endif
C_FILES = 11.c act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
bounty.c build.c changes.c clans.c color.c comm.c comments.c \
const.c copyover.c db.c editor.c fight.c finfo.c force.c \
fskills.c functions.c handler.c hashstr.c hunter.c interp.c keb.c \
magic.c makeobjs.c marriage.c md5.c mccp.c misc.c mud_comm.c \
mud_prog.c newarena.c pfiles.c planets.c player.c renumber.c reset.c \
save.c ships.c shops.c skills.c slay.c slicers.c slotm.c \
space.c special.c swskills.c tables.c tech.c track.c update.c
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
ifdef CYGWIN_FLAG
SWR = swr.exe
else
SWR = swr
endif
SWR_OLD = ../bin/swr_old.exe
COPYFILE = ../bin/cygwin/copyfile
all:
$(MAKE) -s swr
# pull in dependency info for *existing* .o files
-include dependencies.d
swr: $(O_FILES)
rm -f $(SWR)
ifdef CYGWIN_FLAG
echo "Generating dependency file ...";
$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
dlltool --export-all --output-def swr.def $(O_FILES)
dlltool --dllname $(SWR) --output-exp swr.exp --def swr.def
else
$(CC) -o $(SWR) $(O_FILES) $(L_FLAGS) -lm -lcrypt
endif
echo " ";
echo "Done compiling mud.";
chmod g+w $(SWR)
chmod a+x $(SWR)
chmod g+w $(O_FILES)
ifdef CYGWIN_FLAG
./$(COPYFILE)
endif
mv $(SWR) ../bin
clean:
ifdef CYGWIN_FLAG
rm -f o/*.o ../bin/other/swr.def ../bin/cygwin/swr.exp
chmod g+w $(COPYFILE)
chmod a+x $(COPYFILE)
./$(COPYFILE)
# $(MAKE) all
else
rm -f o/*.o $(SWR_OLD) ../bin/$(SWR) ../bin/${SWR}.exe ../bin/win/swr.def ../bin/cygwin/swr.exp
# $(MAKE) all
endif
purge:
ifdef CYGWIN_FLAG
rm -f o/*.o ../bin/cygwin/swr.def ../bin/cygwin/swr.exp dependencies.d
else
rm -f o/*.o $(SWR_OLD) $(SWR) ../bin/cygwin/swr.def ../bin/cygwin/swr.exp
endif
o/%.o: %.c
# echo " Compiling $@....";
echo " $@";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
------
THANKS!
-------
Guido Sharpsword top
Posted by
Guido Sharpsword
USA (37 posts) bio
Date
Sat 19 Sep 2009 11:14 PM (UTC) [ quote
]
Message
Actually the error I am getting right now is this:
Done Compiling Mud.
chmod: cannot access 'swr': No such file or directory
make[1]: *** [swr] Error 1
make: *** [all] Error 2
Any ideas?
-------
Guido Sharpsword top
Posted by
Guido Sharpsword
USA (37 posts) bio
Date
Sat 19 Sep 2009 11:08 PM (UTC) [ quote
]
Message
Here is my entire Makefile, lemme know if there is anything else ya need =D, and thanks as usual, Zeno.
---------------------------------------
CC = gcc
PROF =
NOCRYPT =
#Uncomment the line below if you are getting undefined references to dlsym, dlopen, and dlclose.
#Comment it out if you get errors about ldl not being found.
#NEED_DL = -ldl
#Uncomment if using CYGWIN to compile with
CYGWIN_FLAG = -DCYGWIN
#Some systems need this for dynamic linking to work.
EXPORT_SYMBOLS = -export-dynamic
C_FLAGS = -g2 -Wall $(EXPORT_SYMBOLS) $(CYGWIN_FLAG) $(PROF) $(NOCRYPT) $(DBUGFLG) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(EXPORT_SYMBOLS) $(CYGWIN_FLAG) $(NEED_DL) -lz -g2
#Comment out to disable cargo
USECARGO = 1
ifdef USECARGO
C_FLAGS := $(C_FLAGS) -DUSECARGO
endif
C_FILES = 11.c act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
bounty.c build.c changes.c clans.c color.c comm.c comments.c \
const.c copyover.c db.c editor.c fight.c finfo.c force.c \
fskills.c functions.c handler.c hashstr.c hunter.c interp.c keb.c \
magic.c makeobjs.c marriage.c md5.c mccp.c misc.c mud_comm.c \
mud_prog.c newarena.c pfiles.c planets.c player.c renumber.c reset.c \
save.c ships.c shops.c skills.c slay.c slicers.c slotm.c \
space.c special.c swskills.c tables.c tech.c track.c update.c
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
SWR = swr
SWR_OLD = ../bin/swr_old
COPYFILE = ../bin/cygwin/copyfile
all:
$(MAKE) -s swr
# pull in dependency info for *existing* .o files
ifdef CYGWIN_FLAG
-include dependencies.d
endif
swr: $(O_FILES)
rm -f $(SWR)
ifdef CYGWIN_FLAG
echo "Generating dependency file ...";
$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
else
$(CC) -o $(SWR) $(O_FILES) $(L_FLAGS) -lm -lcrypt
endif
echo " ";
echo "Done compiling mud.";
chmod g+w $(SWR)
chmod a+x $(SWR)
chmod g+w $(O_FILES)
ifdef CYGWIN_FLAG
./$(COPYFILE)
endif
mv $(SWR) ../bin
clean:
ifdef CYGWIN_FLAG
rm -f o/*.o ../bin/other/swr.def ../bin/cygwin/swr.exp
chmod g+w $(COPYFILE)
chmod a+x $(COPYFILE)
./$(COPYFILE)
# $(MAKE) all
else
rm -f o/*.o $(SWR_OLD) ../bin/$(SWR) ../bin/${SWR}.exe ../bin/win/swr.def ../bin/cygwin/swr.exp
# $(MAKE) all
endif
purge:
ifdef CYGWIN_FLAG
rm -f o/*.o ../bin/cygwin/swr.def ../bin/cygwin/swr.exp dependencies.d
else
rm -f o/*.o $(SWR_OLD) $(SWR) ../bin/cygwin/swr.def ../bin/cygwin/swr.exp
endif
o/%.o: %.c
# echo " Compiling $@....";
echo " $@";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
-------
Guido Sharpsword top
Posted by
Zeno
USA (2,867 posts) bio
Moderator
Date
Sat 19 Sep 2009 06:30 PM (UTC) [ quote
]
Message
Can you show us those lines?
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org top
Posted by
Guido Sharpsword
USA (37 posts) bio
Date
Sat 19 Sep 2009 04:34 PM (UTC) [ quote
]
Message
I get thge following error when I try to make:
include dependencies.d
make: include: Command not found
make: [all] Error 127 (ignored)
and thats all it says. Any help? =D Thanks!
----------------
I'm running SWFotE 2.1+ using Cygwin. Is there an install option, like a package, I ned to add to be able toexecvute the "include" command? Like I had to do for the "make" command? THanks!
-------
Guido Sharpsword 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,446 views.
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )