Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: scole7 on August 28, 2014, 05:52:26 PM



Title: cgminer build help
Post by: scole7 on August 28, 2014, 05:52:26 PM
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



Title: Re: cgminer build help
Post by: scole7 on August 28, 2014, 10:17:04 PM
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?


Title: Re: cgminer build help
Post by: griffga on August 31, 2014, 05:38:07 AM
Have you tried setting up MinGW as a build environment within Windows?


Title: Re: cgminer build help
Post by: scole7 on August 31, 2014, 11:32:28 PM
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.