• 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 Compiling The Forgotten Server latest source code - Last Update: 02/12/2010

I have an error that when i open the forgotten server it says press any button to continue and then it closed.

plz any help?? :(

Same here, looks like only 2 people compiled it and other noobs just gets posts.
 
Ehh, its don't work again for me. I tried really many tutorials about compiling OTserv. I know html, php, pascal, xml, lua, but in this time i'm learing C++. I'm beginner. I can make another program's.

But i can't compile sources!

I have tryinf many times, with many servers. Always same!

If someone can help me, what i'm doing wrong (I'm doing all 100% same as tutorial).

I will copy here some my errors.

Code:
1 E:\Sławek\OTS\Forgotten sources\actions.cpp [Warning] `nul.gcda' is not a gcov data file 
29 E:\Sławek\OTS\Forgotten sources\condition.h libxml/xmlmemory.h: No such file or directory. 
127 E:\Sławek\OTS\Forgotten sources\condition.h `xmlNodePtr' does not name a type
128 E:\Sławek\OTS\Forgotten sources\condition.h `unserialize' declared as a `virtual' field 
25 E:\Sławek\OTS\Forgotten sources\creature.h:31,               from .\player.h                  from ../creature.h:31,               from ../player.h 
33 E:\Sławek\OTS\Forgotten sources\creatureevent.h:24,               from .\creature.h In file included from ../creatureevent.h:24,               from ../creature.h 
39 E:\Sławek\OTS\Forgotten sources\luascript.h lauxlib.h: No such file or directory. 
40 E:\Sławek\OTS\Forgotten sources\luascript.h lualib.h: No such file or directory. 
287 E:\Sławek\OTS\Forgotten sources\luascript.h expected `;' before '(' token   <<<<THIS I HAVE MEYBE x200.
44 E:\Sławek\OTS\Forgotten sources\baseevents.h ISO C++ forbids declaration of `p' with no type 
48 E:\Sławek\OTS\Forgotten sources\tools.h expected primary-expression before "const" 
64 E:\Sławek\OTS\Forgotten sources\tools.h `tokenizer' has not been declared 
42 E:\Sławek\OTS\Forgotten sources\tasks.h `boost' has not been declared 
81 E:\Sławek\OTS\Forgotten sources\actions.h `configureEvent' declared as a `virtual' field 
128 E:\Sławek\OTS\Forgotten sources\actions.cpp At global scope: 
571 E:\Sławek\OTS\Forgotten sources\actions.cpp `pushPosition' is not a member of `LuaScriptInterface'

I really don't know why i have that much errors. I coppied only meybe my 3% errors. I have very much! :(

I'm not newbie, i understand much. If someone can me learn to compile any sources. ;)

Thank you.
 
Everything seems to be going great until I get to here...

Code:
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -D__CONSOLE__ -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -D__TEMPORARY_CRASH_FIX__ -Werror -O2 -c database.cpp
In file included from database.cpp:31:
databasesqlite.h:29:21: error: sqlite3.h: No such file or directory
databasesqlite.h:85: error: ISO C++ forbids declaration of âsqlite3â with no type
databasesqlite.h:85: error: expected â;â before â*â token
make: *** [database.o] Error 1

EDIT: Got it working. I needed to install the libsqlite3-dev package, might want to include that in your tutorial ;)
 
Last edited:
Ok, now i haven't this errors, what i posted up.

But i have now 50 others errors. I don't understand why, when i'm doing all same as this tutorial.

I CAN PAY (Real money), IF SOMEONE WILL SAY ME WHAT I'M DOING WRONG. AND LEARN ME COMPILE FORGOTTEN SOURCES.

My log from compilation:

Code:
Kompilator: Default compiler
Building Makefile: "E:\Sławek\OTS\WodzislawskiOTS\sources\devcpp\Makefile.win"
Wykonywanie  make...
make.exe -f "E:\Sławek\OTS\WodzislawskiOTS\sources\devcpp\Makefile.win" all
g++.exe -c ../actions.cpp -o ../actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/others/lua-5.1/include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__RULEVIOLATIONREPORT__  

In file included from ../map.h:35,
                 from ../game.h:29,
                 from ../actions.cpp:27:
../tools.h:34:31: boost/tokenizer.hpp: No such file or directory
In file included from ../map.h:35,
                 from ../game.h:29,
                 from ../actions.cpp:27:
../tools.h:35: error: `boost' has not been declared
../tools.h:35: error: expected init-declarator before '<' token
../tools.h:35: error: expected `,' or `;' before '<' token

../tools.h:64: error: `tokenizer' has not been declared
../tools.h:64: error: `iterator' was not declared in this scope

../tools.h:64: error: `it' was not declared in this scope
../tools.h:64: error: `tokenizer' has not been declared
../tools.h:64: error: `iterator' was not declared in this scope

In file included from ../game.h:36,
                 from ../actions.cpp:27:
../scheduler.h:24:30: boost/function.hpp: No such file or directory
../scheduler.h:25:26: boost/bind.hpp: No such file or directory
In file included from ../scheduler.h:32,
                 from ../game.h:36,
                 from ../actions.cpp:27:
../tasks.h:38: error: `boost' has not been declared
../tasks.h:38: error: expected `)' before '<' token
../tasks.h:42: error: `boost' has not been declared
../tasks.h:42: error: ISO C++ forbids declaration of `function' with no type
../tasks.h:42: error: expected `;' before '<' token

