Fork me on GitHub

ethminer Ethereum miner with OpenCL, CUDA and stratum support

F.A.Q Download Compile it yourself

Since ethminer is OpenSource you can compile it yourself.

Basics

ethminer uses CMake and the Hunter package manager. You can compile it without Hunter if you like, but it will make life a lot easier to use it.

Dependencies

Most dependencies get resolved via Hunter. Some special cases are:

OpenCL on linux

On linux you probably need to install some additional headers. For more information see here

For example on Ubuntu run:

sudo apt-get install mesa-common-dev

Windows

On Windows you need Microsoft Visual Studio 2015.

CUDA Toolkit

If you want to compile with CUDA Support you need to install the CUDA 8 Headers. You can download them for Windows here.

Disable Hunter

If you want to install dependencies yourself or use system package manager you can disable Hunter by adding -DHUNTER_ENABLED=OFF to configuration options.

Lets compile

  1. Create a build directory.

    mkdir build; cd build
    
  2. Configure the project with CMake. Check out additional configuration options.

    cmake ..
    
  3. Build the project using CMake Build Tool Mode. This is a portable variant of make.

    cmake --build .
    
  4. (Optional, Linux only) Install the built executable.

    sudo make install