Compiling Compiling The Forgotten Server latest source code - Last Update: 02/12/2010

Delirium

OTLand veteran
Staff member
Global Moderator
Joined
May 28, 2007
Messages
3,335
Best answers
1
Reaction score
196
Location
Athens, Greece
Hello there. I have seen many newb people that can't compile The Forgotten Server's source files. Here I will teach you how to compile the source code.

Do not forget to give me reputation points after you read it =)

Credits:
Delirium (For writing the tutorial, main core and the images)
Talaturen (Old Linux part of this tutorial & old The Forgotten Dev-C++)
Elf (First Linux compiling tutorial)
Jonern (Mentioned some errors in the tutorial)
stian (Second Linux compiling tutorial and current Dev-C++)


_______________________________________________


Windows:



First Step:


Download TheForgottenServer's source code from here:

For 0.3.6pl1:
Code:
http://otland.net/subversion.php?svn=public&file=dl.php&repname=forgottenserver&path=%2Ftags%2F0.3.6pl1%2F&rev=83&peg=83&isdir=1
For 0.2.7:
Code:
http://otland.net/subversion.php?svn=public&file=dl.php&repname=forgottenserver&path=%2Ftags%2F0.2.7%2F&rev=83&peg=83&isdir=1
Save the file on your desktop and extract it there. You should have a new folder with the source code of your preference on your desktop (or at least wherever you extracted the contents of the tar.gz file).

You should have these files (or one of this, depending on which version you want):



If you want alternative methods on how you can download the source code, check below.


Second Step:


Download this Dev C++ from here: Stian's Dev-cpp repack 0.2 (with crypto++ and 64bit) !

This Dev C++ includes Lua 5.1, Boost and many other libraries that might be essential for you.

Extract it in C:\

Third Step:


Open up your Dev-Cpp. The first time you open it, a dialogue box will open up and ask you for some of your preferences, pick whatever you wish and go ahead with the real program. When you have the main Dev-Cpp window open, do this:



Then redirect to your source code folder and open a folder called "dev-cpp" which is located inside it. Then do the following:



Note: If your Dev-Cpp starts lagging now then it's because it is parsing these files. You can see the progress at the bottom, on the status bar.

If you want the Console Version instead of the GUI, hit Alt + P, click on "Parameters" on the top of the window and add this too in the C++ Compiler Parameters:
Code:
-D__CONSOLE__
Then click "OK"

It should look like this:



Fourth Step:

When you're done with every step above, your Dev-C++ should look like this:



Now hit Ctrl + F9 in order to start the compiling process.

If everything goes fine, the progress window should look like this after some time:



Now, go to your source code folder and open the "dev-cpp" folder and check its contents, you should find this:



You're done!
_______________________________________________

Linux Debian & Ubuntu:


http://otland.net/f137/linux-ultimate-compile-guide-debian-ubuntu-included-2868/


Credits to elf for this tutorial.

------

http://otland.net/754561-post213.html

Credits to stian for this tutorial.
_______________________________________________


Source download method:

Method 1:



Step 1:


Enter this page on your browser:

For 0.3.6pl1:
Code:
http://otland.net/subversion.php?svn=public&file=dl.php&repname=forgottenserver&path=%2Ftags%2F0.3.6pl1%2F&rev=83&peg=83&isdir=1
For 0.2.7:
Code:
http://otland.net/subversion.php?svn=public&file=dl.php&repname=forgottenserver&path=%2Ftags%2F0.2.7%2F&rev=83&peg=83&isdir=1

Step 2:


Downloading will start automatically. Just wait till it is done.

_______________________________________________



Additional Information:

-
For this tutorial I spent more than 4 hours for pictures, material, download links, writing fast-source-download methods and organizing the tutorial. If you have any problem, do not hesitate to PM me or post in this thread and me or someone else will help you ASAP. However, you should understand that I might be busy and I might not reply immediately. The best thing you could do if so, is to just be patient or PMing me the link of your post in case people post more things and thus making your post "disappear". Alternatively, you can add my email address for live assistance: [email protected] - Note: If you ask me for downloads and other things without searching, I will just block you.



