mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-03 17:40:13 +00:00
Created Windows Build (markdown)
parent
5fae3204b5
commit
cbf56f90d0
1 changed files with 28 additions and 0 deletions
28
Windows-Build.md
Normal file
28
Windows-Build.md
Normal file
|
@ -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:\<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**.
|
Loading…
Reference in a new issue