Updated Ubuntu Build (markdown)

xmrig 2018-01-08 12:21:06 +07:00
parent 03b3de0886
commit c0052045d3

@ -1,5 +1,5 @@
## Ubuntu 16.04 Xenial Xerus ## Ubuntu 16.04 Xenial Xerus
``` ```bash
sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev
git clone https://github.com/xmrig/xmrig.git git clone https://github.com/xmrig/xmrig.git
cd xmrig cd xmrig
@ -11,13 +11,13 @@ make
### gcc 7.1 ### gcc 7.1
Optionally you can use gcc 7 to small performance increase. Optionally you can use gcc 7 to small performance increase.
``` ```bash
sudo add-apt-repository ppa:jonathonf/gcc-7.1 sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update sudo apt-get update
sudo apt-get install gcc-7 g++-7 sudo apt-get install gcc-7 g++-7
``` ```
When run cmake manually specify C and C++ compiler: When run cmake manually specify C and C++ compiler:
``` ```bash
cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
``` ```