EOSERV Wiki > Page: Compiling EOSERV > History > Revision Diff

Revision Diff: Compiling EOSERV

Revision by at 17th Jan 2012 01:35 pm
DeletionsAdditions
== Setting Up ==
'''NOTE: Currently tested on Rev 264'''
Firstly, Create a directory where you would like your server to be setup into. For tutorial purposes I shall be using '''C:\eoserv'''.
* Follow this guide to get the latest EOSERV revision [[http://eoserv.net/wiki/Getting_EOSERV|Getting_EOSERV]].
* Download the needed files from my files depot [[http://files.desmondtaylor.co.uk/neededfiles.zip|here]].
Extract those files and place them directly into the trunk directory with the EOSERV source.
== Build Options ==
Okay open the project with Code::Blocks. If you do not have this then download the one without MinGW from the Code::Blocks website [[http://www.codeblocks.org/downloads|here]]. You need to download the GCC Compiler to compile eoserv and can be obtained from [[http://sourceforge.net/projects/mingw/files/|here]]. '''Note: You must install the C and C++ Compiler.'''
Before you can compile eoserv you must change the build options. To do this click '''Projects > Build Options...'''
Click on the '''Linker Settings''' tab and copy the following into the '''Other Linker Options''' text area.
<pre>
-static-libgcc
-static-libstdc++
</pre>
Click on the '''Compiler''' tab then add '''"..\include"'''.
Now click the '''Linker''' tab then add '''"..\"''' and '''"..\lib"'''.
Without quotes (").
== Compiling ==
Now this is the part you've been waiting for. Simply select '''Build > Build''' and it shall compile it for you.
Note: This could take some time so grab a drink.
== Download ==
Download the following programs and files if you don't have them already.<br />
* [[http://www.codeblocks.org/downloads/26|Code::Blocks]] IDE (without MinGW, latest version)<br />
* [[http://tdm-gcc.tdragon.net/download|TDM-GCC]] compiler (bundle installer with SJLJ, latest version)<br />
* [[http://ducci.nl/eoserv/neededfiles.zip|Needed files]]<br />
== Set up ==
Install Code::Blocks and TDM-GCC.<br />
Extract the EOSERV source to the directory where you want to set up your server (e.g. C:\eoserv).<br />
Extract the needed files to your EOSERV directory.<br />
== Configure ==
Open the EOSERV project file (eoserv\project\mingw.cbp). Code::Blocks will load the project.<br />
Open '''Project > Build options''' and go to the '''Search directories''' tab.<br />
Go to the '''Compiler''' tab. Add '''"..\include"''' (without quotation marks).<br />
Go to the '''Linker''' tab. Add '''"..\lib"'''.<br />
== Build ==
In the upper left corner, select a build target from the drop down menu.<br />
* Targets containing '''DEBUG''' are for debug builds.<br />
* Targets containing '''MYSQL''' are for MySQL-supportive builds.<br />
* Targets containing '''SQLITE''' are for SQLite-supportive builds.<br />
Go to the '''Build''' menu and select '''Build'''.<br />
EOSERV Wiki > Page: Compiling EOSERV > History > Revision Diff