On Tue, Jun 19, 2012 at 7:24 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Tue, Jun 19, 2012 at 12:05 AM, Pete Batard <p...@akeo.ie> wrote: >>>> If I use the libusb-1.0.dll MinGW 32bit dll from the binary distribution >>>> with the MinGW.org build xusb.exe and then xusb.exe will work fine. >> >> So your MinGW-w64 compiled xusb is 32 bit then. It's unlikely to work >> with a 32 bit DLL otherwise. >> >> My first guess is that you somehow have a mixup of a 32 bit sample with >> a 64 bit DLL. What happens if you disable 64 bit altogether during >> compilation? The following before configure should ensure 32 bit >> compilation (taken from the the MinGW binaries build script [1]): >> >> export CFLAGS="-O2 -m32" >> export LDFLAGS="-m32" >> export RCFLAGS="--target=pe-i386" >> export DLLTOOLFLAGS="-m i386 -f --32" >> > > Just take note MinGW.org is 32bit only so your guess is not > correct. >
Sorry this is a false alarm. I forgot I copied the libusbx-1.0.10 version of the dll to the Windows directory (system32 and SysWow64), probably due to the testing of pyusb. That explained the problem. Removing the two libusb-1.0.dll files and now everything is okay. -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel