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:
cminer --help
./cminer -P http://user[.workername][:password]@hostname:port[/ADDRESS/HOST_ID]
Create a build directory:
mkdir build
cd build
Configure the project with CMake. Check out the additional configuration options.
cmake ..
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 make
.
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:
@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
-DHUNTER_ENABLED=OFF
to the configuration options.
This source is forked from https://github.com/ethereum-mining/ethminer
Licensed under the GNU General Public License, Version 3.