• 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!

Solved How to upload fixes.

kosmik1

New Member
Joined
Jun 7, 2010
Messages
29
Reaction score
2
Hi, i have compiled serwer on linux and i made some changes in files but now i want to upload fixes. How to compile it correctly.

only ./build.sh is not enough
 
Last edited by a moderator:
It's the same process of compiling it for the first time. Well, if I'm wrong someone correct me, but this time you don't need to run cmake (if you did before) or autogen.sh
 
so I do
apt-get update

apt-get upgrade

apt-get install libboost1.42-dev libboost-system1.42-dev libboost-filesystem1.42-dev libboost-date-time1.42-dev libboost-regex1.42-dev libboost-thread1.42-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libcurl4-openssl-dev libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8 -o APT::Cache-Limit=12582912000

./autogen.sh

./configure --enable-mysql --enable-remote-control --enable-server-diag

./build.sh <and if i try ...

Configure complete, now you may type './build.sh'.
root@vz26370:/Servertibia/trunk.r3884# ./build.sh
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 2 cores, using 3 processes
make all-am
make[1]: Entering directory `/Servertibia/trunk.r3884'
make[1]: Leaving directory `/Servertibia/trunk.r3884'

whats wrong?
 
There is not need to run the package fetching if you already did it. If you edited the source code just re-run "make" and it will compile the new file and re-link an executable with the new changes.

If you want to be safe, run "make clean" before "make"
 
IF i have at the end


pe -MT weapons.o -MD -MP -MF .deps/weapons.Tpo -c -o weapons.o weapons.cpp
mv -f .deps/weapons.Tpo .deps/weapons.Po
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT vocation.o -MD -MP -MF .deps/vocation.Tpo -c -o vocation.o vocation.cpp
mv -f .deps/vocation.Tpo .deps/vocation.Po
g++ -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -o theforgottenserver actions.o allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o depot.o dispatcher.o exception.o fileloader.o game.o globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -lmysqlclient -llua -lcrypto -lcryptopp -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz -lxml2
make[1]: Leaving directory `/Servertibia/trunk.r3884'


compilation was successful or not? because I do not see changes

If "make clean"


root@:/Servertibia/trunk.r3884# make clean
test -z "theforgottenserver" || rm -f theforgottenserver
rm -f *.o
 
Last edited by a moderator:
Back
Top