From cbf56f90d0776d25229154365e01df6c40025af3 Mon Sep 17 00:00:00 2001 From: xmrig Date: Fri, 8 Sep 2017 17:53:04 +0300 Subject: [PATCH] Created Windows Build (markdown) --- Windows-Build.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Windows-Build.md diff --git a/Windows-Build.md b/Windows-Build.md new file mode 100644 index 0000000..dc5f515 --- /dev/null +++ b/Windows-Build.md @@ -0,0 +1,28 @@ +* [Ubuntu](https://github.com/xmrig/xmrig/wiki/Ubuntu-Build) + +## Windows +There two options Microsoft Visual Studio 2015+ or [MSYS2](http://www.msys2.org/) both required [libuv](https://github.com/libuv/libuv) build and cmake. + +### MSYS2 +Necessary MSYS2 packages: +``` +pacman -Sy +pacman -S mingw-w64-x86_64-gcc +pacman -S make +pacman -S mingw-w64-x86_64-cmake +pacman -S mingw-w64-x86_64-pkg-config +``` +CMake build: +``` +cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DUV_INCLUDE_DIR="c:\\libuv\include" -DUV_LIBRARY="c:\\libuv\.libs\libuv.a" +make +``` + +### Microsoft Visual Studio +Go to directory with source, then: +``` +mkdir build +cd build +cmake .. -G "Visual Studio 15 2017 Win64" -T v140_xp -DCMAKE_BUILD_TYPE=Release -DUV_INCLUDE_DIR=c:\\libuv\include -DUV_LIBRARY=c:\\libuv\Release\lib\libuv.lib +``` +It will create Visual Studio Solution file **xmrig.sln**. \ No newline at end of file