../tasks.h:44: error: `boost' has not been declared
../tasks.h:44: error: `createTask' is neither function nor member function; cannot be declared friend
../tasks.h:44: error: expected `;' before '(' token
../tasks.h: In member function `void Task::operator()()':
../tasks.h:33: error: `m_f' undeclared (first use this function)
../tasks.h:33: error: (Each undeclared identifier is reported only once for each function it appears in.)
../tasks.h: At global scope:
../tasks.h:47: error: `boost' has not been declared
../tasks.h:47: error: `createTask' declared as an `inline' variable
../tasks.h:47: error: `function' was not declared in this scope
../tasks.h:47: error: expected primary-expression before "void"
../tasks.h:47: error: expected `,' or `;' before '{' token

In file included from ../game.h:36,
                 from ../actions.cpp:27:
../scheduler.h:50: error: `boost' has not been declared
../scheduler.h:50: error: `function' has not been declared
../scheduler.h:50: error: expected `,' or `...' before '<' token
../scheduler.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../scheduler.h:58: error: `boost' has not been declared
../scheduler.h:58: error: `function' has not been declared
../scheduler.h:58: error: expected `,' or `...' before '<' token

../scheduler.h:58: error: ISO C++ forbids declaration of `parameter' with no type
../scheduler.h: In constructor `SchedulerTask::SchedulerTask(uint32_t, int)':
../scheduler.h:50: error: `f' undeclared (first use this function)

../scheduler.h: At global scope:
../scheduler.h:61: error: `boost' has not been declared
../scheduler.h:61: error: `function' has not been declared
../scheduler.h:61: error: expected `,' or `...' before '<' token
../scheduler.h:62: error: ISO C++ forbids declaration of `parameter' with no type
../scheduler.h: In function `SchedulerTask* createSchedulerTask(uint32_t, int)':
../scheduler.h:63: error: `f' undeclared (first use this function)

In file included from ../actions.cpp:32:
../house.h:28:27: boost/regex.hpp: No such file or directory
In file included from ../actions.cpp:32:
../house.h: At global scope:

../house.h:57: error: `boost' has not been declared
../house.h:57: error: `regex' was not declared in this scope
../house.h:57: error: template argument 1 is invalid
../house.h:57: error: template argument 1 is invalid
../house.h:57: error: template argument 2 is invalid
../house.h:57: error: ISO C++ forbids declaration of `RegExList' with no type

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

Wykonanie zakończone

@Edit

I'm using sources from Forgotten server v0.2.3. Dev project was already here. So i used it. But i tried too make all same with this tutorial, but its impossible, always much errors.
 
Last edited:
Yes,you're missing a fast method.

A Tutorial how to download the sources at once:


1)Download tortoiseSVN from Here
2)After downloading, installing it. (might not be supported from your CPU so use the other version that is uploaded there.)If it asks you for restart click no.
3)Create a folder on the desktop called forgotten Sources.Right click it and select SVN checkout
4)Where it says URL of Rapository write:
Code:
http://forgottenserver.svn.sourceforge.net/svnroot/forgottenserver
Tick omit externals and press ok.
5)Now you have all forgotten sources in the file Forgotten Sources ;)

SVN dont download anything. Why it is so?
 
I Gotta say something is wrong with that tutorial and i dont recomend to use it =) and if u do so then theres a solution to fix the problem, download lith server (its based on forgotten), and inside his project add your files. and compile =)
 
SVN dont download anything. Why it is so?

did you download the tool?

I Gotta say something is wrong with that tutorial and i dont recomend to use it =) and if u do so then theres a solution to fix the problem, download lith server (its based on forgotten), and inside his project add your files. and compile =)

O rly?If there is something wrong then tell us what is wrong with it,cleverass
 
Last edited:
If i would know then i would tell right?, as i said only people that got the same error as me tried for real that tutorial i posted solution Thx. bye.
 
If i would know then i would tell right?, as i said only people that got the same error as me tried for real that tutorial i posted solution Thx. bye.

Then you should talk only when you know,so better be silent when you don't know a shit instead of opening your mouth.
 
Hey Nikolas!

I've downloaded your dev-c++ and fallowed the tutorial, but when I try to compile, I get an error :(

The compiler log:
Compiler: Default compiler
Building Makefile: "C:\nightmare\TFS_SVN\dev-cpp\Makefile.win"
Executing make...
make.exe -f "C:\nightmare\TFS_SVN\dev-cpp\Makefile.win" all
g++.exe -D__DEBUG__ ../account.o ../actions.o ../admin.o ../allocator.o ../ban.o ../baseevents.o ../chat.o ../combat.o ../commands.o ../condition.o ../configmanager.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 ../player.o ../playerbox.o ../position.o ../protocol80.o ../protocol.o ../quests.o ../raids.o ../rsa.o ../scheduler.o ../scriptmanager.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 nightmare_private.res -o "nightmare.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/others/boost_1_33_1/libregex" -L"C:/Dev-Cpp/others/lua-5.1/lib" -mwindows C:/Dev-Cpp/lib/libxml2.lib C:/Dev-Cpp/lib/lua5.1.dll -lmysql -lwsock32 -lgmp -lsqlite3 -lregex -s -lgmon -pg -g3

g++.exe: C:/Dev-Cpp/lib/lua5.1.dll: No such file or directory

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

Execution terminated

How can I fix it?
 
Atleast i helped with fixing the bug these people :), and you didnt a shit except saying : follow the tutorial again !
 
Back
Top