===== Mana client compilation ===== This page will try to help compiling the latest mana version corresponding to your platform and development tools used. First of all, be sure to download all the [[dependencies]] needed by the client and to install them where appropriate. ==== Linux ==== === Getting the sources === In order to be able to download the client sources, you can either [[http://manasource.org/downloads|download]] the latest stable version, of install [[http://git-scm.com/|GIT]]. If you opted for the latest git version of the client, you'll then be able to run this on the command-line: $((The '$' symbol represents the shell prompt)) git clone git://gitorious.org/mana/mana.git This command will create a ''mana'' folder in the current shell folder and will download the latest source in it. === Compiling === Move into the given directory and you're ready to compile: $ cd mana To compile and install into your home directory, you can use these commands (We're using the cmake building system): $ cmake . $ make From this point, if you encounter no errors, you should be able to run the client using: $ src/mana If you want to install it, just do: $ make install === Updating the client source === To update the client source, go to the folder create by the git command (Here: mana) $ cd (path to source) And run this to update the client sources: $ git pull Don't forget to recompile: make ==== Windows ==== === Preparing the sources === The windows compilation is made easy using the [[http://www.codeblocks.org|Code::Blocks]] C++ IDE((Integrated Development Editor)) (which is using MingW as a compiler). You should then download it and install it. If you're lazy, don't forget that Windows nightlies are auto-compiled every night, hence the name, and can be easily installed in a few clicks. See also the download section about them. If not, then, you'll need the sources obtained from the [[http://www.manasource.org/downloads|download]] section, and the [[http://www.crushnet.org/tmw/mana_libs.zip|devpak]] given in the [[dependencies]] page. Decompress the sources files and the devpak files, and copy the ''include'' folder in the source directory's root folder. === Compiling === Run Code::Blocks and open the **''mana.cbp''** file. Then, click on the ''build'' button and pray... === Run the client === If not errors happened, you'll then want to run the client. In order to do that, there are two ways in doing so: The DLL files in the dll folder of the devpak have to copied in your **'':\Windows\System32''** folder if you want to keep them and don't worry about missing dlls or in a specific directory present in your **''%PATH''** environment variable. If you just want to make temporary tests with no dll potential pollution in your system. You can copy the **''mana.exe''** file from the source root folder to the devpak dll folder along with all the dll files. Again, if you installed a nighly, or a previous version of the client, some dll may have been already installed on your system, and you may not have to handle some or all of them. If you're unsure, try running the client, and see about what missing dll it is complaining. You'll then be able to double-click on the ''mana.exe'' file and ... Enjoy!