Author

Topic: cgminer build help (Read 1617 times)

newbie
Activity: 9
Merit: 0
August 31, 2014, 06: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.
member
Activity: 76
Merit: 10
August 31, 2014, 12:38:07 AM
#3
Have you tried setting up MinGW as a build environment within Windows?
newbie
Activity: 9
Merit: 0
August 28, 2014, 05: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
   make

Is that the right direction?
newbie
Activity: 9
Merit: 0
August 28, 2014, 12: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

Jump to: