Step One: Download the sources
The easiest way to get the complete sources without downloading any extra programs is by doing this:
1. Go to the release of the TFS version you wish to compile.(In this tutorial we'll be using 0.3.6pl1)
Here's the link:
http://otland.net/f18/8-54-forgotten-server-0-3-6pl1-crying-damson-59924/
2. Click on Browse under the Source Code suptopic. (For a complete list of source codes for every TFS distribution you can go to this link: Tags - TheForgottenServer)
3. Scroll all the way to the bottom and click on Download GNU Tarball
4. After you download it, extract it to your desktop.
Step Two: Download The Forgotten Dev-Cpp
1. Go to this thread and download TheForgottenDev-Cpp:
http://otland.net/f19/forgotten-dev-cpp-v2-5-a-1024/
2. Extract it to your C drive (C
Step Three: Compile
1. Open Dev-C++ and click Open project or file
2. Navigate to 0.3.6pl1 > dev-cpp and open TheForgottenServer.dev
3. Click on Compile
And that's it! After it's done compiling your new .exe will be created in your 0.3.6pl1 > dev-cpp folder!
Note: For everyone who has problems with -lboost_regex try this
The easiest way to get the complete sources without downloading any extra programs is by doing this:
1. Go to the release of the TFS version you wish to compile.(In this tutorial we'll be using 0.3.6pl1)
Here's the link:
http://otland.net/f18/8-54-forgotten-server-0-3-6pl1-crying-damson-59924/
2. Click on Browse under the Source Code suptopic. (For a complete list of source codes for every TFS distribution you can go to this link: Tags - TheForgottenServer)
3. Scroll all the way to the bottom and click on Download GNU Tarball
4. After you download it, extract it to your desktop.
Step Two: Download The Forgotten Dev-Cpp
1. Go to this thread and download TheForgottenDev-Cpp:
http://otland.net/f19/forgotten-dev-cpp-v2-5-a-1024/
2. Extract it to your C drive (C
Step Three: Compile
1. Open Dev-C++ and click Open project or file
2. Navigate to 0.3.6pl1 > dev-cpp and open TheForgottenServer.dev
3. Click on Compile
And that's it! After it's done compiling your new .exe will be created in your 0.3.6pl1 > dev-cpp folder!
Note: For everyone who has problems with -lboost_regex try this
NOTE: For those having the lboost_regex problem:
I was having it at the beginning too but after messing a bit with it I was able to fix it, I think the way is a bit unorthodox though
Dont even know if it should be that way but it worked out so here it is:
- In Dev-Cpp (Im using v2.3 and it worked fine), go to menu "Project" then click "Project Options" (or press ALT + P).
- It will show a window with some tabs, click on the Parameters tab.
- You will see 3 big text squares, being "Compiler:", "C++ Compiler" and the one we will use: "Linker".
In there you should have this:
Code:-O1 -lboost_system -lgmp -llua5.1 -lboost_regex -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s
Or something similar, and below that text square there should be a button that says "Add Library or Object".
- Now, what you're gonna do is remove the "-lboost_regex" line from the list so it will look like this:
Code:-O1 -lboost_system -lgmp -llua5.1 -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s
- Now click on the button "Add Library Or Object", go to your Dev-Cpp folder (should be "C:\Dev-Cpp"), enter the folder called "lib", there you will see a lot of files, find the file called "libboost_regex" and click Open.
- Now your list should look like this:
Code:-O1 -lboost_system -lgmp -llua5.1 -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s ../../../../../Dev-Cpp/lib/libboost_regex.lib
Or something similar.
- Now that you manually added the library, click "Ok", and click "Compile" (or press CTRL + F9).
It should work now!
PD: If you want the "Parameters" to look "prettier" just for the hell of it You can just go to your Dev-Cpp > lib folder, copy the file "libboost_regex" and paste it on your sources's Dev-Cpp folder, which in this case if you followed Bint's steps, it should be in Desktop > 0.3.4 > dev-cpp.
Now just go back to Parameters tab, in Linker delete this line:
Code:../../../../../Dev-Cpp/lib/libboost_regex.lib
And repeat step 5 but this time open the file from your sources folder, the one you just pasted. Then it will look like this:
Code:-O1 -lboost_system -lgmp -llua5.1 -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s libboost_regex.lib
Works both ways so last one is not neccesary, its just me that Im crazy.
Anyways I dont know if we're supposed to do that manually like that but it worked fine for me and I tested it on 2 versions without problem: 0.3.4 and 0.3.2.
Hope it works for you.
Cheers.
Last edited: