Hold on to you hats, we're in for a wild ride. First let's get the necessary tools; we're only going to cover build on Windows (no cross-compiling) using Visual Studio 2013 - you may use earlier versions of Visual Studio (tested with 2012 at least) by modifying the parameters to CMake accordingly. Install Visual Studio 2013 Express. Install the latest CMake and make sure cmake.exe is on your path.