This is it! I hope it helped you. If it did so, please give me reputation points by clicking the button which shows two people. It's located below the "Reputation" field, of my profile :D
 
Last edited:

gerardog

New Member
Joined
Jul 1, 2007
Messages
10
Best answers
0
Reaction score
1
RE: How to compile The Forgotten Server latest sources

wow is too much :rolleyes:
 

Tauros

New Member
Joined
Jun 6, 2007
Messages
9
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

good, thanks for making this tutorial ^^
 

Sfake

New Member
Joined
Jul 1, 2007
Messages
11
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

Is good it works for me
 

Hebril

New Member
Joined
Jul 1, 2007
Messages
17
Best answers
0
Reaction score
1
RE: How to compile The Forgotten Server latest sources

Thanks , good that you included libraries
 

umby

New Member
Joined
Jun 17, 2007
Messages
28
Best answers
0
Reaction score
4
Location
Northern California
RE: How to compile The Forgotten Server latest sources

do i have to download every file from the repository into a folder

1 by 1 or am i missing a quicker method.
 
OP
Delirium

Delirium

OTLand veteran
Staff member
Global Moderator
Joined
May 28, 2007
Messages
3,335
Best answers
1
Reaction score
196
Location
Athens, Greece
RE: How to compile The Forgotten Server latest sources

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 ;)
 

madeinchina0805

New Member
Joined
Jun 9, 2007
Messages
11
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

Thank you! I was having trouble with this.
 

Zuxus

Learning C++ and Lua
Joined
Jul 2, 2007
Messages
108
Best answers
0
Reaction score
0
Location
Norway
RE: How to compile The Forgotten Server latest sources

Nice one
 

NorbisS

Came back from ether
Joined
Jun 8, 2007
Messages
130
Best answers
0
Reaction score
0
Location
Poland, Warsaw
RE: How to compile The Forgotten Server latest sources

Thnx man. I really need it :p
 

Swoff

New Member
Joined
Jul 3, 2007
Messages
8
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

Great tutorial! I've done it without any errors, really useful.
Thanks a lot.

:cool:
 

jank

New Member
Joined
Jun 14, 2007
Messages
9
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

i'm always noob with compile. Meybe this help
 

deejays

New Member
Joined
Jun 7, 2007
Messages
3
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

Tkx, now i can compile forgotten ;D
 

Kanon

New Member
Joined
Jul 8, 2007
Messages
19
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

thanks man
 

nippe

Angry Santa
Joined
Jun 30, 2007
Messages
93
Best answers
0
Reaction score
1
RE: How to compile The Forgotten Server latest sources

Thank you dude !
 

reemix

New Member
Joined
Jul 12, 2007
Messages
14
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

This will really help ppls out
 
OP
Delirium

Delirium

OTLand veteran
Staff member
Global Moderator
Joined
May 28, 2007
Messages
3,335
Best answers
1
Reaction score
196
Location
Athens, Greece
RE: How to compile The Forgotten Server latest sources

jank said:
i'm always noob with compile. Meybe this help
This WILL help :)
 

Jordan

New Member
Joined
Jul 21, 2007
Messages
15
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

I can't download the sources =/
 

martin14x

New Member
Joined
Jul 14, 2007
Messages
19
Best answers
0
Reaction score
0
RE: How to compile The Forgotten Server latest sources

Thx alot bro, i was looking for this for about 2 days. Anyways any one has the Forgotten server picture?

@edit
I did every think you said ;s

Code:
../database.h: In member function `virtual bool DatabaseMySQL::storeQuery(DBQuery&, DBResult&)':
../database.h:133: error: `void DBResult::clear()' is private

../databasemysql.cpp:153: error: within this context

../database.h:136: error: `void DBResult::setFieldName(const std::string&, unsigned int)' is private
../databasemysql.cpp:159: error: within this context

../databasemysql.cpp:168: error: 'class DBResult' has no member named 'addRow'

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

Execution terminated
 
Top