Generating the Arcemu build files using the CMake GUI

From ArcEmu-Wiki
Revision as of 17:26, 20 October 2011 by Magnifikator (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
+/-
Main Page                   Other languages:   English  •   German   •   FrenchArcEmu Website     ArcEmu Forum     Bug Tracker


  • Find and start the CMake GUI
  • On startup you will see an image like this:


201108170017.jpg


  • Type in the path to the "cmake" sub-directory of your Arcemu checkout to the "Where is the sourecode" field, or click "Browse source" button and find it using the file browser dialog.
  • Type in the path to the directory where you will build in to the "Where to build the binaries" field, or click the "Browse Build" button and find or create it using the file browser dialog.
  • Click the "Configure" button, and you will see


201108170018.jpg


NOTE:
CMake tries to identify your build environment, and choose a compiler for you. If it's the wrong one, you can of course choose another one that is supported by CMake.

  • Choose the compiler you want to build Arcemu with.

NOTE:
Most people will want to choose Visual Studio 2008 or 2010 for Windows, and Unix Makefiles for Linux/FreeBSD or OS X.

  • Click "Finish"


201108170020.jpg

NOTE:
CMake will work a bit, but eventually presents you the screen where you can select which features you want to build.

NOTE:
If you have lots of red error text ( warnings are not errors ) in the textbox, that might mean you don't have all the requirements installed.

NOTE:
If you are sure you do have them all, or the error is not related, post a new topic on forums asking for help!

  • Select the features you want to build.
  • Find the "CMAKE_INSTALL_PREFIX" option, and edit it. Fill in the path to the directory where you want to install Arcemu.

NOTE:
If you are a beginner, unsure or you don't care where it's installed then on Windows you could try "C:/Arcemu", and on Unix you could use "/home/name/arcemu. Where "name" is your login name / login id.

NOTE:
For the sake of example, I set CMAKE_INSTALL_PREFIX to C:/Arcemu

NOTE:
For most people the other default options are fine.


201108170021.jpg


  • Now click the "Configure" button


201108170022.jpg


NOTE:
If everything went alright, the "Generate" button will become available/clickable.

NOTE:
If there are errors, it might mean you selected features that are in conflict, or that are missing some required software.

NOTE:
If you are sure everything you did was alright, or the errors you are getting are not related, post a new topic on forums asking for help.

  • click the "Generate" button.

NOTE:
If everything went OK, you will see a screen similar to this.


201108170023.jpg


NOTE:
If you got an error or errors, post a new topic on forums asking for help!

NOTE:
If all went OK, CMake will tell you that "Configuring done" and "Generating done", this means you are ready to build Arcemu.

NOTE:
CMake generated lots of files in the build directory you specified, including project.sln for Visual Studio and Makefile for Unix platforms.

  • You may now proceed to compile/build Arcemu!

Compiling:_Windows#Compiling

Compiling:_Linux#Compiling

Compiling:_FreeBSD#Compiling_the_Source

Compiling:_Mac_OS_X#building_Arcemu

Personal tools