The old topic was really out of date, all the stickied topics in the section are going to be edited due to the reasons that they are old and new ones need to be put up that are more accurate. The olds topic will not be deleted so that you may view them.
Hazuki's thread about compiling is extremely outdated, it's time to get this section more updated. So here is a new and updated guide. It will constantly be updated when changes in compiling are needed.
-- 1.0: Files needed
-- 2.0: Installation
-- 3.0: Compiling
-- 4.0: Problems
-- 5.0: Notes
-- 6.0: Updates
--------1.0----------Files Needed
First you need a C++ compiler, you may download Dev-Cpp 4.9.9.2 Compiler below.
Link:
Next you need the actual sources to compile, link is below (Will always be the updated Rev)
Link:
You will need the pThread DevPak to compile, the link is below.
Link:
--------2.0----------Installation
Part 1:
First install the Dev-Cpp 4.9.9.2 program you just downloaded, it will only take a few seconds to install.
After the program is installed, please run it. Now you need the libmysql package. So inside Dev-Cpp, go to the menu "Tools>Check for updates/packages" and select the "devpacks" mirror. Then click "Check for updates" after the list is complete, search through and find "libmysql" (make sure version 5) and select it and click "Download Selected". After it downloads, let it install.
Now, find the "pThread.devpak" you downloaded earlier and run it. It will only take a few seconds to install.
Part 2:
In the sources file you downloaded, open a .dev project (Such as Loginserver.dev, Charserver.dev, Worldserver.dev), it will open Dev-Cpp. Now you need to change a few paths here, this might get confusing so bare with me.
Go to menu "Project>project option", then go to the "parameters" tab and under "Linkers" change the "C:/Dev-Cpp/lib/libws2_32.a" and "C:/Dev-Cpp/lib/libmysql.a" to your correct path.
If you do not have these paths, then click "Add Library or Object" and browse to your Dev-Cpp/lib folder and find the two files listed above.
Once all that is complete, click "Ok" and your done with the setup.
--------3.0----------Compiling
Alright, time to compile the .EXE files. Open your .dev file with Dev-Cpp (Loginserver.dev, Charserver.dev, Worldserver.dev). On the menu at the top, click "Execute>Rebuild All". It will start to build the .EXE file. If it was a success, then the .EXE file can be found in your "Binary" folder in your Source folder.
That was easy wasn't it?
--------4.0----------Problems
1.) I can't find the libmysql!
Solution: It's there, it takes me forever to find it, but it's there.
2.) During compiling, it says a source file has an error!
Solution: Somethings wrong in a source file, let me know and I'll fix it.
3.) The EXE has some messed up error and just closes.
Solution: Something went wrong with the compiling, make sure your paths are right under parameters.
More to come, if you have a problem and solution then PM it to me so I can add it in. I have to test for more.
--------5.0----------Notes
- This guide will be kept up-to-date when there is a compiling change.
- More problems/solutions will be added once I test for more (or PM me some).
- You can ask questions about compiling, but not about your server issues.
- If you have not got the slightest clue what your doing, then I wouldn't try it.
- Do I ever stop? No.
--------6.0----------Updates
3/22/08 - Updated links and versions
3/1/07 - Fixed pThread link.
Hazuki's thread about compiling is extremely outdated, it's time to get this section more updated. So here is a new and updated guide. It will constantly be updated when changes in compiling are needed.
-- 1.0: Files needed
-- 2.0: Installation
-- 3.0: Compiling
-- 4.0: Problems
-- 5.0: Notes
-- 6.0: Updates
--------1.0----------Files Needed
First you need a C++ compiler, you may download Dev-Cpp 4.9.9.2 Compiler below.
Link:
To view the content, you need to sign in or register
Next you need the actual sources to compile, link is below (Will always be the updated Rev)
Link:
To view the content, you need to sign in or register
You will need the pThread DevPak to compile, the link is below.
Link:
To view the content, you need to sign in or register
--------2.0----------Installation
Part 1:
First install the Dev-Cpp 4.9.9.2 program you just downloaded, it will only take a few seconds to install.
After the program is installed, please run it. Now you need the libmysql package. So inside Dev-Cpp, go to the menu "Tools>Check for updates/packages" and select the "devpacks" mirror. Then click "Check for updates" after the list is complete, search through and find "libmysql" (make sure version 5) and select it and click "Download Selected". After it downloads, let it install.
Now, find the "pThread.devpak" you downloaded earlier and run it. It will only take a few seconds to install.
Part 2:
In the sources file you downloaded, open a .dev project (Such as Loginserver.dev, Charserver.dev, Worldserver.dev), it will open Dev-Cpp. Now you need to change a few paths here, this might get confusing so bare with me.
Go to menu "Project>project option", then go to the "parameters" tab and under "Linkers" change the "C:/Dev-Cpp/lib/libws2_32.a" and "C:/Dev-Cpp/lib/libmysql.a" to your correct path.
If you do not have these paths, then click "Add Library or Object" and browse to your Dev-Cpp/lib folder and find the two files listed above.
Once all that is complete, click "Ok" and your done with the setup.
--------3.0----------Compiling
Alright, time to compile the .EXE files. Open your .dev file with Dev-Cpp (Loginserver.dev, Charserver.dev, Worldserver.dev). On the menu at the top, click "Execute>Rebuild All". It will start to build the .EXE file. If it was a success, then the .EXE file can be found in your "Binary" folder in your Source folder.
That was easy wasn't it?
--------4.0----------Problems
1.) I can't find the libmysql!
Solution: It's there, it takes me forever to find it, but it's there.
2.) During compiling, it says a source file has an error!
Solution: Somethings wrong in a source file, let me know and I'll fix it.
3.) The EXE has some messed up error and just closes.
Solution: Something went wrong with the compiling, make sure your paths are right under parameters.
More to come, if you have a problem and solution then PM it to me so I can add it in. I have to test for more.
--------5.0----------Notes
- This guide will be kept up-to-date when there is a compiling change.
- More problems/solutions will be added once I test for more (or PM me some).
- You can ask questions about compiling, but not about your server issues.
- If you have not got the slightest clue what your doing, then I wouldn't try it.
- Do I ever stop? No.
--------6.0----------Updates
3/22/08 - Updated links and versions
3/1/07 - Fixed pThread link.
Last edited: