Skip to content
Tang Wei edited this page Jan 2, 2020 · 2 revisions

Microsoft Visual Studio 2015/2017 required libuv build and cmake.

Microsoft Visual Studio 2017

Go to directory with source, then:

mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64" -DXMRIG_DEPS=c:\xmrig-deps\msvc2017\x64

Microsoft Visual Studio 2019

Download the prebuilt dependencies for VS2019 from https://github.com/xmrig/xmrig-deps/releases.

Go to directory with source, then:

mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A x64 -DXMRIG_DEPS=c:\xmrig-deps\msvc2019\x64 -DWITH_HTTPD=OFF

It will create Visual Studio Solution file xmrig-amd.sln. Don't forget change Debug to Release build.

Additional CMake options

  • -DWITH_LIBCPUID=OFF Disable libcpuid. Auto configuration of CPU after this will be very limited.
  • -DWITH_AEON=OFF Disable CryptoNight-Lite support.
  • -DWITH_HTTPD=OFF Build without built in http server and API.
Clone this wiki locally