• 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 Problems.

Xexza

New Member
Joined
Sep 3, 2007
Messages
1,053
Reaction score
3
After every new version of TFS, Im getting errors.
So how do I compile the 0.2.9?
Post linkers and parameters please.
 
How about you post the errors?
 
Code:
Kompilator: Default compiler
Building Makefile: "D:\silnik\Makefile.win"
Wykonywanie  make...
make.exe -f "D:\silnik\Makefile.win" all
g++.exe -c actions.cpp -o actions.o -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__SERVER_PROTECTION__ 

In file included from creatureevent.h:24,
         from creature.h:33,
         from player.h:25,
         from actions.cpp:24:
luascript.h:564: error: `luaL_Reg' does not name a type

make.exe: *** [actions.o] Error 1

Wykonanie zakończone


I cant compile ;/
Plx help


In README you write:
Code:
Extract them anywhere and then run devcpp.exe, press on the menuitem
"File -> Open Project or File" and choose TheForgottenServer.dev.

but where is TheForgottenServer.dev ??
 
The errors wont make sense, and I can't compile right now (doesnt have Dev-Cpp available).

All errors were linker errors.

So if someone managed to compile it, mind someone post his linkers and parameters?
 
linker
Code:
-lgmp
-lluasql-mysql
-lluasql-sqlite3
-llua5.1
-lmysql
-lregex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-s
-lboost-regex-mgw-1_34_1
-lboost-system-mgw-1_34_1
-lws2_32
-Wl,-Map=forgottenserver.map

C++ Compiler:
Code:
-D__USE_MYSQL__
-D__EXCEPTION_TRACER__
 
1. Downloaded newest sources
2. Downloaded Dev-Cpp from Talaturen
3. Made a dev file with slawkens parameters and linkers.
4. Clicked compile
5. Result:
errorrrl0.jpg
 
Code:
O1
-lboost_system
-lgmp
-lluasql-mysql
-lluasql-sqlite3
-llua5.1
-lmysql
-lregex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
Code:
-D__NO_HOMEDIR_CONF__
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__RULEVIOLATIONREPORT__
Try this.
 
Code:
O1
-lboost_system
-lgmp
-lluasql-mysql
-lluasql-sqlite3
-llua5.1
-lmysql
-lregex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
Code:
-D__NO_HOMEDIR_CONF__
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__RULEVIOLATIONREPORT__
Try this.

-D__NO_HOMEDIR_CONF__ Is for LinuX.
 
[Build Error] [TheForgottenServer.exe] Error 1


[When using Elf's conf]
 
[Build Error] [TheForgottenServer.exe] Error 1


[When using Elf's conf]

That says nothing, paste the compile log instead.
 
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Johannes\Skrivbord\Sources\forgottenserver\trunk\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Johannes\Skrivbord\Sources\forgottenserver\trunk\Makefile.win" all
windres.exe -i TheForgottenServer_private.rc --input-format=rc -o TheForgottenServer_private.res -O coff

g++.exe account.o actions.o admin.o allocator.o ban.o baseevents.o chat.o combat.o commands.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemysql.o databasesqlite.o depot.o exception.o fileloader.o game.o gui.o house.o housetile.o inputbox.o ioguild.o iologindata.o iomap.o iomapserialize.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 spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"lib" -mwindows O1 -lboost_system -lgmp -lluasql-mysql -lluasql-sqlite3 -llua5.1 -lmysql -lregex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s

g++.exe: O1: No such file or directory

make.exe: *** [TheForgottenServer.exe] Error 1

Execution terminated
 
Change O1 to -O1 in linkers.
 
Change O1 to -O1 in linkers.
Code:
actions.o(.text+0x1662):actions.cpp: undefined reference to `BedItem::canUse(Player*) const'
actions.o(.text+0x168b):actions.cpp: undefined reference to `BedItem::sleep(Player*)'
house.o(.text+0xea1):house.cpp: undefined reference to `BedItem::wakeUp(Player*)'
iomap.o(.text+0x1b27):iomap.cpp: undefined reference to `BedItem::findPartner()'
item.o(.text+0x523):item.cpp: undefined reference to `BedItem::BedItem(unsigned short)'
player.o(.text+0x7033):player.cpp: undefined reference to `Beds::instance()'
player.o(.text+0x703f):player.cpp: undefined reference to `Beds::getBedBySleeper(unsigned int)'
player.o(.text+0x705a):player.cpp: undefined reference to `BedItem::wakeUp(Player*)'
tools.o(.text+0x158):tools.cpp: undefined reference to `SHA1::SHA1()'
tools.o(.text+0x1ca):tools.cpp: undefined reference to `SHA1::Input(unsigned char const*, unsigned int)'
tools.o(.text+0x1e2):tools.cpp: undefined reference to `SHA1::Result(unsigned int*)'
tools.o(.text+0x2f8):tools.cpp: undefined reference to `SHA1::~SHA1()'
tools.o(.text+0x36b):tools.cpp: undefined reference to `SHA1::~SHA1()'
collect2: ld returned 1 exit status
I dont know why.
I did exactly everything basic and I didnt touch any source files.
 
Add beds.cpp/h and sha1.cpp/h to the project and try to rebuild.
 
Add beds.cpp/h and sha1.cpp/h to the project and try to rebuild.

Thanks alot Talaturen, that worked!

Do you have any plans for improving the death delay?

(Making it longer)
 
Back
Top