From babc48f76758f82ed46114dd0e85f2eb96363509 Mon Sep 17 00:00:00 2001 From: xmrig Date: Wed, 14 Jun 2017 16:42:00 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 241a1eeab..1f22ed137 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,9 @@ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CX ``` ### Windows -It's complicated, you need [MSYS2](http://www.msys2.org/), custom libcurl build, and of course CMake too. +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 @@ -103,13 +104,15 @@ pacman -S make pacman -S mingw-w64-x86_64-cmake pacman -S mingw-w64-x86_64-pkg-config ``` -Configure options for libcurl: +CMake build: ``` -./configure --disable-shared --enable-optimize --enable-threaded-resolver --disable-libcurl-option --disable-ares --disable-rt --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-ipv6 --disable-sspi --disable-crypto-auth --disable-ntlm-wb --disable-tls-srp --disable-unix-sockets --without-zlib --without-winssl --without-ssl --without-libssh2 --without-nghttp2 --disable-cookies --without-ca-bundle --without-librtmp +cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DUV_INCLUDE_DIR="c:\\libuv\include" -DUV_LIBRARY="c:\\libuv\.libs\libuv.a" +make ``` -CMake options: + +#### Microsoft Visual Studio ``` -cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCURL_INCLUDE_DIR="c:\\curl-7.53.1\include" -DCURL_LIBRARY="c:\\curl-7.53.1\lib\.libs" +`cmake .. -G "Visual Studio 14 2015 Win64" -T v140_xp -DCMAKE_BUILD_TYPE=Release -DUV_INCLUDE_DIR=c:\\libuv\include -DUV_LIBRARY=c:\\libuv\Release\lib\libuv.lib` ``` ### Optional features From e3689ccb1a2c52479ffea29eca5d7017d45f13f1 Mon Sep 17 00:00:00 2001 From: xmrig Date: Wed, 14 Jun 2017 16:49:47 +0300 Subject: [PATCH 2/2] Move build instructions to Wiki --- README.md | 51 +-------------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/README.md b/README.md index 1f22ed137..70485e0a6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Based on cpuminer-multi with heavy optimizations/rewrites and removing a lot of * [Download](#download) * [Usage](#usage) * [Algorithm variations](#algorithm-variations) -* [Build](#build) +* [Build](https://github.com/xmrig/xmrig/wiki/Build) * [Common Issues](#common-issues) * [Other information](#other-information) * [Donations](#donations) @@ -70,55 +70,6 @@ Since version 0.8.0. * `--av=3` Software AES implementation. * `--av=4` Lower power mode (double hash) of `3`. -## Build -### 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 -make -``` -#### gcc 7.1 -``` -sudo add-apt-repository ppa:jonathonf/gcc-7.1 -sudo apt-get update -apt-get install gcc-7 g++-7 -``` -When run cmake manually specify C and C++ compiler: -``` -cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 -``` - -### 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:\\libuv\include" -DUV_LIBRARY="c:\\libuv\.libs\libuv.a" -make -``` - -#### Microsoft Visual Studio -``` -`cmake .. -G "Visual Studio 14 2015 Win64" -T v140_xp -DCMAKE_BUILD_TYPE=Release -DUV_INCLUDE_DIR=c:\\libuv\include -DUV_LIBRARY=c:\\libuv\Release\lib\libuv.lib` -``` - -### Optional features -`-DWITH_LIBCPUID=OFF` Disable libcpuid. Auto configuration of CPU after this will be very limited. -`-DWITH_AEON=OFF` Disable CryptoNight-Lite support. - ## Common Issues ### HUGE PAGES unavailable * Run XMRig as Administrator.