mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Updated Build (markdown)
parent
38a4d0677e
commit
5fae3204b5
1 changed files with 1 additions and 20 deletions
21
Build.md
21
Build.md
|
@ -1,23 +1,4 @@
|
||||||
## Ubuntu (Debian-based distros)
|
* [Ubuntu](https://github.com/xmrig/xmrig/wiki/Ubuntu-Build)
|
||||||
```
|
|
||||||
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
|
|
||||||
```
|
|
||||||
|
|
||||||
## Windows
|
## 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+ or [MSYS2](http://www.msys2.org/) both required [libuv](https://github.com/libuv/libuv) build and cmake.
|
||||||
|
|
Loading…
Reference in a new issue