Bitcoin Forum
July 02, 2024, 06:24:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: HELP: Compiling a Miner for Windows (MinGW)[SOLVED] + New issue[SOLVED]  (Read 2864 times)
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 14, 2014, 06:07:36 AM
Last edit: December 15, 2014, 03:53:08 AM by notbatman
 #1

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.


djm34
Legendary
*
Offline Offline

Activity: 1400
Merit: 1050


View Profile WWW
December 14, 2014, 02:00:03 PM
 #2

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.

djm34 facebook page
BTC: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze
Pledge for neoscrypt ccminer to that address: 16UoC4DmTz2pvhFvcfTQrzkPTrXkWijzXw
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 14, 2014, 05:50:27 PM
 #3

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...
djm34
Legendary
*
Offline Offline

Activity: 1400
Merit: 1050


View Profile WWW
December 14, 2014, 06:05:17 PM
 #4

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

djm34 facebook page
BTC: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze
Pledge for neoscrypt ccminer to that address: 16UoC4DmTz2pvhFvcfTQrzkPTrXkWijzXw
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 14, 2014, 06:34:07 PM
 #5

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!


djm34
Legendary
*
Offline Offline

Activity: 1400
Merit: 1050


View Profile WWW
December 14, 2014, 08:16:03 PM
 #6

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...

djm34 facebook page
BTC: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze
Pledge for neoscrypt ccminer to that address: 16UoC4DmTz2pvhFvcfTQrzkPTrXkWijzXw
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 14, 2014, 10:01:08 PM
Last edit: December 15, 2014, 03:55:27 AM by notbatman
 #7

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
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 12:07:14 AM
 #8

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...
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 12:43:21 AM
 #9

Windows does not have symbolic links  Undecided getting close to root of the problem I believe...
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 01:26:17 AM
 #10

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)
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 01:41:21 AM
 #11

SOLVED!

Code:
$ mount c:/mingw /mingw

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

Special thanks to sash13 on github for the answer.
djm34
Legendary
*
Offline Offline

Activity: 1400
Merit: 1050


View Profile WWW
December 15, 2014, 01:46:58 AM
 #12

nice monologue

djm34 facebook page
BTC: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze
Pledge for neoscrypt ccminer to that address: 16UoC4DmTz2pvhFvcfTQrzkPTrXkWijzXw
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 01:52:43 AM
 #13

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...
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 03:01:14 AM
 #14

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
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 03:17:07 AM
 #15

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?
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 03:40:29 AM
 #16

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.

notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 03:52:26 AM
 #17

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
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 03:58:12 AM
 #18

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!
notbatman (OP)
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
December 15, 2014, 04:44:08 AM
 #19

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!