Now can only mine using CPU.
The cminer is a command line program. This means you launch it from a Windows/Linux/Macos console, or create shortcuts to predefined command lines using a Linux/Macos Bash script or Windows batch/cmd file. For a full list of available command, please run:
How to connecting to pools
Building from source
- GCC version >= 4.9
- GCC version >= TBF
- Visual Studio 2017; Community Edition works fine. Make sure you install MSVC 2015 toolkit (v140).
Create a build directory:
mkdir build cd build
Configure the project with CMake. Check out the additional configuration options.
Note: On Windows, it's possible to have issues with VS 2017 default compilers.
cmake .. -G "Visual Studio 15 2017 Win64"
Build the project using [CMake Build Tool Mode]. This is a portable variant of
cmake --build .
Note: On Windows, it is possible to have compiler issues if you don't specify the build config. In that case use:
cmake --build . --config Release
(Optional, Linux only) Install the built executable:
sudo make install
Complete sample Windows batch file - adapt it to your system. Assumes that:
- it's placed one folder up from the cminer source folder
- you have CMake installed
- you have Perl installed
@echo off setlocal rem add MSVC in PATH call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" rem add Perl in PATH; it's needed for OpenSSL build set "PERL_PATH=C:\Perl\perl\bin" set "PATH=%PERL_PATH%;%PATH%" set "CMAKE_PATH=C:\Program Files\CMake\bin" set "PATH=%PERL_PATH%;%CMAKE_PATH%;%PATH%" if not exist "build\" mkdir "build\" cmake -G "Visual Studio 15 2017 Win64" -H. -Bbuild -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON .. cd build cmake --build . --config Release --target cminer endlocal pause
If you want to install dependencies yourself or use system package manager you can disable Hunter by adding
to the configuration options.
This source is forked from https://github.com/ethereum-mining/ethminer
Licensed under the GNU General Public License, Version 3.