I am able to get usbutils git to work under Windows (using Cygwin) and Mac OS X (tested with Lion). Reference http://libusb.6.n5.nabble.com/usbutils-under-Mac-OS-X-td5099892.html http://libusb.6.n5.nabble.com/usbutils-under-Windows-td5099900.html Other than "lsusb -t" which is specific to Linux, other functions seem to work fine. +++++++++++++++++++++++++++++++++++++++++++++ To make it work under Mac OS X, I need to have three extra commits. https://github.com/mcuee/usbutils/commits/master 1) update usbhid-dump to release 1.3 2) to have a customized autogen_mac_osx.sh 3) to make Apple Linker on Mac OS X happy. It does not like -as-needed. I understand that 2) and 3) might not be a proper fix but I do not know how to properly fix the issues under Mac OS X. ++++++++++++++++++++++++++++++++++++++++++++++ To make it work under Windows (Cygwin), I need to have the following. a) update usbhid-dump to release 1.3 b) there is an issue with DATADIR This turns out to be a nasty problem that DATADIR conflicts with MinGW and Cydwin's <objidl.h> in their w32api package. http://caca.zoy.org/changeset/3404 typedef enum tagDATADIR { DATADIR_GET=1, DATADIR_SET } DATADIR; I do not know the proper fix, so I just temporarily changeobjidl.h to typedef enum tagDATADIR { DATADIR_GET=1, DATADIR_SET } DATADIR1; +++++++++++++++++++++++++++++++++++++++++++++ Just wondering if you and the experts here could look into the issues and come up with proper fixes to make usbutils truly cross-platform (on platforms which libusb-1.0 exists) now that it already works under Linux and FreeBSD. Thanks. -- Xiaofan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html