EOSERV Forum > Programming > Eoserv compiling guide 380+ 5/27/2013
Topic is locked.
Page: << 1 >>
Eoserv compiling guide 380+ 5/27/2013
Author Message
Post #193334 Eoserv compiling guide 380+ 5/27/2013

Benefits of using an open source:

-Gives you the ability to use code released by other users

-Gives you the chance to edit stuff that can't be edited by the configuration files 


Download(In order please)

Codeblocks (install this)

Mingw32 (install this in C:\)

Eoserv Lastest Rev (get the latest one)(keep this)

Includes.rar : Mirror Mirror Mirror  (keep this)


Extract eoserv then open the trunk folder , make a new folder called include then extract includes.rar to it.

open trunk\project\mingw.cbp

then go to settings -> compiler and debugger settings -> in compiler flags tick the line with "-std=c++0x"  (if you can't do this step its not essential )

then go to Project->Build options->Search directories->Compiler then add Trunk\includes (keep at relative path)

then go to Project->Build options->Search directories->Linker then add Trunk\includes (keep at relative path)


Errors you might get

-fatel error: mysql.h : No such file or directory.

Go to headers\src\database_impl.hpp

replace #include <mysql.h> to #include "mysql.h"

replace #include <sqlite3.h> to #include "sqlite3.h"

-SQLite library version mismatch! Please recompile EOSERV with the correct SQLite library

Go source\src\database.cpp

then search for

Console::Err("SQLite library version mismatch! Please recompile EOSERV with the correct SQLite library.")

then replace this

if (sqlite3_libversion_number() != SQLITE_VERSION_NUMBER)

{

Console::Err("SQLite library version mismatch! Please recompile EOSERV with the correct SQLite library.");

Console::Err("  Expected version: %s", SQLITE_VERSION);

Console::Err("  Library version:  %s", sqlite3_libversion());

#ifdef WIN32

Console::Err("Make sure EOSERV is using the correct version of sqlite3.dll");

#endif // WIN32

throw Database_OpenFailed("SQLite library version mismatch");

}


with this


/*

if (sqlite3_libversion_number() != SQLITE_VERSION_NUMBER)

{

Console::Err("SQLite library version mismatch! Please recompile EOSERV with the correct SQLite library.");

Console::Err("  Expected version: %s", SQLITE_VERSION);

Console::Err("  Library version:  %s", sqlite3_libversion());

#ifdef WIN32

Console::Err("Make sure EOSERV is using the correct version of sqlite3.dll");

#endif // WIN32

throw Database_OpenFailed("SQLite library version mismatch");

}

*/


-only declarations of constructors can be 'explicit'

Go to settings -> compiler and debugger settings ->Toolchain executables then make sure the compiler's installtion directory is c:\MinGw

or where you manually installed it.

---
Remember when is not an organization nor a fucking group , it's simply an idea that we believe in
and live for.
The priority of Remember when should come before oxygen , as oxygen is cosmetic even life itself is
cosmetic,that's why offer our worthless lives to The "Remember when"
12 years, 7 weeks ago
Post #194782 Re: Eoserv compiling guide 380+ 5/27/2013

"Go to settings -> compiler and debugger settings ->Toolchain executables then make sure the compiler's installtion directory is c:\MinGw"


I believe when I was doing it you needed to use mingw32 so make sure you link it to the correct folder which is mingw32 which should be a subfolder.

---
I not hacker

“Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its
whole life believing that it is stupid.” - Albert Einstein : Really Great Quote Ramy!
12 years, 1 week ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Programming > Eoserv compiling guide 380+ 5/27/2013