• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Error. (Makefile)

Jester

Off
Senator
Joined
May 28, 2007
Messages
2,683
Reaction score
56
Location
Romania.
I have edited some things about the damage in the Forgotten server sources and when Im trying to compile it, I get this error:

Code:
Compiler: Default compiler
Building Makefile: "C:Documents and SettingsPropietarioEscritorio7.92 otForgotten SourcesMakefile.win"
Executing  make...
make.exe -f "C:Documents and SettingsPropietarioEscritorio7.92 otForgotten SourcesMakefile.win" all
make.exe: *** No rule to make target `all'.  Stop.

Execution terminated

I got this into "makefile":
Code:
CC=g++

CFLAGS=-I. -I/usr/include/libxml2  -I/usr/include -I/usr/include/mysql -I/usr/include/boost/regex -I/usr/include/lua5.1

LIBLINK=-L/usr/lib -lxml2 -lz -lpthread -lm -llua5.1 -lboost_thread -ldl -lgmp -lmysqlclient -lboost_regex

ENDFLAGS=-Werror -O2

OTSFLAGS=-D__linux__ -D__CONSOLE__ -D__NO_HOMEDIR_CONF__

OBJ = account.o actions.o allocator.o ban.o baseevents.o chat.o combat.o commands.o condition.o configmanager.o container.o creature.o cylinder.o database.o databasemysql.o depot.o fileloader.o game.o house.o housetile.o ioaccount.o iomap.o iomapserialize.o ioplayer.o item.o items.o logger.o luascript.o mailbox.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o player.o position.o protocol79.o rsa.o scriptmanager.o spawn.o spells.o status.o talkaction.o teleport.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o gui.o textlogger.o playerbox.o inputbox.o raids.o quests.o protocol.o scheduler.o tasks.o ioguild.o

all: theforgottenserver

theforgottenserver: $(OBJ)
	$(CC) $(CFLAGS) $(OTSFLAGS) $(ENDFLAGS) -o binary/[LINUX]TheForgottenServer $(OBJ) $(LIBLINK)
    
    %.o:%.cpp
	$(CC) $(CFLAGS) $(OTSFLAGS) $(ENDFLAGS) -c $+

Im using Windows Xp Home Edition.

Thanks in advance.
 
yes but it will be different as I have my files in other folder than yours, I don't think the problem is the make.win file, try using this linkers, in the parameters tab on project options,

C:/Dev-Cpp/lib/libxml2.lib
C:/Dev-Cpp/lib/lua5.1.dll
-lmysql
-lwsock32
-lgmp
-lregex
-s

and this include directories

C:Dev-Cppboost_1_33_1
C:Dev-Cppinclude (or where ever you have the lua5.1 include directory

and this for lib directories

C:Dev-Cppboost_1_33_1libsregex
C:Dev-Cpplib (or where you have the lua5.1 lib directory)


tell me if works ;)
 
The lastest makefile for the forgotten is:
Code:
CC = g++

CFLAGS = -I. -I/usr/include/libxml2  -I/usr/include -I/usr/include/mysql -I/usr/include/boost/regex -I/usr/include/lua5.1

LIBLINK = -L/usr/lib -lxml2 -lz -lpthread -lm -llua5.1 -lboost_thread -ldl -lgmp -lmysqlclient -lboost_regex

ENDFLAGS = -Werror -O2

OTSFLAGS = -D__linux__ -D__CONSOLE__ -D__NO_HOMEDIR_CONF__

OBJ = account.o actions.o allocator.o ban.o baseevents.o chat.o combat.o commands.o condition.o configmanager.o container.o creature.o cylinder.o database.o databasemysql.o depot.o fileloader.o game.o house.o housetile.o ioaccount.o iomap.o iomapserialize.o ioplayer.o item.o items.o logger.o luascript.o mailbox.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o player.o position.o protocol80.o rsa.o scriptmanager.o spawn.o spells.o status.o talkaction.o teleport.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o gui.o textlogger.o playerbox.o inputbox.o raids.o quests.o protocol.o scheduler.o tasks.o ioguild.o genericevents.o

all: clean theforgottenserver

clean:
	rm -rf *.o

theforgottenserver: $(OBJ)
	$(CC) $(CFLAGS) $(OTSFLAGS) $(ENDFLAGS) -o ./TheForgottenServer $(OBJ) $(LIBLINK)

    %.o:%.cpp
	$(CC) $(CFLAGS) $(OTSFLAGS) $(ENDFLAGS) -c $+
 
Back
Top