Re: [libhid-discuss] Windows support?
Peter, thanks for the translations. Sorry for the German version, I thought with this amount of errors, there must be a small problem in the very beginning and is easy to solve. I attached now the MSVC errors in almost complete English. I also attached the config.h which I am using now, with some explanations added. As I said, I just added some header files to the paths, which I arbitrarily copied from different systems and programs (see comments in config.h), however, some need also the libraries for the OS, so it is basically nonsense what I did. That's why I need some help, as I don't know how to provide all the needed declarations and definitions. Thanks in advance, C Am Samstag, den 06.09.2008, 09:54 -0400 schrieb Charles Lepple: On Sep 6, 2008, at 3:53 AM, comicinker wrote: How did you manage to compile libhid? I'm using Visual Studio 2005. I receive 240 Errors. I included a config.h from Linux, but that doesn't make sense at all. See the attached files. I don't have a Windows machine to test this with, but you may get a little bit more help from others on the list if you temporarily set the system language to English, then post that build log. Please compress the log as well (gzip or pkzip). It looks like the ERROR() definition is conflicting with something in wingdi.h: c:\dokumente und einstellungen\simeon\eigene dateien\projects\libhid \libhid\include\debug.h(21) : warning C4005: 'ERROR': Makro- Neudefinition c:\programme\microsoft visual studio 8\vc\platformsdk\include \wingdi.h(98): Siehe vorherige Definition von 'ERROR' I'm not sure which would take longer for me, installing Windows then downloading all of Visual Studio Express and the platform SDK, or learning enough German to decipher that log file :-) ___ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
Re: [libhid-discuss] Windows support?
Forgotten zip file. Sorry for traffic... ___ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
Re: [libhid-discuss] Windows support?
On Sep 6, 2008, at 3:53 AM, comicinker wrote: How did you manage to compile libhid? I'm using Visual Studio 2005. I receive 240 Errors. I included a config.h from Linux, but that doesn't make sense at all. See the attached files. I don't have a Windows machine to test this with, but you may get a little bit more help from others on the list if you temporarily set the system language to English, then post that build log. Please compress the log as well (gzip or pkzip). It looks like the ERROR() definition is conflicting with something in wingdi.h: c:\dokumente und einstellungen\simeon\eigene dateien\projects\libhid \libhid\include\debug.h(21) : warning C4005: 'ERROR': Makro- Neudefinition c:\programme\microsoft visual studio 8\vc\platformsdk\include \wingdi.h(98): Siehe vorherige Definition von 'ERROR' I'm not sure which would take longer for me, installing Windows then downloading all of Visual Studio Express and the platform SDK, or learning enough German to decipher that log file :-) -- Charles Lepple ___ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
Re: [libhid-discuss] Windows support?
Charles Lepple wrote: It looks like the ERROR() definition is conflicting with something in wingdi.h: Spot on. c:\dokumente und einstellungen\simeon\eigene dateien\projects\libhid \libhid\include\debug.h(21) : warning C4005: 'ERROR': Makro- Neudefinition Preprocessor macro redefined. neu == new c:\programme\microsoft visual studio 8\vc\platformsdk\include \wingdi.h(98): Siehe vorherige Definition von 'ERROR' This is the previous definition of ERROR. See previous definition of 'ERROR' //Peter ___ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
Re: [libhid-discuss] Windows support?
I'm confused. libhid supports Windows, the website says it do so by using libusb. libusb's site seems to say it doesn't support Windows, but libusb-win32 does. And Xiaofan seems seems to say that libhid doesn't work with libusb-win32. Can someone tell me how I would use libhid under Windows (what does it depend on that WILL work under windows)? Adrian On Thu, Mar 27, 2008 at 8:06 AM, Xiaofan Chen [EMAIL PROTECTED] wrote: On Thu, Mar 27, 2008 at 8:01 PM, Adrian Parker [EMAIL PROTECTED] wrote: So libhid will work with libusb-win32, just as it would with libusb? I shall try that today. Thank you. Unfortunately not. Xiaofan ___ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
Re: [libhid-discuss] Windows support?
There's more than one libusb implementation; libhid also works on Solaris, which has its own libusb, for example. If you see the libusb home page, it says Supported operating systems: Linux, FreeBSD, NetBSD, OpenBSD, Darwin, MacOS X (and Windows through the libusb-win32 project). The only OS specific code that I know of in libhid is the bit that requests an existing driver to detach, and afaik all implementations use the same libhid-based code right now which is portable. -Albert On Thu, 2008-03-27 at 07:33 -0400, Adrian Parker wrote: Hello all, I read in the libhid docs, aims to support all operating system supported by libusb: Linux, BSD, OS X, and Windows. This seems to say that libusb supports Windows. But libusb doesn't seem to support Windows (http://libusb.sourceforge.net/doc/intro-support.html). I note that neither libusb or libhid includes the text windows.h anywhere in their sources, so I suspect this is further indication that neither libhid or libusb supports Windows? ___ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
Re: [libhid-discuss] Windows support?
Long post. On Thu, Mar 27, 2008 at 11:38 PM, Charles Lepple [EMAIL PROTECTED] wrote: Xiaofan Chen wrote: Wait a moment, I remember someone has ported libhid to Win32 in libusb-win32 mailing list. You may want to contact him (Rob Krakora). http://permalink.gmane.org/gmane.comp.lib.libusb.devel.windows/1476 Please post back to this list with your findings. I don't have a Windows machine to test with, and nobody has really given me any concrete suggestions on ways to patch libhid so that it will work with libusb-win32. Ok, I got the source code and I an build it with the free Visual C++.Net Express 2005. I do not have a good HID device to test this port. Anyway, just running the first example here. It seems to work. G:\USB\libusb_winusb\libhidwin32\libhid-0.2.16\libhid\Debugdir libhid.* 08/19/2007 03:36 PM 102,400 libhid.dll 08/19/2007 03:36 PM 403 libhid.dll.embed.manifest 08/19/2007 03:36 PM 468 libhid.dll.embed.manifest.res 08/19/2007 03:36 PM 385 libhid.dll.intermediate.manifest 08/19/2007 03:36 PM 3,613 libhid.exp 08/19/2007 03:36 PM 416,960 libhid.ilk 08/19/2007 03:36 PM 6,632 libhid.lib 08/19/2007 03:36 PM 478,208 libhid.pdb G:\USB\libusb_winusb\libhidwin32\libhid-0.2.16\libhid\Debugdir *.exe 08/06/2007 01:51 AM40,960 test.exe 08/06/2007 01:51 AM40,960 test2.exe G:\USB\libusb_winusb\libhidwin32\libhid-0.2.16\libhid\Debugtest2 NOTICE_PRINT: hid_init(): libhid 0.2.16.0.0 is being initialized. TRACE_PRINT: hid_init(): initialising USB subsystem... TRACE_PRINT: hid_init(): scanning for USB busses... TRACE_PRINT: hid_init(): scanning for USB devices... NOTICE_PRINT: hid_init(): successfully initialised HID library. TRACE_PRINT: hid_new_HIDInterface(): creating a new HIDInterface instance... TRACE_PRINT: hid_force_open(): forcefully opening a device interface according to matching criteria... TRACE_PRINT: hid_get_usb_handle(): acquiring handle for a USB device... TRACE_PRINT: hid_find_usb_device(): enumerating USB busses... TRACE_PRINT: hid_find_usb_device(): enumerating USB devices on bus bus-0... TRACE_PRINT: hid_find_usb_device(): inspecting USB device bus-0/\\.\libusb0-00 01--0x04d8-0... TRACE_PRINT: hid_compare_usb_device(): comparing match specifications to USB d evice... TRACE_PRINT: hid_compare_usb_device(): inspecting vendor ID... TRACE_PRINT: hid_compare_usb_device(): no match on vendor ID. TRACE_PRINT: hid_compare_usb_device(): inspecting product ID... TRACE_PRINT: hid_compare_usb_device(): no match on product ID. TRACE_PRINT: hid_compare_usb_device(): no custom matching function supplied. NOTICE_PRINT: hid_find_usb_device(): vendor 0x04d8 of USB device bus-0/\\.\libu sb0-0001--0x04d8-0 does not match 0x05ac. WARNING_PRINT: hid_find_usb_device(): no matching USB device found. hid_force_open failed with return code 7 G:\USB\libusb_winusb\libhidwin32\libhid-0.2.16\libhid\Debugtest NOTICE_PRINT: hid_init(): libhid 0.2.16.0.0 is being initialized. TRACE_PRINT: hid_init(): initialising USB subsystem... TRACE_PRINT: hid_init(): scanning for USB busses... TRACE_PRINT: hid_init(): scanning for USB devices... NOTICE_PRINT: hid_init(): successfully initialised HID library. TRACE_PRINT: hid_new_HIDInterface(): creating a new HIDInterface instance... TRACE_PRINT: hid_force_open(): forcefully opening a device interface according to matching criteria... TRACE_PRINT: hid_get_usb_handle(): acquiring handle for a USB device... TRACE_PRINT: hid_find_usb_device(): enumerating USB busses... TRACE_PRINT: hid_find_usb_device(): enumerating USB devices on bus bus-0... TRACE_PRINT: hid_find_usb_device(): inspecting USB device bus-0/\\.\libusb0-00 01--0x04d8-0... TRACE_PRINT: hid_compare_usb_device(): comparing match specifications to USB d evice... TRACE_PRINT: hid_compare_usb_device(): inspecting vendor ID... TRACE_PRINT: hid_compare_usb_device(): match on vendor ID: 0x04d8. TRACE_PRINT: hid_compare_usb_device(): inspecting product ID... TRACE_PRINT: hid_compare_usb_device(): match on product ID: 0x0033. TRACE_PRINT: hid_compare_usb_device(): calling custom matching function... TRACE_PRINT: hid_compare_usb_device(): match on custom matching function. NOTICE_PRINT: hid_find_usb_device(): found a matching USB device bus-0/\\.\libu sb0-0001--0x04d8-0. TRACE_PRINT: hid_force_open(): claiming USB device bus-0/\\.\libusb0-0001--0x0 4d8-0. WARNING_PRINT: hid_os_force_claim(): code not tested on the Darwin platform! TRACE_PRINT: hid_os_force_claim(): claiming USB device bus-0/\\.\libusb0-0001- -0x04d8-0... WARNING_PRINT: hid_os_force_claim(): failed to claim USB device bus-0/\\.\libusb 0-0001--0x04d8-0... NOTICE_PRINT: hid_force_open(): successfully claimed USB device bus-0/\\.\libus b0-0001--0x04d8-0. TRACE_PRINT: hid_init_parser(): initialising the HID parser for USB Device bus