Skip to content
Shawn Lee edited this page May 2, 2018 · 1 revision
  • If you just want change file icon or description don't need to compile, you can use tools like Resource Hacker.

Install Dependencies

Visual Studio 2017 Community

  • download VS2017 Community and install from https://www.visualstudio.com/downloads/
  • during the install chose the components
    • Desktop development with C++ (left side)
    • Toolset for Visual Studio C++ 2015.3 v140... (right side)

Cuda 8.0+

CMake for Win64

  • download and install the latest version from https://cmake.org/download/
  • tested version: cmake 3.9
  • during the install choose the option Add CMake to the system PATH for all users

Microhttpd and libuv

Compile

  • Download and unzip miner-nvidia.zip
  • Open a command line cmd
  • cd to your unzipped source code directory
  • Execute the following commands:
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64" -T v140,host=x64 -DXMRIG_DEPS=c:\xmrig-deps\msvc2015\x64

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

Additional CMake options

  • -DWITH_AEON=OFF Disable CryptoNight-Lite support.
  • -DWITH_HTTPD=OFF Build without built in http server and API.
  • -DCUDA_TOOLKIT_ROOT_DIR="c:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0" Use custom CUDA version.
Clone this wiki locally