Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Instructions for compiling maxcoin-cpuminer on Windows
Instructions for compiling maxcoin-cpuminer on Windows:
1. Tip me some BTC at 18Hrj6cmmCzCGzv7wVmKFxjYvUSwugvi41 or Doge at
DUCYmX3EYJc4JiHfdVN6pPGM98S6CtoyVm :)
2. Download and install Cygwin 64 bit setup from http://www.cygwin.com/. Here
is a direct link to the latest version: http://cygwin.com/setup-x86_64.exe
3. Run the setup as administrator. Use defaults until you get to the package
selection screen. Find these packages one by one and click next to them where
it says 'skip' to mark them for installation (skip should change to a version number):
devel/gcc-g++
libs/libcurl-devel
devel/automake
devel/make
archive/unzip
net/wget
devel/git
4. Hit next, then next again to mark all dependencies and begin downloading /
installing packages.
5. Wait a few minutes for everything to finish downloading/installing.
6. Hit finish.
7. Open a cygwin terminal as administrator either by going to Start menu -> Cygwin
-> Cygwin 64 terminal, or runing C:\Cygwin64\cygwin.bat. All future commands are
done from this terminal.
8. Download maxcoin-cpuminer source from their github using the following command:
git clone https://github.com/Max-Coin/cpuminer.git
9. Change dirs:
cd cpuminer
10. Mark autogen.sh as executable:
chmod +x autogen.sh
11. Run autogen.sh
./autogen.sh
12. Run the configure script, optimizing it for speed:
CFLAGS="-O3 -march=native" ./configure
13. Compile it:
make
14. Assuming you have no errors, run it in benchmark mode:
./minerd.exe -a keccak --benchmark
15. If it works and gives you a hashrate, congratulations, you now have a
Windows version of maxcoin-cpuminer ready to go. Once the wallet is released
you can connect it to a wallet rpc like normal. The next steps describe how
it should work.
16. Download the wallet from maxcoin.co.uk.
17. Run it and let it sync the blockchain.
18. Close it.
19. Create a maxcon.conf file alongside the wallet with the following in it:
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=9339
daemon=1
server=1
gen=0
20. Restart maxcoin wallet
21. Run your minerd.exe like the following:
./minerd.exe -a keccak -o http://127.0.0.1:9339 -O user:password
22. You are now solo mining!
23. If a pool comes up and you'd like to connect to it, just re-run minerd.exe
like this:
./minerd.exe -a keccak -o stratum://pool-goes-here.com:9339 -O user:password
16. If this helped you, feel free to tip me some BTC at
18Hrj6cmmCzCGzv7wVmKFxjYvUSwugvi41 or Doge at DUCYmX3EYJc4JiHfdVN6pPGM98S6CtoyVm :)
@lolwarz

This comment has been minimized.

Show comment Hide comment
@lolwarz

lolwarz Feb 6, 2014

./autogen.sh: line 8: aclocal: command not found
how to fix??

lolwarz commented Feb 6, 2014

./autogen.sh: line 8: aclocal: command not found
how to fix??

@Physikk

This comment has been minimized.

Show comment Hide comment
@Physikk

Physikk Feb 6, 2014

8 miner threads started, using 'keccak' algorithm.
Illegal instruction (core dumped)

Physikk commented Feb 6, 2014

8 miner threads started, using 'keccak' algorithm.
Illegal instruction (core dumped)

@srbltd

This comment has been minimized.

Show comment Hide comment
@srbltd

srbltd Feb 6, 2014

./autogen.sh: line 8: aclocal: command not found

same problem here

srbltd commented Feb 6, 2014

./autogen.sh: line 8: aclocal: command not found

same problem here

@srbltd

This comment has been minimized.

Show comment Hide comment
@srbltd

srbltd Feb 6, 2014

tried reinstalling automake with no joy

srbltd commented Feb 6, 2014

tried reinstalling automake with no joy

@exnihilo555

This comment has been minimized.

Show comment Hide comment
@exnihilo555

