This is a simple guide to compile mangos 3.1.X.
Step 1. Install Visual C++
First of all download Visual C++ here: Download Visual C++, Visual C++ Express Edition 2008 Download
Now to Step 2. Install TortoiseSVN and Set Up SVN Folders
Install Tortoise SVN Create a directory on your hard drive. For example: "C:\sources\mangos\" Right click on the folder "\mangos\" and select "SVN Checkout" On the top line where it says "URL of Repository" put in the url "
Code:
https://mangos.svn.sourceforge.net/svnroot/mangos/trunk/
". Do not change any other options, then press ok. This will download the most current source code. (Note: If you will be using scripting (i.e. scriptdev) you will need to retrieve and prep it in a similar manner at this point. Consult your preferred source for scripts for instructions on how to include scripts in a MaNGOS compilation.
Now to Step 3. Compile MaNGOS
Open up Visual C++ Studio and go to Tools > Options. In the dialog that pops up click the plus sign next to Projects and Solutions and then click VC++ Directories. The drop down menu should say Executable Files. Click the button that looks like a folder and type
Code:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
Then click the drop down menu and select Include Files. Click the folder button again and type in
Code:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
Then click the drop down menu again and select Library Files. Click the folder button and type in
Code:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
Browse your computer to "C:\sources\mangos\win\" and double-click (open)
the .sln file for your VC++ version mangosdVC71.sln - Version 7/2003 (Visual Studio 6) mangosdVC80.sln - Version 8/2005 (Visual Studio 2005/VC++ Express) In your VC++ application window select Build->Configuration Manager from the menu. Select "Release" in the drop down for "Active Solution Configuration" "Active Solution Platform" should default to "Win32". Do not change this. Close the dialog. Now select Build->Build Solution from the menu. (Note: If you had an error or are having problems with the build you can select Build->Clean Solution to "reset" the compilation.) Your MaNGOS application will now begin compiling. This may take quite some time depending on the speed of your processor. You WILL get various warning messages. This is expected and should not alarm you. When the process is complete you should see a message like "Build: 9 succeeded, 0 failed, 0 up-to-date, 0 skipped". The key is to make sure that failed = 0. (If you are doing an update of an existing build you may get a message like "Build: 3 succeeded, 0 failed, 6 up-to-date, 0 skipped". Again, no failures so you are in good shape.) Occasionally you will get this error: "error LNK1181: cannot open input file 'mangosd.lib'". In order to fix this iussue you can do these steps (once): Right-click on "Solution 'mangosdVC80' (9 projects)" in solution explorer. Select "Project Build Order..." Click on the "Dependencies" tab. In the "Projects:" drop down list, select "script" and check "mangosd" and hit OK. Build Solution.
I just copied this from the MaNGOS guide! NO credits for me!