Git Product home page Git Product logo

minerpp's Introduction

minerpp

simple burstcoin miner for linux(even arm)

  • Ported from miner-burst
  • Tested on MacOS and Debian Wheezy.
  • Uses the same config file as miner-burst

Note that CPU usage of the mining threads as well as speed (MiB/s) do not represent the correct value.

Build

1. Create new folder for binaries

After cloning this repo change to it's folder:

cd minerpp

Then create a new folder named "bin":

mkdir bin

Change to the newly created folder:

cd bin

2. Generate Makefile using CMake

Before we can compile the source we need to generate our Makefile. For that we use CMake. If you don't have it, install it first (e.g. sudo apt-get install cmake). Then execute the CMake command:

cmake ..

Since we need std::filesystem support, gcc/g++ 5 is the minimum required compiler version for this to work. If you don't have it (check with gcc --version) you will need to install a newer version before using CMake.

For SBC's (Single Board Computer) use this link to get gcc/g++ 7.2.0. It will work on all common distros of linux for SBC's (was tested on Odroid HC1 with DietPi and Raspberry Pi 3+ with Raspbian Wheezy). On newer distro versions (e.g. Stretch) just install gcc-5 from your prefered package manager (e.g. sudo apt-get install gcc-5).

On MacOS the standard Clang compiler will not work! Here you will also need to install gcc manually. For that use the following command:

brew install gcc@7

If you successfully installed a newer compiler version you can run CMake with the following options:

cmake -DCMAKE_C_COMPILER=<path/to/gcc> -DCMAKE_CXX_COMPILER=<path/to/g++> ..

Replace <path/to/gcc> with the path to your gcc installation (e.g. SBC: /usr/local/gcc-7.2.0/bin/gcc-7.2.0, MacOS /usr/local/bin/gcc-7) and <path/to/g++> with the path to your g++ installation (e.g. SBC: /usr/local/gcc-7.2.0/bin/g++-7.2.0, MacOS: /usr/local/bin/g++-7).

3. Compile the source code

To compile the source code simply run make:

make -j<number of threads>

Replace <number of threads> with the number of threads you want to use to compile to speedup the process.

4. Run the miner

Now you can just run the miner with the following command:

./minerpp

Note you can use the same config file as used with blago's miner-burst, but it needs to be located in the same folder as the executable and named config.json.

minerpp's People

Contributors

enwi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sycomix dariuszo

minerpp's Issues

The C compiler identification is unknown

-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_C_COMPILER:

    usr/bin/gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/minerpp/bin/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/minerpp/bin/CMakeFiles/CMakeError.log".
Makefile:236: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

so when i try to install everything is good until i got in this step " make -j"
and got the error i posting above? can someone help me pls, thank you guys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.