Digitx

Joined: 10th Jul 2009
Posts: 250
Re: Compiling EOSERV
Ducci posted: (6th Jan 2012, 12:13 am)
kodyt posted: (6th Jan 2012, 12:07 am)
Heres another youtube vid this ones from Tehdigitx ;) from 2010
http://www.youtube.com/watch?v=jRdwohvH2Eo
The eoserv guide i used back when I cared:
https://eoserv.net/forum/topic/5139
Thanks. Unfortunately the link to the required files is dead :(
Yeah, sorry about the site being offline, once I get some money on my card i'm going to pay for my hosting/domain.
13 years, 33 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Compiling EOSERV
If you follow the compiling guide properly it should compile. I tested it with rev 244.
Make sure you have the latest MingW GCC Compiler.
---
I am an alien and not crazy!
13 years, 33 weeks ago
|
Ducci
Joined: 29th Aug 2009
Posts: 156
Re: Compiling EOSERV
I have and I have.
Software installed:
Code::Blocks (latest version)
MinGW (latest version, installed separately)
I set it up like this:
- went to Project -> Build Options -> Linker Settings -> Other Linker Options and pasted the following to the text field:
-static-libgcc
-static-libstdc++
"Now click the Linker tab then add "..\" and "..\lib"."
I assumed you meant going to 'Search Directories' and then clicking the Linker tab, because there is no Linker tab to be found anywehere else. - added '..\' and '..\lib' to the field.
- built EOSERV using the default target (DEBUG+MYSQL+SQLITE) and got the following error:
||=== eoserv, DEBUG+MYSQL+SQLITE ===|
C:\Users\[blanked]\Downloads\EOSERV compilation test\trunk\src\database_impl.hpp|12|fatal error: mysql.h: No such file or directory|
||=== Build finished: 1 errors, 0 warnings ===|
I assumed you forgot to mention to add the 'include' folder to the Linker tab, so I added that one as well.
- again, built EOSERV using the default target (DEBUG+MYSQL+SQLITE) and got the exact same error. I figured the include, lib and root folders might have also been needed to be added to the Compiler tab.. so I went on and added
them.
- and once again, built EOSERV using the default target (DEBUG+MYSQL+SQLITE)
The build process got past the point of the MySQL lib error (conclusion: it had found it this time) but now gave me this:
||=== eoserv, DEBUG+MYSQL+SQLITE ===|
C:\Users\[blanked]\Downloads\EOSERV compilation test\trunk\src\extra\ntservice.cpp|76|warning: unused parameter 'argc' [-Wunused-parameter]|
C:\Users\[blanked]\Downloads\EOSERV compilation test\trunk\src\extra\ntservice.cpp|76|warning: unused parameter 'argv' [-Wunused-parameter]|
||warning: command line option '-std=gnu++0x' is valid for C++/ObjC++ but not for C [enabled by default]|
C:\Users\[blanked]\Downloads\EOSERV compilation test\trunk\src\util.cpp|696|warning: this decimal constant is unsigned only in ISO C90 [enabled by default]|
C:\Users\[blanked]\Downloads\EOSERV compilation test\trunk\src\util.cpp|702|warning: this decimal constant is unsigned only in ISO C90 [enabled by default]|
||=== Build finished: 0 errors, 5 warnings ===|
- added all of the three directories to the Resource Compiler tab as well... Nothing changed, got the same warnings as before this step.
Now that you've read how I did it, could you, or anyone, tell me what I did wrong, forgot or what else has to be done in order to make these warnings go away...? ---
"If you're going through hell, keep going."
13 years, 33 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Compiling EOSERV
||=== Build finished: 0 errors, 5 warnings ===|
Ignore warnings. There are no errors there so it should work just fine. You've successfully compiled EOSERV :D
---
I am an alien and not crazy!
13 years, 33 weeks ago
|
Ducci
Joined: 29th Aug 2009
Posts: 156
Re: Compiling EOSERV
Desmond posted: (6th Jan 2012, 11:19 am)
||=== Build finished: 0 errors, 5 warnings ===|
Ignore warnings. There are no errors there so it should work just fine. You've successfully compiled EOSERV :D
But what do they mean? Have you ever had a compilation without warnings?
EDIT: I tried compiling it again, got 20 warnings now. Can't seem to get them away D:
I'm getting sick of this..
---
"If you're going through hell, keep going."
13 years, 33 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Compiling EOSERV
Yes, Most open source projects you compile would produce Warnings but ignore them :P ---
I am an alien and not crazy!
13 years, 33 weeks ago
|
Ducci
Joined: 29th Aug 2009
Posts: 156
Re: Compiling EOSERV
Ducci posted: (6th Jan 2012, 11:35 am)
EDIT: I tried compiling it again, got 20 warnings now. Can't seem to get them away D:
I'm getting sick of this..
||=== eoserv, DEBUG+MYSQL+SQLITE ===|
C:\Users\...\Downloads\EOSERV compilation test\trunk\src\extra\ntservice.cpp|76|warning: unused parameter 'argc' [-Wunused-parameter]|
C:\Users\...\Downloads\EOSERV compilation test\trunk\src\extra\ntservice.cpp|76|warning: unused parameter 'argv' [-Wunused-parameter]|
||warning: command line option '-std=gnu++0x' is valid for C++/ObjC++ but not for C [enabled by default]|
C:\Users\...\Downloads\EOSERV compilation test\trunk\src\util.cpp|696|warning: this decimal constant is unsigned only in ISO C90 [enabled by default]|
C:\Users\...\Downloads\EOSERV compilation test\trunk\src\util.cpp|702|warning: this decimal constant is unsigned only in ISO C90 [enabled by default]|
||Warning: resolving _mysql_init@4 by linking to _mysql_init|
||Warning: resolving _mysql_error@4 by linking to _mysql_error|
||Warning: resolving _mysql_real_connect@32 by linking to _mysql_real_connect|
||Warning: resolving _mysql_select_db@8 by linking to _mysql_select_db|
||Warning: resolving _mysql_close@4 by linking to _mysql_close|
||Warning: resolving _mysql_real_escape_string@16 by linking to _mysql_real_escape_string|
||Warning: resolving _mysql_real_query@12 by linking to _mysql_real_query|
||Warning: resolving _mysql_errno@4 by linking to _mysql_errno|
||Warning: resolving _mysql_field_count@4 by linking to _mysql_field_count|
||Warning: resolving _mysql_store_result@4 by linking to _mysql_store_result|
||Warning: resolving _mysql_affected_rows@4 by linking to _mysql_affected_rows|
||Warning: resolving _mysql_fetch_fields@4 by linking to _mysql_fetch_fields|
||Warning: resolving _mysql_num_rows@4 by linking to _mysql_num_rows|
||Warning: resolving _mysql_fetch_row@4 by linking to _mysql_fetch_row|
||Warning: resolving _mysql_free_result@4 by linking to _mysql_free_result|
||=== Build finished: 0 errors, 20 warnings ===|
---
"If you're going through hell, keep going."
13 years, 33 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Compiling EOSERV
This is the last time I tell you. Ignore the warnings and just run the executable as you've successfully compiled
it. ---
I am an alien and not crazy!
13 years, 33 weeks ago
| | | | | | | | |