Updated Build (markdown)

xmrig 2017-09-08 17:54:39 +03:00
parent a05366c80c
commit 2745dbcbb1

@ -1,31 +1,5 @@
* [Ubuntu](https://github.com/xmrig/xmrig/wiki/Ubuntu-Build) * [Ubuntu](https://github.com/xmrig/xmrig/wiki/Ubuntu-Build)
* [Windows](https://github.com/xmrig/xmrig/wiki/Windows-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:\<path>\libuv\include" -DUV_LIBRARY="c:\<path>\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:\<path>\libuv\include -DUV_LIBRARY=c:\<path>\libuv\Release\lib\libuv.lib
```
It will create Visual Studio Solution file **xmrig.sln**.
## OS X ## OS X
You need XCode and Homebrew installed. You need XCode and Homebrew installed.