Skip to content
Forkk edited this page Oct 9, 2012 · 2 revisions

These are some basic instructions for compiling MultiMC.

Compilers

Because MultiMC frequently uses C++11 features, you will need a fairly new compiler to be able to compile it.
To compile MultiMC with GCC, you will need GCC 4.6 or newer.
To compile with Clang, you will need at least Clang 3.1.
To compile with MSVC, you should be fine with Visual Studio 2010.

Other required software

In order to compile MultiMC, you will need the following software.

Dependencies

Compiling

Windows with MSVC 10

First, install all of the required software and dependencies listed above (you only need one of the compilers). Next, Get MultiMC's source code. You can either clone the git repository or download it from Github as a zip file.

Launch CMake GUI and set the path to the source code to the src folder. You can set the path to the build folder to whatever you like. Click the configure button and choose "Visual Studio 10" when it asks you to specify a generator. If CMake fails to find some libraries, you can specify the path to those libraries and click configure again. Also note that if you don't want SSL support, you'll need to set MultiMC_USE_HTTPS to false. Wait for configuration to complete and then click generate. Once generation is done, you can open your build folder. There should be a Visual Studio solution in there that you can open. Simply open it and compile from within Visual Studio.

Linux with GCC 4.6 or Clang 3.1

First, install all of the required software and dependencies listed above (You only need one of the compilers) and get MultiMC's source code. You can either clone the git repository or just download it from Github as a zip file.
Navigate to the folder containing MultiMC's source code in terminal, make a folder called "build" for the compiled binaries, and cd into it. mkdir build
cd build

After that's done, you need to run CMake and point it to the source directory. We'll also need a few extra flags here. (If you want to compile without SSL, add -DMultiMC_USE_HTTPS=false to the command shown below.)
cmake ../src/

Once CMake finishes, simply run make to compile.
make