Compile MaNGOS On Windows

来源:互联网 发布:ssh三大框架书籍知乎 编辑:程序博客网 时间:2024/06/03 21:27

 

 

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

 

 

Contents

  • 1 Required Software
  • 2 Installing Visual C++ 2008 Express Edition
  • 3 Getting the source tarball from github
  • 4 Compiling MaNGOS using Visual C++ 2008 Express Edition
  • 5 Post-Compile

Required Software

  • Windows XP, Vista, or 7; 32-bit or 64-bit.
  • Microsoft Visual Studio 2008 (or, bypass it) and go to Microsoft VS 2010.
  • Visual C++ 2008 Express Edition with SP1(Version 9/2008) The project now successfully builds in Msoft VS 2010.
  • Microsoft Platform SDK
  • A way to get the source.
    • Download the source tarball from git hub.

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.

Getting the source tarball from github

  1. Download
  2. Extract to "C:/sources/mangos" (Use a program like WinRaR or 7-Zip)

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 you can find 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.

 

 

 

 

原文地址: http://getmangos.com/wiki/Compile_MaNGOS_On_Windows

原创粉丝点击