Personal tools
Namespaces
Variants
Actions

Compile MaNGOS On Windows

From mangos

Jump to: navigation, search

The following is a tutorial for compiling MaNGOS on Windows (Before proceeding, please make sure you have read this, and this thoroughly.)


Contents

Required Software

Installing Visual C++ 2008 Express Edition

  1. Download either Visual Studio 2008, or Visual Studio 2010 from Microsoft
  2. Install, and allow it to update.

Installing mysysgit

  1. Download a recent mysysgit version from Download list

Atm a good choice would be "Git-1.7.6-preview20110708.exe"

  1. Install it.

Suggested Options are hereby: (TODO - reinstall mysysgit and check correct option names)


Getting the source from github

  1. Open your explorer, create the folder C:\sources
  2. Right click onto the sources folder
  3. Chose "Git bash here" from the context menu
  4. Clone mangos with: git clone git://github.com/mangos/mangos.git mangos

Compiling MaNGOS using Visual C++ 2008 Express Edition

  1. Browse your computer to "C:\sources\mangos\win\" and double-click the mangosdVC90.sln file if you're using 2008, or mangosdVC100.sln for 2010.
  2. In the VC++ application window select Build -> Configuration Manager from the menu.
  3. Select "Release" in the drop down for "Active Solution Configuration" "Active Solution Platform" should default to "Win32" (on a 64Bit OS, you can try x64 for more performance, errors may occur, and builds may fail).
  4. Close the dialog.
  5. 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.)
  6. Your MaNGOS application will now begin compiling.


Post-Compile

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: 11 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, 8 up-to-date, 0 skipped". Again, no failures so you are in good shape.)


The files needed to run MaNGOS are now in your "C:\sources\mangos\bin\release\" directory. You will need to copy any *.exe and *.dll files you find in this directory and place them in the directory where you plan on running MaNGOS. (i.e. "C:\MaNGOS")

You will also need to retrieve the *.conf.in files from "C:\sources\mangos\src\mangosd\" and "C:\sources\mangos\src\realmd\" and rename them both by removing the ".in" or ".dist.in" from the filenames.

You still must configure MaNGOS before running the server. This guide only covers compiling the binaries to create the application.

The tutorial for setting up the server can be found here.

If you have any questions or run into problems with these procedures please post your issues in the forums and someone will attempt to help you.

Navigation
Interaction
Toolbox