diff --git a/Windows-Build.md b/Windows-Build.md index 1442edf..9ae5010 100644 --- a/Windows-Build.md +++ b/Windows-Build.md @@ -1,7 +1,12 @@ ## 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. +There two options **Microsoft Visual Studio 2015/2017** or [MSYS2](http://www.msys2.org/) both required [libuv](https://github.com/libuv/libuv) build and cmake. -### MSYS2 +* You can use prebuilt dependencies for your builds https://github.com/xmrig/xmrig-deps/releases. +* If you just want change file icon or description don't need to compile, you can use tools like [Resource Hacker](http://www.angusj.com/resourcehacker/). +* For 32 bit better choice use MSYS2 significantly better performance, anyway 64 bit builds always faster. + +### MSYS2 64 bit +Use **mingw64.exe** shell. Necessary MSYS2 packages: ``` pacman -Sy @@ -12,15 +17,36 @@ 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" +cmake .. -G "Unix Makefiles" -DUV_INCLUDE_DIR="c:\\libuv\include" -DUV_LIBRARY="c:\\libuv\.libs\libuv.a" make ``` -### Microsoft Visual Studio +### MSYS2 32 bit +Use **mingw32.exe** shell. +Necessary MSYS2 packages: +``` +pacman -Sy +pacman -S mingw-w64-i686-gcc +pacman -S make +pacman -S mingw-w64-i686-cmake +pacman -S mingw-w64-i686-pkg-config +``` +CMake build: +``` +cmake .. -G "Unix Makefiles" -DUV_INCLUDE_DIR="c:\\libuv\include" -DUV_LIBRARY="c:\\libuv\.libs\libuv.a" +make +``` + +### Microsoft Visual Studio 2017 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 +cmake .. -G "Visual Studio 15 2017 Win64" -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 +It will create Visual Studio Solution file **xmrig.sln**. Don't forget change Debug to Release build. + +## Additional CMake options + +* `-DWITH_LIBCPUID=OFF` Disable libcpuid. Auto configuration of CPU after this will be very limited. +* `-DWITH_AEON=OFF` Disable CryptoNight-Lite support. \ No newline at end of file