Skip to content
cpu miner of sero
Branch: master
Clone or download
Latest commit 6b213ec May 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake initial Feb 13, 2019
cminer change --cpu method Feb 23, 2019
libapicore initial Feb 13, 2019
libdevcore initial Feb 13, 2019
libethash-cpu add init log Mar 2, 2019
libethash set vp1 to 829000 May 12, 2019
libethcore change --cpu method Feb 23, 2019
libhwmon initial Feb 13, 2019
libpoolprotocols fix a bug Mar 14, 2019
scripts initial Feb 13, 2019
.bumpversion.cfg initial Feb 13, 2019
.clang-format initial Feb 13, 2019
.clang-tidy initial Feb 13, 2019
.gitignore change version May 13, 2019
.travis.yml initial Feb 13, 2019
BuildInfo.h.in initial Feb 13, 2019
CHANGELOG.md import libczero Feb 13, 2019
CMakeLists.txt change version May 13, 2019
CODEOWNERS initial Feb 13, 2019
LICENSE initial Feb 13, 2019
README.md Update README.md Feb 24, 2019
appveyor.yml initial Feb 13, 2019
build.bat fix a bug of build.bat Feb 23, 2019
circle.yml initial Feb 13, 2019

README.md

cminer

Now can only mine using CPU.

Usage

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

How to connecting to pools

./cminer -P http://user[.workername][:password]@hostname:port[/ADDRESS/HOST_ID]

Build

Building from source

  • Common

  1. [CMake] >= 3.5
  2. Git
  3. Perl, needed to build OpenSSL
  • Linux

    1. GCC version >= 4.9
  • macOS

  1. GCC version >= TBF
  • Windows

  1. Visual Studio 2017; Community Edition works fine. Make sure you install MSVC 2015 toolkit (v140).

Instructions

  1. Create a build directory:

    mkdir build
    cd build
  2. 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"
  3. 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
  4. (Optional, Linux only) Install the built executable:

    sudo make install

Windows-specific script

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

Disable Hunter

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.

License

This source is forked from https://github.com/ethereum-mining/ethminer

Licensed under the GNU General Public License, Version 3.

You can’t perform that action at this time.