Post by Shayne on May 1, 2016 9:38:14 GMT
[attr="class","eoserv-build-info-container"]
This guide is assuming you are building eoserv from scratch on Windows, and using the exact tools/versions listed below.
This guide was tested using the newest eoserv source release available at the time: eoserv-trunk-r536
If you are having trouble building/compiling eoserv with the latest revisions, follow this guide carefully with only the listed tools below, and you should be good.
Below is everything you will need to build eoserv. (Download everything first, but do not install anything. Read the tutorial first before installing!)
#1. WinRar
www.rarlab.com/download.htm
#2. eoserv-trunk-r536
files.eoserv.net/snaps/
#3. Mysql Server 5.5 (Select one of the two below depending on your system)
downloads.mysql.com/archives/get/file/mysql-essential-5.5.0-m2-win32.msi
downloads.mysql.com/archives/get/file/mysql-essential-5.5.0-m2-winx64.msi
#4. HeidiSQL 9.3.0.4984
www.heidisql.com/download.php
#5. MinGW
sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
#6. Code::Blocks 13.12
sourceforge.net/projects/codeblocks/files/Binaries/13.12/Windows/codeblocks-13.12-setup.exe/download
#7. MariaDB Client Library (Select one of the two below depending on your system)
downloads.mariadb.org/connector-c/2.0.0/
[newclass=.eoserv-build-info-container]width:99.6%; margin-top: 0px; border-radius: 4px; background-color: #e3e3e3; border: 2px solid #000000;[/newclass]Tutorial Info/Files (Pre-Setup)
[attr="class","eoserv-build-credits-container"]This tutorial is based from Sausage's tutorial on the eoserv wiki.
CREDITS TO:Sausage for the original guide!
CREDITS TO:Insomniac for sharing ERROR 3 and FIX 3!
CREDITS TO:Sausage for the original guide!
CREDITS TO:Insomniac for sharing ERROR 3 and FIX 3!
This guide is assuming you are building eoserv from scratch on Windows, and using the exact tools/versions listed below.
This guide was tested using the newest eoserv source release available at the time: eoserv-trunk-r536
If you are having trouble building/compiling eoserv with the latest revisions, follow this guide carefully with only the listed tools below, and you should be good.
Below is everything you will need to build eoserv. (Download everything first, but do not install anything. Read the tutorial first before installing!)
#1. WinRar
www.rarlab.com/download.htm
#2. eoserv-trunk-r536
files.eoserv.net/snaps/
#3. Mysql Server 5.5 (Select one of the two below depending on your system)
downloads.mysql.com/archives/get/file/mysql-essential-5.5.0-m2-win32.msi
downloads.mysql.com/archives/get/file/mysql-essential-5.5.0-m2-winx64.msi
#4. HeidiSQL 9.3.0.4984
www.heidisql.com/download.php
#5. MinGW
sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
#6. Code::Blocks 13.12
sourceforge.net/projects/codeblocks/files/Binaries/13.12/Windows/codeblocks-13.12-setup.exe/download
#7. MariaDB Client Library (Select one of the two below depending on your system)
downloads.mariadb.org/connector-c/2.0.0/
Once you have everything you need downloaded, continue on with the tutorial below.
[newclass=.eoserv-build-info-container:hover]width:99.6%; margin-top: 0px; border-radius: 4px; background-color: #e3e3e3; border: 2px solid #000000;[/newclass]
[attr="class","eoserv-build-tutorial-container"]
Step #1. Install WinRar
Step #2. Install MariaDB Client Library (Typical Installation)
Step #3. Install MinGW
-Run/start the mingw-get Installer
-Install it to the default path: C:\MinGW
-Run mingw-get, either through start menu or desktop shortcuts if you created them, or browsing to C:\mingw\bin and running "mingw-get.exe"
-Locate and select the following packages in the GUI, using the side-bar to navigate between sections. Ensure the class column you check is correct! (bin/dll/dev)
Package: mingw32-gcc-g++ (Class: bin) (Basic Setup)
Package: mingw32-libz (Class: dll) (All Packages/MinGW/MinGW Libraries/MinGW Standard Libraries)
Package: mingw32-pthreads-w32 (Class: dev) (All Packages/MinGW/MinGW Libraries/MinGW Standard Libraries)
-When done, click Installation -> Apply Changes (located in the menu bar)
-The installer will automatically download and install the required components (approx. 40MB)
-Ensure the download and installation completed successfully. If not, the simplest option is to delete the MinGW directory and start over.
-After installation, Ensure the C:\MinGW\bin folder, is now populated with around 50 files, including: mingw32-g++.exe, zlib1.dll and pthreadGC2.dll
Step #4. Install Code::Blocks
Install Code::Blocks, you should get a dialog that says "GNU GCC Compiler" was detected. If you don't, you should go back and make sure MinGW is installed in the right location (C:\MinGW)
Step #5. Install Mysql Server 5.5
-When you first start/open the MySQL Server Installer, click Next>
-Select Typical setup type> then click Next> then click Install
-When the installation is complete, a window will load (MySQL Enterprise). Exit the window, as it's completley useless to you.
Step #5.1. Setup Mysql Server 5.5
-Now the MySQL Server Setup Wizard will be loaded.
-Uncheck the box: (Register the MySQL Server now)
-If unchecked, Check the box (Configure the MySQL Server Now) then click Finish
-Now the Server Instance Configuration Wizard window will be loaded. Click Next
-Select Detailed Configuration, then click Next
-Select Developer Machine, then click Next
-Select Multifunctional Database, then click Next
-Keep the default InnoDB Tablespace Settings/Directory as is, and click Next
-Select Decision Support (DDS)/OLAP, then click Next
-If unchecked, Check the box Enable TCP/IP Networking
-If unchecked, Check the box Enable Strict Mode (OPTIONAL)
-Check the box Add firewall exception for this port
-Keep the default Port Number as is: 3306, then click Next
-Select Standard Character Set, then click Next
-If unchecked, Check the box Install as Windows Service
-If unchecked, Check the box Launch The MySQL Server Automatically
-If unchecked, Check the box Include Bin Directory in Windows PATH (OPTIONAL)
-Keep the default Service Name as MySQL, then click Next
-If unchecked, Check the box Modify Security Settings
-Enter the password you want in both boxes.
-Check the box Enable Root Access from Remote Machines, then click Next
-Click Execute, and everything should now be properly configured.
-Click Finish, and now you're done with MySQL Setup/Configuation!
Step #6. Install HeidiSql 3.0
-Pretty straightforward. (You can leave all settings/checkboxes throughout the installation as they are by default.)
-Accept the agreement, and click Next until you reach install page. Install, and done...
Step #6.1. Setup HeidiSQL 3.0 Database
-Once HeidiSQL is installed, open HeidiSQL from inside your eoserv trunk folder by opening the Install (SQL-Script 4KB)
-Click the New button
-Put the description as eoserv
-Put the hostname as localhost
-Put the user as root
-Put the password you chose from your MySQL Setup
-Click Save> then click Open
-Now In HeidiSQL, right click the very left list/column (where eoserv is), and select Create new> then Database
-Name the database eoserv
-Make sure you click/highlight the database (eoserv) Then click the blue arrow (Execute SQL)
(You may get an error after executing it, but I don't think it's an issue, so ignore it for now.)
-Click the +Box to the left of the database (eoserv)
(Your tables should now be visible/successfully created, and you can now exit HeidiSQL.)
(If you cannot click the blue arrow in HeidiSQL, you must open heidiSQL from inside your trunk folder. Click the Install (SQL-Script 4KB)
(If your tables don't show after executing the script (Clicking the blue arrow), exit HeidiSQL and re-open it.)
Your tables should now be displayed.
Step #7. Extraction/Basic Setup EOServ Trunk
-Extract your eoserv Trunk (Right click it>Click Extract Files...
[Pub/Map files]
-Open your trunk folder> then data folder.
-Open your endless online folder> then maps folder. Copy and paste those map files into your trunks map folder. (Trunk/data/maps)
-Open your endless online folder> then pub folder. Copy and paste those pub files into your trunks pub folder. (Trunk/data/pub)
[MySql Database settings]
-Open your trunk folder> then config folder> then database folder.
-Open the mysql (Ini/Configuration Settings) file.
-Make sure you set your settings like below, aside from the DBPass. You must use the password you created for your HeidiSQL database earlier.)
DBType = mysql
DBHost = localhost
DBUser = root
DBPass = MyPasswordForMyDatabase
DBName = eoserv
DBPort = 0
Save the file, and exit it.
[Trunk- Needed Files]
-Open My Computer> then Local Disk (C:)> then MinGW folder> then bin folder.
-Copy the three files below (located inside the bin folder you just opened), and paste them directly in your trunk folder. (Along/together with your other files.)
1. libgcc_s_dw2-1.dll
2. libstdc++-6.dll
3. pthreadGC2.dll
-Open My Computer> then Local Disk (C:)> then Program Files folder> then MariaDB folder> then MariaDB C Client Library folder> then lib folder.
-Copy libmariadb.dll and paste it directly in your trunk folder. (Along/together with your other files.)
Step #8. Configure Project/Code::Blocks
-Open you trunk folder> then project folder> then mingw (project file -17KB)
-Once loaded, click the box with the down arrow, that says MYSQL+SQLITE, and change it to MYSQL
(Next you must set your search directories within your project, in the compiler/linker tabs.)
-Near the top of the code::blocks window, click Project> then Build Options...
-Highlight eoserv> then click the Search Directories tab> then the Compiler tab.
-Click Add. (You will need to do this for each of the two directories below.)
-Enter the paths of your MariaDB include folder, and your MariaDB lib folder. Add one at a time.
(Add the two lines below one at a time if your system is 32 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library\include
C:\Program Files\MariaDB\MariaDB C Client Library\lib
(Add the two lines below one at a time if your system is 64 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\include
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\lib
(Now you need to do the exact same thing as above, in the linker tab)
-Highlight eoserv> then click the Search Directories tab> then Linker tab.
-Click Add. (You will need to do this for each of the two directories below again.)
-Enter the paths of your MariaDB include folder, and your MariaDB lib folder. (Add one at a time.)
(Add the two lines below one at a time if your system is 32 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library\include
C:\Program Files\MariaDB\MariaDB C Client Library\lib
(Add the two lines below one at a time if your system is 64 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\include
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\lib
(Make sure not to set as relative path, if you browse to the directory, instead of copying and pasting the lines above!!!)
-When finished, click the OK button, and you are done with Search Directories.
[newclass=.eoserv-build-tutorial-container]width:99.6%; border-radius: 4px; background-color: #ffffff; border: 2px solid #000000;[/newclass]BUILDING EOSERV (Setup)
It is important that you follow all these steps carefully, and in order.
Everything is pretty straight forward, just go through the steps one at a time!
It is important that you follow all these steps carefully, and in order.
Everything is pretty straight forward, just go through the steps one at a time!
Step #1. Install WinRar
Step #2. Install MariaDB Client Library (Typical Installation)
Step #3. Install MinGW
-Run/start the mingw-get Installer
-Install it to the default path: C:\MinGW
-Run mingw-get, either through start menu or desktop shortcuts if you created them, or browsing to C:\mingw\bin and running "mingw-get.exe"
-Locate and select the following packages in the GUI, using the side-bar to navigate between sections. Ensure the class column you check is correct! (bin/dll/dev)
Package: mingw32-gcc-g++ (Class: bin) (Basic Setup)
Package: mingw32-libz (Class: dll) (All Packages/MinGW/MinGW Libraries/MinGW Standard Libraries)
Package: mingw32-pthreads-w32 (Class: dev) (All Packages/MinGW/MinGW Libraries/MinGW Standard Libraries)
-When done, click Installation -> Apply Changes (located in the menu bar)
-The installer will automatically download and install the required components (approx. 40MB)
-Ensure the download and installation completed successfully. If not, the simplest option is to delete the MinGW directory and start over.
-After installation, Ensure the C:\MinGW\bin folder, is now populated with around 50 files, including: mingw32-g++.exe, zlib1.dll and pthreadGC2.dll
Step #4. Install Code::Blocks
Install Code::Blocks, you should get a dialog that says "GNU GCC Compiler" was detected. If you don't, you should go back and make sure MinGW is installed in the right location (C:\MinGW)
Step #5. Install Mysql Server 5.5
-When you first start/open the MySQL Server Installer, click Next>
-Select Typical setup type> then click Next> then click Install
-When the installation is complete, a window will load (MySQL Enterprise). Exit the window, as it's completley useless to you.
Step #5.1. Setup Mysql Server 5.5
-Now the MySQL Server Setup Wizard will be loaded.
-Uncheck the box: (Register the MySQL Server now)
-If unchecked, Check the box (Configure the MySQL Server Now) then click Finish
-Now the Server Instance Configuration Wizard window will be loaded. Click Next
-Select Detailed Configuration, then click Next
-Select Developer Machine, then click Next
-Select Multifunctional Database, then click Next
-Keep the default InnoDB Tablespace Settings/Directory as is, and click Next
-Select Decision Support (DDS)/OLAP, then click Next
-If unchecked, Check the box Enable TCP/IP Networking
-If unchecked, Check the box Enable Strict Mode (OPTIONAL)
-Check the box Add firewall exception for this port
-Keep the default Port Number as is: 3306, then click Next
-Select Standard Character Set, then click Next
-If unchecked, Check the box Install as Windows Service
-If unchecked, Check the box Launch The MySQL Server Automatically
-If unchecked, Check the box Include Bin Directory in Windows PATH (OPTIONAL)
-Keep the default Service Name as MySQL, then click Next
-If unchecked, Check the box Modify Security Settings
-Enter the password you want in both boxes.
-Check the box Enable Root Access from Remote Machines, then click Next
-Click Execute, and everything should now be properly configured.
-Click Finish, and now you're done with MySQL Setup/Configuation!
Step #6. Install HeidiSql 3.0
-Pretty straightforward. (You can leave all settings/checkboxes throughout the installation as they are by default.)
-Accept the agreement, and click Next until you reach install page. Install, and done...
Step #6.1. Setup HeidiSQL 3.0 Database
-Once HeidiSQL is installed, open HeidiSQL from inside your eoserv trunk folder by opening the Install (SQL-Script 4KB)
-Click the New button
-Put the description as eoserv
-Put the hostname as localhost
-Put the user as root
-Put the password you chose from your MySQL Setup
-Click Save> then click Open
-Now In HeidiSQL, right click the very left list/column (where eoserv is), and select Create new> then Database
-Name the database eoserv
-Make sure you click/highlight the database (eoserv) Then click the blue arrow (Execute SQL)
(You may get an error after executing it, but I don't think it's an issue, so ignore it for now.)
-Click the +Box to the left of the database (eoserv)
(Your tables should now be visible/successfully created, and you can now exit HeidiSQL.)
(If you cannot click the blue arrow in HeidiSQL, you must open heidiSQL from inside your trunk folder. Click the Install (SQL-Script 4KB)
(If your tables don't show after executing the script (Clicking the blue arrow), exit HeidiSQL and re-open it.)
Your tables should now be displayed.
Step #7. Extraction/Basic Setup EOServ Trunk
-Extract your eoserv Trunk (Right click it>Click Extract Files...
[Pub/Map files]
-Open your trunk folder> then data folder.
-Open your endless online folder> then maps folder. Copy and paste those map files into your trunks map folder. (Trunk/data/maps)
-Open your endless online folder> then pub folder. Copy and paste those pub files into your trunks pub folder. (Trunk/data/pub)
[MySql Database settings]
-Open your trunk folder> then config folder> then database folder.
-Open the mysql (Ini/Configuration Settings) file.
-Make sure you set your settings like below, aside from the DBPass. You must use the password you created for your HeidiSQL database earlier.)
DBType = mysql
DBHost = localhost
DBUser = root
DBPass = MyPasswordForMyDatabase
DBName = eoserv
DBPort = 0
Save the file, and exit it.
[Trunk- Needed Files]
-Open My Computer> then Local Disk (C:)> then MinGW folder> then bin folder.
-Copy the three files below (located inside the bin folder you just opened), and paste them directly in your trunk folder. (Along/together with your other files.)
1. libgcc_s_dw2-1.dll
2. libstdc++-6.dll
3. pthreadGC2.dll
-Open My Computer> then Local Disk (C:)> then Program Files folder> then MariaDB folder> then MariaDB C Client Library folder> then lib folder.
-Copy libmariadb.dll and paste it directly in your trunk folder. (Along/together with your other files.)
Step #8. Configure Project/Code::Blocks
-Open you trunk folder> then project folder> then mingw (project file -17KB)
-Once loaded, click the box with the down arrow, that says MYSQL+SQLITE, and change it to MYSQL
(Next you must set your search directories within your project, in the compiler/linker tabs.)
-Near the top of the code::blocks window, click Project> then Build Options...
-Highlight eoserv> then click the Search Directories tab> then the Compiler tab.
-Click Add. (You will need to do this for each of the two directories below.)
-Enter the paths of your MariaDB include folder, and your MariaDB lib folder. Add one at a time.
(Add the two lines below one at a time if your system is 32 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library\include
C:\Program Files\MariaDB\MariaDB C Client Library\lib
(Add the two lines below one at a time if your system is 64 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\include
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\lib
(Now you need to do the exact same thing as above, in the linker tab)
-Highlight eoserv> then click the Search Directories tab> then Linker tab.
-Click Add. (You will need to do this for each of the two directories below again.)
-Enter the paths of your MariaDB include folder, and your MariaDB lib folder. (Add one at a time.)
(Add the two lines below one at a time if your system is 32 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library\include
C:\Program Files\MariaDB\MariaDB C Client Library\lib
(Add the two lines below one at a time if your system is 64 bit.)
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\include
C:\Program Files\MariaDB\MariaDB C Client Library 64-bit\lib
(Make sure not to set as relative path, if you browse to the directory, instead of copying and pasting the lines above!!!)
-When finished, click the OK button, and you are done with Search Directories.
If you made it this far, you should only have compiling issues left.
[newclass=.eoserv-build-tutorial-container:hover]width:99.6%; border-radius: 4px; background-color: #d1d1d1; border: 2px solid #000000;[/newclass]
[attr="class","eoserv-build-errors-container"]
[Compiling ERROR 1]
c:\mingw\include\math.h||In function 'float hypotf(float, float)'
c:\mingw\include\math.h|635|error: '_hypot' was not declared in this scope|
[Compiling FIX 1]
-Open your trunk folder> then project folder> then mingw (project file -17KB)
-At the far left of the Code::Blocks window, find the window that says Management.
-Click the right arrow below management below if needed, and select the Files tab.
-Expand/click the MinGW (+Box)> then Expand/click the include (+Box)
-Find math.h in the list, and double click it, or highlight it, and press enter.
-press ctrl+g, and enter 635, or manually scroll/go to line 635.
-You must edit that line by removing the _ before Hypot.
Example- Not Working: { return (float)(_hypot (x, y)); }
Example- Working: { return (float)(hypot (x, y)); }
-You MUST click File> then click Save file, in the code::blocks menu bar, after applying the change to math.h
[Compiling ERROR 2]
c:\mingw\include\pthread.h|320|error: redefinition of 'struct timespec'|
c:\mingw\include\parts\time.h|105|error: previous definition of 'struct timespec'
[Compiling FIX 2]
-Open your trunk folder> then project folder> then mingw (project file -17KB)
-At the top of the Code::Blocks menu bar, click Settings> then Compiler> then #Defines
-Enter the following bolded line: HAVE_STRUCT_TIMESPEC and then select ok.
[Compiling ERROR 3]
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-thread.o):thread.c:(.text+0x2a48): multiple definition of `pthread_create'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-thread.o):thread.c:(.text+0x3000): multiple definition of `pthread_detach'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-mutex.o):mutex.c:(.text+0x498): multiple definition of `pthread_mutex_unlock'
[Compiling FIX 3]
-Open your trunk folder> then project folder> then mingw (project file -17KB)
-At the top of the Code::Blocks menu bar, click Settings> then Compiler> then #Defines> then Linker Settings
-Click the Other Linker Options table/section, and type the line: -lpthread
-Press Ok to confirm.
[Compiling ERROR 4]
stdafx.h||No such file or directory!
[Compiling FIX 4]
-Click Project, then click Build Options...
-Make sure eoserv is selected, then click the Search directories tab.
-Select the Compiler tab, then select Add. Click the '...' and find your eoserv trunk folder.
-Select the src folder, and press Ok. When asked to set the path as relative or not, select No.
[Compiling ERROR 5]
C:\Program Files\MariaDB Client Library 64-bit\lib/libmaria.dll: file not recognized: File format not recognized
[Compiling FIX 5]
(You must replace your existing libmariadb.dll in your mariaDB folder, and your eoserv trunk folder.)
-Open your eoserv trunk folder, and replace the current mariadb.dll with this one: mariadb.dll
-Find and open your mariaDB folder, then open your lib folder
-Again, replace the mariadb.dll file with this one: mariadb.dll
*Build/Rebuild the project!*
-If you have encountered and fixed these errors, you can go ahead and rebuild your project. If not, fix the errors before rebuilding.
(To rebuild, in the code::blocks menu bar, click Build> then click Rebuild) OR (Press Ctrl+F11)
[newclass=.eoserv-build-errors-container]width:99.6%; margin-top: 0px; border-radius: 4px; background-color: #d1d1d1; border: 2px solid #000000;[/newclass]Errors/Fixes (Compiling)
If you encounter any of the errors below, you must use the fixes below.
If you encounter any of the errors below, you must use the fixes below.
[Compiling ERROR 1]
c:\mingw\include\math.h||In function 'float hypotf(float, float)'
c:\mingw\include\math.h|635|error: '_hypot' was not declared in this scope|
[Compiling FIX 1]
-Open your trunk folder> then project folder> then mingw (project file -17KB)
-At the far left of the Code::Blocks window, find the window that says Management.
-Click the right arrow below management below if needed, and select the Files tab.
-Expand/click the MinGW (+Box)> then Expand/click the include (+Box)
-Find math.h in the list, and double click it, or highlight it, and press enter.
-press ctrl+g, and enter 635, or manually scroll/go to line 635.
-You must edit that line by removing the _ before Hypot.
Example- Not Working: { return (float)(_hypot (x, y)); }
Example- Working: { return (float)(hypot (x, y)); }
-You MUST click File> then click Save file, in the code::blocks menu bar, after applying the change to math.h
[Compiling ERROR 2]
c:\mingw\include\pthread.h|320|error: redefinition of 'struct timespec'|
c:\mingw\include\parts\time.h|105|error: previous definition of 'struct timespec'
[Compiling FIX 2]
-Open your trunk folder> then project folder> then mingw (project file -17KB)
-At the top of the Code::Blocks menu bar, click Settings> then Compiler> then #Defines
-Enter the following bolded line: HAVE_STRUCT_TIMESPEC and then select ok.
[Compiling ERROR 3]
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-thread.o):thread.c:(.text+0x2a48): multiple definition of `pthread_create'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-thread.o):thread.c:(.text+0x3000): multiple definition of `pthread_detach'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-mutex.o):mutex.c:(.text+0x498): multiple definition of `pthread_mutex_unlock'
[Compiling FIX 3]
-Open your trunk folder> then project folder> then mingw (project file -17KB)
-At the top of the Code::Blocks menu bar, click Settings> then Compiler> then #Defines> then Linker Settings
-Click the Other Linker Options table/section, and type the line: -lpthread
-Press Ok to confirm.
[Compiling ERROR 4]
stdafx.h||No such file or directory!
[Compiling FIX 4]
-Click Project, then click Build Options...
-Make sure eoserv is selected, then click the Search directories tab.
-Select the Compiler tab, then select Add. Click the '...' and find your eoserv trunk folder.
-Select the src folder, and press Ok. When asked to set the path as relative or not, select No.
[Compiling ERROR 5]
C:\Program Files\MariaDB Client Library 64-bit\lib/libmaria.dll: file not recognized: File format not recognized
[Compiling FIX 5]
(You must replace your existing libmariadb.dll in your mariaDB folder, and your eoserv trunk folder.)
-Open your eoserv trunk folder, and replace the current mariadb.dll with this one: mariadb.dll
-Find and open your mariaDB folder, then open your lib folder
-Again, replace the mariadb.dll file with this one: mariadb.dll
*Build/Rebuild the project!*
-If you have encountered and fixed these errors, you can go ahead and rebuild your project. If not, fix the errors before rebuilding.
(To rebuild, in the code::blocks menu bar, click Build> then click Rebuild) OR (Press Ctrl+F11)
[TUTORIAL END]
If you followed this tutorial carefully, line by line with the tools provided, you should have successfully built and compiled your own EO server with ease!
If you followed this tutorial carefully, line by line with the tools provided, you should have successfully built and compiled your own EO server with ease!
[newclass=.eoserv-build-errors-container:hover]width:99.6%; margin-top: 0px; border-radius: 4px; background-color: #d1d1d1; border: 2px solid #000000;[/newclass]