exnihilo555 Feb 6, 2014

thank you seemed to work!

thank you seemed to work!

@frank754

This comment has been minimized.

Show comment Hide comment
@frank754

frank754 Feb 6, 2014

I got it to work fine on Linux, but will not compile under Cygwin in Windows 7. "C compiler cannot create executables". I do have gcc and related compilers, even the mingw gcc, etc.

frank754 commented Feb 6, 2014

I got it to work fine on Linux, but will not compile under Cygwin in Windows 7. "C compiler cannot create executables". I do have gcc and related compilers, even the mingw gcc, etc.

@publix525

This comment has been minimized.

Show comment Hide comment
@publix525

publix525 Feb 7, 2014

Line 8 sucks

Line 8 sucks

@rene073

This comment has been minimized.

Show comment Hide comment
@rene073

rene073 Feb 7, 2014

CFLAGS="=-03 -march=native" ./configure

-O3(capital o)

rene073 commented Feb 7, 2014

CFLAGS="=-03 -march=native" ./configure

-O3(capital o)

@The-real-Urb

This comment has been minimized.

Show comment Hide comment
@The-real-Urb

The-real-Urb Feb 7, 2014

I got it to working under windows 8.1 x64
when you have the warning : "aclocal: command not found",
the make sure you selected the package "automake: Wrapper scripts for automake and aclocal".
Also package "Net/openSSL-devel" is required!

cheers

I got it to working under windows 8.1 x64
when you have the warning : "aclocal: command not found",
the make sure you selected the package "automake: Wrapper scripts for automake and aclocal".
Also package "Net/openSSL-devel" is required!

cheers

@michaelegger

This comment has been minimized.

Show comment Hide comment
@michaelegger

michaelegger Feb 7, 2014

frank754 install openssl and then also just run ./configure without all the preamble

I have to figure out how to install the wallet now.

What a load of !@#$ all this is...

frank754 install openssl and then also just run ./configure without all the preamble

I have to figure out how to install the wallet now.

What a load of !@#$ all this is...

@mricchio

This comment has been minimized.

Show comment Hide comment
@mricchio

mricchio Feb 7, 2014

Everything was going FINE-Until i typed the MAKE command, then it just says No Such File or Directory??

what did i do wrong thnkx

NVM, i was missing "Net/openSSL-devel" THANK YOU->The-real-Urb

mricchio commented Feb 7, 2014

Everything was going FINE-Until i typed the MAKE command, then it just says No Such File or Directory??

what did i do wrong thnkx

NVM, i was missing "Net/openSSL-devel" THANK YOU->The-real-Urb

@twistedup

This comment has been minimized.

Show comment Hide comment
@twistedup

twistedup Feb 8, 2014

Great post but you have to follow instructions from the comments as well to get it working

Great post but you have to follow instructions from the comments as well to get it working

@arthursturges

This comment has been minimized.

Show comment Hide comment
@arthursturges

arthursturges Feb 8, 2014

twistedup +1

twistedup +1

@arthursturges

This comment has been minimized.

Show comment Hide comment
@arthursturges

arthursturges Feb 8, 2014

I compiled the wallet from http://www.youtube.com/watch?v=Bncy7H-vZFw that uses a Reddit post and it is still syncing after about 18 hours with the difficulty rising from about 700 to 34,000 (>:[) . Some Maxcoin project tweet suggests linking temporarily an exchange wallet to the miner for some issue they have which I would like to do. I have the cpuminer and a blockchain wallet address so what is the command line to link the blockchain address to the cpuminer?

I compiled the wallet from http://www.youtube.com/watch?v=Bncy7H-vZFw that uses a Reddit post and it is still syncing after about 18 hours with the difficulty rising from about 700 to 34,000 (>:[) . Some Maxcoin project tweet suggests linking temporarily an exchange wallet to the miner for some issue they have which I would like to do. I have the cpuminer and a blockchain wallet address so what is the command line to link the blockchain address to the cpuminer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment