diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-30 20:37:41 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-30 23:46:08 +0200 |
commit | 94b7327acc7649db611a315dc75a1ace925cccf4 (patch) | |
tree | cc90cddab790d199b8bf30091aadd15a117c8eb7 /doc/compile_Windows.md | |
parent | 2c060c978f331aeaeb2a30a43ac8024945b78af5 (diff) | |
download | xmr-stak-94b7327acc7649db611a315dc75a1ace925cccf4.zip xmr-stak-94b7327acc7649db611a315dc75a1ace925cccf4.tar.gz |
documentation
- add more documentation
- split documentation into different files
Diffstat (limited to 'doc/compile_Windows.md')
-rw-r--r-- | doc/compile_Windows.md | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/doc/compile_Windows.md b/doc/compile_Windows.md new file mode 100644 index 0000000..dec1e75 --- /dev/null +++ b/doc/compile_Windows.md @@ -0,0 +1,73 @@ +# Compile **xmr-stak** for Windows + +## Install Dependencies + +### Preparation + +- open a command line `cmd` +- run `mkdir C:\xmr-stak-dep` + +### Visual Studio 2017 Community + +- download VS2017 Community and install from [https://www.visualstudio.com/downloads/](https://www.visualstudio.com/downloads/) +- during the install chose the components + - `Desktop development with C++` (left side) + - `Toolset for Visual Studio C++ 2015.3 v140...` (right side) + +### CMake for Win64 + +- download and install the latest version from [https://cmake.org/download/](https://cmake.org/download/) +- tested version: [cmake 3.9](https://cmake.org/files/v3.9/cmake-3.9.0-rc3-win64-x64.msi) +- during the install choose the option `Add CMake to the system PATH for all users` + +### Dependencies OpenSSL/Hwloc and Microhttpd + +- download the precompiled binary from [https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip](https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip) +- unzip all to `C:\xmr-stak-dep` + +### Validate the Dependency Folder + +- open a command line `cmd` +- run + ``` + cd c:\xmr-stak-dep + tree . + ``` +- the result should have the same structure + ``` + C:\xmr-stak-dep>tree . + Folder PATH listing for volume Windows + Volume serial number is XX02-XXXX + C:\XMR-STAK-DEP + ├───hwloc + │ ├───include + │ │ ├───hwloc + │ │ │ └───autogen + │ │ └───private + │ │ └───autogen + │ └───lib + ├───libmicrohttpd + │ ├───include + │ └───lib + └───openssl + ├───bin + ├───include + │ └───openssl + └───lib + ``` + +## Compile + +- download and unzip `xmr-stak +- open the command line terminal `cmd` +- `cd` to your unzipped source code directory +- execute the following commands (NOTE: path to VS2017 can be different) + ``` + "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" + set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl + mkdir build + cd build + cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 .. + cmake --build . --config Release --target install + cd bin\Release + ``` |