Author

Topic: HELP: Compiling a Miner for Windows (MinGW)[SOLVED] + New issue[SOLVED] (Read 2886 times)

legendary
Activity: 2212
Merit: 1038
Code:
[2014-12-14 20:41:34] Starting Stratum on stratum+tcp://us-west.multipool.us:11111
[2014-12-14 20:41:34] 4 miner threads started, using 'X11' algorithm.
[2014-12-14 20:41:34] Binding thread 0 to cpu 0
[2014-12-14 20:41:34] Binding thread 2 to cpu 2
[2014-12-14 20:41:34] Binding thread 3 to cpu 3
[2014-12-14 20:41:34] Binding thread 1 to cpu 1
[2014-12-14 20:41:34] Stratum detected new block
[2014-12-14 20:41:46] Stratum detected new block
[2014-12-14 20:41:46] thread 0: 126275 hashes, 11.54 khash/s
[2014-12-14 20:41:46] thread 1: 123398 hashes, 11.29 khash/s
[2014-12-14 20:41:46] thread 3: 125229 hashes, 11.45 khash/s
[2014-12-14 20:41:46] thread 2: 125255 hashes, 11.45 khash/s

The world is my oyster.
legendary
Activity: 2212
Merit: 1038
Code:
$ make
...
make[2]: Leaving directory `/xcoin-cpuminer-master'
make[1]: Leaving directory `/xcoin-cpuminer-master'

Is that it?

EDIT:

I now have a new file called C:\MinGW\msys\1.0\xcoin-cpuminer-master\minerd.exe WHOOT!
legendary
Activity: 2212
Merit: 1038
Oh, still not there yet..

Code:
$ make
...
In file included from util.c:27:0:
c:\mingw\include\mstcpip.h:2:14: error: expected '=', ',', ';', 'asm' or '__attr
ibute__' before numeric constant
  * Copyright 2008 Hans Leidekker for CodeWeavers.
              ^
c:\mingw\include\mstcpip.h:4:35: error: unknown type name 'you'
  * This library is free software; you can redistribute it and/or
                                   ^
c:\mingw\include\mstcpip.h:4:43: error: expected '=', ',', ';', 'asm' or '__attr
ibute__' before 'redistribute'
  * This library is free software; you can redistribute it and/or
                                           ^
c:\mingw\include\mstcpip.h:4:43: error: unknown type name 'redistribute'
c:\mingw\include\mstcpip.h:6:58: error: unknown type name 'either'
  * License as published by the Free Software Foundation; either
                                                          ^
c:\mingw\include\mstcpip.h:7:12: error: expected '=', ',', ';', 'asm' or '__attr
ibute__' before numeric constant
  * version 2.1 of the License, or (at your option) any later version.
            ^
c:\mingw\include\mstcpip.h:10:30: error: unknown type name 'without'
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                              ^
c:\mingw\include\mstcpip.h:10:43: error: expected '=', ',', ';', 'asm' or '__att
ribute__' before 'the'
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                                           ^
c:\mingw\include\mstcpip.h:10:43: error: unknown type name 'the'
c:\mingw\include\mstcpip.h:15:37: error: expected identifier or '(' before 'if'
  * License along with this library; if not, write to the Free Software
                                     ^
util.c: In function 'sockopt_keepalive_cb':
util.c:283:23: error: storage size of 'vals' isn't known
  struct tcp_keepalive vals;
                       ^
