Bitcoin Forum
May 08, 2024, 09:43:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cgminer build help  (Read 1593 times)
scole7 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 28, 2014, 05:52:26 PM
Last edit: August 28, 2014, 06:08:01 PM by scole7
 #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

1715161421
Hero Member
*
Offline Offline

Posts: 1715161421

View Profile Personal Message (Offline)

Ignore
1715161421
Reply with quote  #2

1715161421
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
scole7 (OP)
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 (OP)
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:  

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