Compiling: Windows
| Main Page Other languages: English • German • French • SpanishArcEmu Website ArcEmu Forum Bug Tracker |
|
Requirements
You will need a C++ Compiler. The following explanations are based on Visual C++ Express 2010 which is freely available.
Please note that Visual C++ 2010 requires Windows XP SP2 at least and therefore that is Arcemu's minimum requirement as well!
Besides Visual Studio 2010, you will need CMake to generate the project files to allow you to build. Download CMake here. Install with a desktop icon (for simplicity of the guide).
Generating the build environment
Arcemu now uses the CMake cross platform build system, this means that before you can begin to build you will have to generate the build files. If you are having problems generating the solution files or you want to know what some of the options are when generating the project files, use one of the guides on this page.
Open the project
Browse to where you have generated the build files.
Then open "Arcemu.sln"
Compiling / Building
Opening the Project File will take some time at first, the program will parse everything and get the interface set up for first use.
assuming you have not ran VS2010 before.
- A box will come up asking what your target language will be. Click "Microsoft Visual Studio C++"
If you have done this step before move on.
Step 1 (Building the Code)
- Go to the previous menu in the toolbar or press F7 to "Build Solution"
Read: Sometimes the project will error out saying it could not "create a file", clean your build by accessing the "Build" menu, shutdown VC2010 and retry.
- The program will do some work and compile the code and related link libraries, sit back for a bit.
- If your build was successful(you followed this guide to a T) you will get an output similar to this.
Step 2 (Copying main files)
Now that you have a successful build of ArcEmu you need to install/copy the files. You can do that by selecting the INSTALL project in Visual Studio, right clicking on it, then selecting Project-Only -> Build only INSTALL.
- Select the INSTALL project
- Right click on it, then select Project-Only -> Build only INSTALL
- After doing this, you should see something similar to this
Compiling for X64 target platform
Users finding it impossible to compile ArcEmu X64 target platform,
"x64 compilers are not available for the Visual Studio Express edition IDEs. Microsoft targets the Express IDEs at students and hobbyists." [1]
This means that the express(usually free) version of visual studio does not contain 64 bit compilers, purchasing a version such as Visual Studio 2010 Professional allows you to then compile code in 64 bit without a problem, however it has a significantly larger footprint on your system than the express version.
Please once again note, that you don't NEED the 64bit version, the 32bit version will run just fine on your 64bit system.
Next step
You have successfully compiled your server, you're now ready to move on to Database setup.