make[2]: *** [minerd-util.o] Error 1
make[2]: Leaving directory `/xcoin-cpuminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/xcoin-cpuminer-master'
make: *** [all] Error 2

I read that I should copy mstcpip.h to MinGW\include so I found a random version on the web and... it's not working.

Why do I have to find my own mstcpip.h? I guess a better question is why doesn't it work.

Doesn't like the comments?

...and the culprit is a missing
Code:
/
at the very beginning of the file. Thank you to whoever uploaded this file.  Embarrassed
legendary
Activity: 2212
Merit: 1038
SOLVED!

Code:
$ LIBCURL="-lcurldll" ./configure CFLAGS="-O3"
...
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.20.0
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... yes
...

botched install of libcurl maybe, I think I had the wrong curl-config in mingw/bin as it's a manually copied file. Anyhow, Re-installed and it works now. Also missed LIBCURL="-lcurldll" first run of ./configure.

legendary
Activity: 2212
Merit: 1038
curl-7.15.2-devel-mingw32.zip is nowhere to be found on the internet.  Huh

So how do I force 7.20.0 to work?
legendary
Activity: 2212
Merit: 1038
Oh, not so fast... LOL

Code:
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.20.0
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.15.2

Now if I've got 7.20.0 and it wants 7.15.2 or greater... WTF
legendary
Activity: 2212
Merit: 1038
It helps when I think out loud.

I just helped 100 noobs with a quick answer to their google search  Wink

Now if you'll excuse me I've got some hashing functions to cut & paste...
legendary
Activity: 1400
Merit: 1050
legendary
Activity: 2212
Merit: 1038
SOLVED!

Code:
$ mount c:/mingw /mingw

Their you have it, proof I'm an idiot!

Special thanks to sash13 on github for the answer.
legendary
Activity: 2212
Merit: 1038
I've read I need to run ./configure to generate the missing config.pm file, this xcoin distro has no such script. I've read one can be made with autoreconf but that results in an autom4te-2.68 error.

Did I mention that I'm an idiot?

EDIT:

Code:
$ autoreconf -fvi
Can't locate Autom4te/ChannelDefs.pm in @INC (@INC contains: /mingw/share/autoco
nf /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys
/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_
perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) a
t /c/mingw/bin/autoreconf-2.68 line 40.
BEGIN failed--compilation aborted at /c/mingw/bin/autoreconf-2.68 line 40.

(yes, this post was edited)
legendary
Activity: 2212
Merit: 1038
Windows does not have symbolic links  Undecided getting close to root of the problem I believe...
legendary
Activity: 2212
Merit: 1038
I've found the offending command in autogen.sh.

Code:
aclocal -I m4

The instructions for xminer had me manually copy libcurl.m4 to MinGW\share\aclocal during the cURL install.

Not sure if this is the cause somehow, perhaps the cURL install overwrote something that doesn't matter in Linux but screws MinGW in windows and the devs hate windows and don't care.

Still digging on this...
legendary
Activity: 2212
Merit: 1038
there is a doc file regarding the windows build file included with standard miner (sgminer) to guide through the installation of mingw and the compilation of the miner, and it is very easy to use.

Unfortunately your RTFM response is not helpful...

won't spoon feed you on this one... sorry

Not looking to be spoon fed here, just a nudge in the right direction...

The fact is I think this is a bug, which makes you a jackass!

considering that in your original message, you modified since then, there were only one line and absolutely no information at all, you got the only answer
possible...

I have not edited/modified my original post or any post in this thread good sir.

EDIT:

I've now since heavily edited many of the posts in this thread including this one.  Tongue
legendary
Activity: 1400
Merit: 1050
there is a doc file regarding the windows build file included with standard miner (sgminer) to guide through the installation of mingw and the compilation of the miner, and it is very easy to use.

Unfortunately your RTFM response is not helpful...

won't spoon feed you on this one... sorry

Not looking to be spoon fed here, just a nudge in the right direction...

The fact is I think this is a bug, which makes you a jackass!

considering that in your original message, you modified since then, there were only one line and absolutely no information at all, you got the only answer
possible...
legendary
Activity: 2212
Merit: 1038
there is a doc file regarding the windows build file included with standard miner (sgminer) to guide through the installation of mingw and the compilation of the miner, and it is very easy to use.

Unfortunately your RTFM response is not helpful...

won't spoon feed you on this one... sorry

Not looking to be spoon fed here, just a nudge in the right direction...

The fact is I think this is a bug, which makes you a jackass!


legendary
Activity: 1400
Merit: 1050
there is a doc file regarding the windows build file included with standard miner (sgminer) to guide through the installation of mingw and the compilation of the miner, and it is very easy to use.

Unfortunately your RTFM response is not helpful...

won't spoon feed you on this one... sorry
legendary
Activity: 2212
Merit: 1038
there is a doc file regarding the windows build file included with standard miner (sgminer) to guide through the installation of mingw and the compilation of the miner, and it is very easy to use.

Unfortunately your RTFM response is not helpful...
legendary
Activity: 1400
Merit: 1050
there is a doc file regarding the windows build file included with standard miner (sgminer) to guide through the installation of mingw and the compilation of the miner, and it is very easy to use.
legendary
Activity: 2212
Merit: 1038
I'm attempting to compile a miner from GitHub with MinGW unfortunately I seem to be an idiot. Sad

I've been at this for a while now but I'm no closer to a solution than when I started. Here's what I'm stuck on:

https://github.com/ig0tik3d/xcoin-cpuminer

Code:
$ ./autogen.sh
Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/share/automake-1.
11 /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys
/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_
perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) a
t /c/mingw/bin/aclocal-1.11 line 37.
BEGIN failed--compilation aborted at /c/mingw/bin/aclocal-1.11 line 37.

perl-5.8.8-1-msys-1.0.17-bin.tar.lzma
automake-4-1-mingw32-bin.tar.lzma

Both those packages are installed.


Jump to: