• 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 How to compile trunk

Fare

Advanced OT User
Joined
Apr 3, 2008
Messages
2,387
Reaction score
151
Location
Ukraine
Which Linkers\C++ compilers I must using while compiling trunk, also I saw where Elf said :

Code:
CFLAGS = -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2

LIBLINK = -L/usr/lib -lxml2 -lpthread -llua5.1 -lboost_thread -lgmp -lmysqlclient -lboost_regex -lsqlite3 -llua5.1-sql-mysql -llua5.1-sql-sqlite -ldl -lboost_system

FLAGS = -D__USE_MYSQL__ -D__USE_SQLITE__ -D__NO_HOMEDIR_CONF__ -D__LOGIN_SERVER__

OBJ = account.o actions.o admin.o allocator.o baseevents.o beds.o creature.o creatureevent.o chat.o combat.o commands.o condition.o configmanager.o connection.o container.o cylinder.o database.o databasemysql.o databasesqlite.o depot.o exception.o fileloader.o game.o gameservers.o gui.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o inputbox.o item.o items.o logger.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o playerbox.o position.o protocol.o protocolgame.o protocollogin.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o vocation.o waitlist.o weapons.o

all: forgottenserver

new: clean forgottenserver

clean:
	rm -rf *.o

forgottenserver: $(OBJ)
	g++ $(CFLAGS) $(FLAGS) -o ./ForgottenServer $(OBJ) $(LIBLINK)

    %.o:%.cpp
	g++ $(CFLAGS) $(FLAGS) -c $+


My devcpp didn't have these librarys(I downloaded right), can Elf update Devcpp? It will be usefull for all players, isn't?

Don't ignore me plx :D becouse it is not a simply request, I think all need this ;] becouse I got some errors(not in compiling, but in connection\game i think) while compile trunk with tutorial which was maked for tags xD
 
yup i also need this since trunk is more updated. (not sure) but i saw stuff in it not available in tags and u can't add them to tags without edits big edits
 
Linkers
Code:
-lxml2.dll
-lmysql
-lsqlite3
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lboost_system
-lboost_regex
-lws2_32
-lgmp
-lmswsock
-s
-Wl,-Map=forgottenserver.map
And c++ compiler which i'm using
Code:
-D__USE_MYSQL__
-D__EXCEPTION_TRACER__
-D__GUI_LOGS__
 
Back
Top