So I started with a fresh mingw install to make sure I didn't have an incorrect libusb anywhere. The downloaded 4.5.0 cgminer binary runs fine, but still get the usb errors with the version I build. Here are commands I used to build...
autoreconf -fvi
CFLAGS="-O2 -msse2" ./configure --enable-bflsc --enable-icarus --enable-bitforce --enable-bitfury --enable-usbutils --disable-opencl --disable-adl
make
Do I go through the libusb install process described in windows-build.txt below, but use the libusb folder included with cgminer instead of downloading libusb? Or will it automatically use it when going through the cgminer build process?
**************************************************************************************
* Optional - Install libusb if you need auto USB device detection; required for Ztex *
**************************************************************************************
Go to this url ==>
http://git.libusb.org/?p=libusb.git;a=snapshot;h=master;sf=zipsave the file to your local storage. Open the file and copy the libusb* folder to
\MinGW\msys\1.0\home\(your user directory/folder).
Or if you do not want to download the file directly and would like to use git then
Type the following from the MSYS shell in your home folder.
git clone git://git.libusb.org/libusb.git
Run the MinGW MSYS shell
(Start Icon/keyboard key ==> All Programs ==> MinGW ==> MinGW Shell).
Change the working directory to your libusb project folder.
Example: cd libusb-something [Enter Key] if you are unsure then type "ls -la"
Another way is to type "cd libusb" and then press the tab key; It will auto fill.
Type the lines below one at a time. Look for problems after each one before going on
to the next.
./autogen.sh --disable-debug-log --prefix=/MinGW
make
make install
You may now exit the MSYS shell.
Ctrl-D or typing "logout" and pressing the enter key should get you out of the
window.
You will have to copy "libusb-1.0.dll" to your working cgminer binary directory.
You will find "libusb-1.0.dll" in the \MinGW\bin directory/folder.