We encourage users to download and use XtalOpt pre-compiled from here. In fact, we do not provide a complete set of compilation instructions for Windows. However, you may continue reading if you wish to attempt to compile XtalOpt on your own.
First and foremost, a C++ compiler with C++11 is required to compile XtalOpt. MSVC >=2015 will work. One important point to remember when compiling for Windows is that you must use the same compiler for every dependency. So if MSVC 2017 64-bit Release is to be used for XtalOpt, all of the dependencies must be compiled with MSVC 2017 64-bit Release.
Similar to the compilations for the other operating systems, the following dependencies are required:
If you wish to enable SSH (default), you will also need:
For git and cmake, only the executables are used, so you may download them from their respective websites.
For Qt, you may either download pre-compiled binaries for your specific compiler or compile it yourself. Qt typically has compiled versions for just about every compiler, so if you choose to download it, be sure to pick the compiled version that matches your compiler.
Eigen is a header-only library, so it does not need to be compiled separately.
OpenSSH, LibSSH, and Qwt need to all be compiled with your compiler of choice. If you wish to use MSVC 2015 (32-bit) or MSVC 2017 (64-bit), pre-compiled binaries here. Note that LibSSH has OpenSSH statically compiled within it in these binaries.
You may also compile OpenSSH, LibSSH, and Qwt on your own, but we do not provide instructions for that. You must use their instructions to do so.