From: Xiaofan C. <xia...@gm...> - 2010-04-20 02:21:36
|
On Tue, Apr 20, 2010 at 10:16 AM, Xiaofan Chen <xia...@gm...> wrote: > On Tue, Apr 20, 2010 at 4:49 AM, Jason Kotzin <jas...@gm...> wrote: > >> I should also note that my application complained that I was missing the >> libusb-1.0.0.dll, even though I compiled statically. Not sure why this was >> the case. >> > > This is a separate issue. I believe the default configure scripts generated > libusb.a (with MinGW and Cygwin) still is not static and would still > need libusb-1.0.dll. > > And if you have libusb-1.0.0.dll, it is an old version. The newer > version generated libusb-1.0.dll. > You can also use the snapshot from Pete. http://www.libusb.org/wiki/windows_backend http://libusb-winusb-wip.googlecode.com/files/libusb_2010.04.19.7z >From there, you will know that the generated examples are a bit different. Under MinGW, lsusb.exe and xusb.exe will need the DLL whereas the MS32/MS64 version of the two examples do not need the DLL. I believe this is the case for the libusb.a as well. The generated libusb.a from MinGW is not really static as far as I know. -- Xiaofan http://mcuee.blogspot.com |