Updated Build (markdown)

xmrig 2017-09-08 17:51:14 +03:00
parent 38a4d0677e
commit 5fae3204b5

@ -1,23 +1,4 @@
## Ubuntu (Debian-based distros)
```
sudo apt-get install git build-essential cmake libuv1-dev
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib/x86_64-linux-gnu/libuv.a
make
```
### gcc 7.1
```
sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update
sudo apt-get install gcc-7 g++-7
```
When run cmake manually specify C and C++ compiler:
```
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DUV_LIBRARY=/usr/lib/x86_64-linux-gnu/libuv.a
```
* [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.