Re: usbutils under Windows and Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 08, 2012 at 04:09:57PM +0800, Xiaofan Chen wrote:
> 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

I should do that for the next release of usbutils.

> 2) to have a customized autogen_mac_osx.sh

Why is this needed?

> 3) to make Apple Linker on Mac OS X happy. It does not like -as-needed.

I don't understand why the linker can't handle this.  What goes wrong?

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

I'll take a patch that renames this to USB_DATADIR or something more
unique, if it makes running under Cygwin easier.

Or we can just drop the typedef entirely, I hate them :)

thanks,

greg k-h
--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux