On 2012.06.18 16:00, Xiaofan Chen wrote: > On Mon, Jun 18, 2012 at 10:49 PM, Xiaofan Chen<[email protected]> wrote: >> On Sat, Jun 16, 2012 at 2:08 AM, Pete Batard<[email protected]> wrote: >>> It is my pleasure to announce the release of libusbx v1.0.12. >>> >> >> I found a strange problem under XP 64bit with MinGW.org toolchain. >> >> The build process is fine but xusb failed to run. >> >> The binary distribution works fine.
The xusb.exe from the binary distribution is built with the DDK, not MinGW. They are also statically linked. >> 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" Regards, /Pete [1] http://libusbx.git.sourceforge.net/git/gitweb.cgi?p=libusbx/libusbx;a=blob;f=.private/bm.sh ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/libusbx-devel
