On Sat, Jun 16, 2012 at 2:08 AM, Pete Batard <p...@akeo.ie> 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.
On the other hand, I am not so sure if this is a real issue since there
is doubt whether XP 64bit officially supports WinUSB or not so maybe
libusbx does not officially support XP 64bit. On the other hand, I think
the issue has nothing to do with WinUSB.

The build process is fine but xusb failed to run.

The binary distribution works fine.

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.

Kind of strange.

$ ../configure --enable-examples-build
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format...
func_convert_file_msys_to_w32
checking how to convert i686-pc-mingw32 file names to toolchain format... func_c
onvert_file_msys_to_w32
checking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|
^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_imp
lib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/mingw/mingw32/bin/ld.exe) supports shared li
braries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for windres... windres
checking for inline... inline
checking whether gcc and cc understand -c and -o together... yes
checking operating system... Windows
checking sys/timerfd.h usability... no
checking sys/timerfd.h presence... no
checking for sys/timerfd.h... no
checking whether TFD_NONBLOCK is declared... no
checking whether to use timerfd for timing... no (header not available)
checking for struct timespec... no
checking for sigaction... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for gettimeofday... yes
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

$ make
make  all-recursive
make[1]: Entering directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw
'
Making all in libusb
make[2]: Entering directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw
/libusb'
  CC     libusb_1_0_la-core.lo
  CC     libusb_1_0_la-descriptor.lo
  CC     libusb_1_0_la-io.lo
  CC     libusb_1_0_la-sync.lo
  CC     libusb_1_0_la-poll_windows.lo
  CC     libusb_1_0_la-windows_usb.lo
  GEN    libusb-1.0.lo
  CC     libusb_1_0_la-threads_windows.lo
  CCLD   libusb-1.0.la
Creating library file: .libs/libusb-1.0.dll.a
  GEN    libusb-1.0.dll
make[2]: Leaving directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw/
libusb'
Making all in doc
make[2]: Entering directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw
/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw/
doc'
Making all in examples
make[2]: Entering directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw
/examples'
  CC     listdevs.o
  CCLD   listdevs.exe
  CC     xusb.o
  CCLD   xusb.exe
make[2]: Leaving directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw/
examples'
make[2]: Entering directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw
'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw'

make[1]: Leaving directory `/c/work/libusbx/libusbx-1.0.12/libusbx-1.0.12/mingw'

$ cd examples/

$ ./listdevs.exe
106b:003f (bus 1, device 255)
8086:265c (bus 2, device 255)
04d8:fa2e (bus 1, device 2)
80ee:0021 (bus 1, device 1)

$ ./xusb.exe 04d8:fa2e
An error pop-up comes out and says the following.
Title bar: xusb.exe - EntryPoint Not Found
The procedure entry point libusb_get_port_path could not be located in
the dynamic link library libusb-1.0.dll.

The binary distribution works fine.

C:\work\libusbx\libusbx-1.0.12-win\examples\bin32>listdevs.exe
106b:003f (bus 1, device 255)
8086:265c (bus 2, device 255)
04d8:fa2e (bus 1, device 2)
80ee:0021 (bus 1, device 1)

C:\work\libusbx\libusbx-1.0.12-win\examples\bin32>xusb.exe 04d8:fa2e
Using libusbx v1.0.12.10532

Opening device...
bus: 1, port path from HCD: 2
speed: 12 Mbit/s (USB FullSpeed)

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 3
           VID:PID: 04D8:FA2E
         bcdDevice: 0001
   iMan:iProd:iSer: 1:2:3
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0020
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0020
          polling interval: 00
interface[0].altsetting[1]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0040
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0040
          polling interval: 00

Claiming interface 0...

Reading string descriptors:
   String (0x01): "Travis Robinson"
   String (0x02): "Benchmark Device"
   String (0x03): "LUSBW1"

Releasing interface 0...
Closing device...

-- 
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

Reply via email to