Re: [Libusbx-devel] [libusbx] Windows: Fix error formatting for SetupAPI errors (#166)

2013-12-18 Thread Pete Batard
Sounds good. I'll try to apply this patch for the next release. /Pete --- Reply to this email directly or view it on GitHub: https://github.com/libusbx/libusbx/pull/166#issuecomment-30901861-- Rapidly troubleshoot problem

[Libusbx-devel] [libusbx] Windows: Fix error formatting for SetupAPI errors (#166)

2013-12-18 Thread Matthias Bolte
The [Guidelines for Using SetupAPI](http://msdn.microsoft.com/en-us/library/windows/hardware/ff545011.aspx) state that if a SetupAPI function fails then the return value of GetLastError() must be converted to a HRESULT value with the HRESULT_FROM_SETUPAPI macro before passing it to FormatMessag

Re: [Libusbx-devel] [libusbx] Windows: libusbx-1.0.17, infinite loop in sync_transfer_wait_for_completion (#165)

2013-12-18 Thread changyp6
I found the root cause of this problem. I statically linked libusb-1.0 to my main program. And I also statically linked libusb-1.0 into a DLL library. In my main program, I opened a device and in the DLL library, I used libusb_control_transfer to work on the device. Because of static link, ther

Re: [Libusbx-devel] how can I compile the 32bit libusb.so ?

2013-12-18 Thread Nathan Hjelm
Try adding CFLAGS=-m32-NathanOn Dec 18, 2013, at 07:18 AM, Nothing wrote:./configure --prefix=`pwd`/install --build=i386-linux  ac_cv_func_malloc_0_nonnull=yes --disable-udev --with-picI use this comand but the file is still   64bitlibusb-1.0.so.0.1.0: ELF 64-bit LSB shared object, x86-64, version

[Libusbx-devel] how can I compile the 32bit libusb.so ?

2013-12-18 Thread Nothing
./configure --prefix=`pwd`/install --build=i386-linux ac_cv_func_malloc_0_nonnull=yes --disable-udev --with-pic I use this comand but the file is still 64bit libusb-1.0.so.0.1.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xae1d73381c0a5955801b5