Bitcoin Forum
September 24, 2018, 10:23:03 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: cgminer build help  (Read 1470 times)
scole7
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 28, 2014, 05:52:26 PM
 #1

Sorry, I'm a newbie. Don't beat me down too bad...

I've downloaded ckolivas's cgminer 4.5.0 binaries and they run fine. I've also downloaded the source and tried to do my own build. I think I followed the instructions in windows-build.txt file correctly, but when I run that version of cgminer.exe instead of the downloaded binary, I get these errors...
 [2014-08-28 13:32:35] Started cgminer 4.5.0                    
 [2014-08-28 13:32:36] BAS 0 RequestDetails usb write err:(-7) LIBUSB_ERROR_TIMEOUT                    
 [2014-08-28 13:32:36] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS                    
 [2014-08-28 13:32:36] Probing for an alive pool                    
 [2014-08-28 13:32:37] BAS 0 RequestResults usb write err:(-7) LIBUSB_ERROR_TIMEOUT                    
 [2014-08-28 13:32:37] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS                    
 [2014-08-28 13:32:37] BAS 0 RequestResults usb write err:(-7) LIBUSB_ERROR_TIMEOUT                    
 [2014-08-28 13:32:37] BAS0: RequestResults failed (err=-7 amt=0)                    

Have double checked the instructions, but can't get it. Is there an easy answer?

Thanks,

Steve

1537827783
Hero Member
*
Offline Offline

Posts: 1537827783

View Profile Personal Message (Offline)

Ignore
1537827783
Reply with quote  #2

1537827783
Report to moderator
1537827783
Hero Member
*
Offline Offline

Posts: 1537827783

View Profile Personal Message (Offline)

Ignore
1537827783
Reply with quote  #2

1537827783
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537827783
Hero Member
*
Offline Offline

Posts: 1537827783

View Profile Personal Message (Offline)

Ignore
1537827783
Reply with quote  #2

1537827783
Report to moderator
scole7
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 28, 2014, 10:17:04 PM
 #2

Ok, so I just found this in the http://ck.kolivas.org/apps/cgminer/README

Native WIN32 build instructions: see windows-build.txt but these instructions
are now hopelessly out of date.

Guess I need to setup a virtual linux system and follow these instructions...

It is actually easiest to build a windows binary using cross compilation tools
provided by "mxe" available at http://mxe.cc/ (use the 32 bit one!)
Once you have followed the instructions for building mxe:
   export PATH=(path/to/mxe)/usr/bin/:$PATH
   CFLAGS="-O2 -Wall -W -march=i686" ./configure --host=i686-pc-mingw32 <options>
   make

Is that the right direction?
griffga
Member
**
Offline Offline

Activity: 76
Merit: 10


View Profile
August 31, 2014, 05:38:07 AM
 #3

Have you tried setting up MinGW as a build environment within Windows?
scole7
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 31, 2014, 11:32:28 PM
 #4

Yes. I can build an executable but I get the USB errors. I've put the libusb dll in the folder I run cgminer but that did help.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!