How to mine Ergo on Windows(x64)

Mining
Martin Spodymek

May 7, 2019

Step 1: Tools

Visual Studio
Choose free community version, you will need to select desktop development with C++ package during install.

CUDA toolkit
Choose your system version, install with default options, it will update your graphics driver to a compatible version.

Curl
Generic version without SSL, binary won`t work. Choose generic source, zip and click on show mirrors. Download and unpack.

OpenSSL 1.0.2
Download and install, select the OpenSSL binaries (/bin) directory during install.

Autolykos GPU miner
Click on clone or download and download zip and unpack.

Step 2: Building libcurl

Open the command line, go to c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\vc\Auxiliary\Build\ and run this script: vcvarsall.bat x64

Open the command line, go to unpacked Curl directory, then cd winbuild and run this command: nmake /f Makefile.vc mode=dll MACHINE=x64

After a successful build, go to Curl directory, \curl\builds\libcurl-vc-x64-release-dll-ipv6-sspi-winssl\bin and copy libcurl.dll to \Autolykos\secp256k1 directory.

Step 3: Building miner

Open the command line, go to c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\vc\Auxiliary\Build\ and run this script: vcvars64.bat

Open command line and go to unpacked Autolykos GPU miner directory, then cd secp256k1 and edit winbuild.cmd file, change OPENSSL_DIR, LIBCURL_DIR to your OpenSSL and Curl main directories. You can change CUDA_COMPUTE_ARCH to GPU code architecture you want.

Run winbuild.cmd and build your miner. After succesful build you should discover miner.exe in the same directory.

Step 4: Mining

Before you can mine, you have to configure your node, wallet and miner

After your node is synced, wallet is configured and unlocked, you have to create mining configuration file config.json with following structure: { "seed" : "YourSeedString", "node" : "https://127.0.0.1:9052", "keepPrehash" : true } in the \Autolykos\secp256k1 directory.

Open the command line and go to \Autolykos\secp256k1 directory. Run miner.exe config.json

Share post

Loading...